Fatigue state detection method, device, readable storage medium and electronic device
By identifying and combining the current eye and historical eye states, and using the neural network model to determine the fatigue state, the problem of inaccurate fatigue state judgment in the existing technology is solved, and detailed judgment of the fatigue state and safety reminder are achieved.
Patent Information
- Application Number
- CN202110860490.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-07-28
AI Technical Summary
It is difficult to accurately and accurately determine the fatigue state with the existing technology. It usually only determines the fatigue or non-fatigue state, and cannot accurately identify the mild, severe or sleep state of the fatigue state.
By identifying the current eye state from the current frame image and the eye state in the historical frame image, combined with the neural network model to determine the eye sluggishness state, and then determine the fatigue state, a variety of combination results are formed to accurately determine the fatigue state.
It achieves detailed and accurate judgment of fatigue status, and can provide reminders for different fatigue stages to avoid continuous aggravation of fatigue status and ensure safety.
Smart Images

Figure CN113591682B
Abstract
Description
Technical Field
[0001] The present application relates to the field of machine vision technology, and in particular to a fatigue state detection method, device, readable storage medium and electronic device. Background Art
[0002] With the accelerated pace of life, people's rest time is reduced or the quality of rest is reduced, resulting in more people handling work or life affairs in a fatigued state, for example, assembly line operators process products in a fatigued state, or drivers drive vehicles in a fatigued state, etc. Since handling work or life affairs in a fatigued state will lead to a higher potential danger in the process, it is necessary to always pay attention to the fatigue state of the corresponding people to avoid dangerous accidents.
[0003] In the prior art, fatigue status detection usually adopts a relatively single focus point for detection. Therefore, the judgment of fatigue status usually only involves fatigue status or non-fatigue status, and it is difficult to make a detailed and accurate judgment of fatigue status. Summary of the invention
[0004] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a fatigue state detection method, device, readable storage medium and electronic device that can make a more detailed and accurate judgment on the fatigue state through a variety of combination results.
[0005] According to one aspect of the present application, a fatigue state detection method is provided, comprising:
[0006] Identify the current eye state of the detected target from the current frame image;
[0007] Identify at least one historical eye state of the detected target from at least one historical frame image before the current frame image;
[0008] Determining an eye dullness state of the detected target based on the current eye state and at least one historical eye state;
[0009] Based on the current eye state and the eye dull state, the fatigue state of the detected target is determined.
[0010] According to a second aspect of the present application, a fatigue state detection device is provided, comprising:
[0011] A first acquisition module, used for identifying the current eye state of the detected target from the current frame image;
[0012] A second acquisition module is used to identify at least one historical eye state of the detected target from at least one historical frame image before the current frame image;
[0013] A sluggishness determination module, used to determine the sluggishness state of the eyes of the detected target based on the current eye state and at least one historical eye state;
[0014] A fatigue judgment module is used to determine the fatigue state of the detected target based on the current eye state and the eye dull state.
[0015] According to a third aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute any of the fatigue state detection methods described above.
[0016] According to a fourth aspect of the present application, an electronic device is provided, the electronic device comprising:
[0017] processor;
[0018] a memory for storing instructions executable by the processor;
[0019] The processor is used to read the executable instructions from the memory and execute the instructions to implement any of the fatigue state detection methods described above.
[0020] In the embodiments provided in the present disclosure, the current eye state is obtained from the current frame image, and the eye drowsiness state is obtained from the current frame image and the historical frame images. The eye state and the eye drowsiness state are combined to produce a variety of combination results, and the multiple combination results can correspond to a variety of fatigue states respectively. Thus, a more detailed and accurate judgment of the fatigue state can be made through the multiple combination results. Thus, a more accurate reminder can be made for the stage of the fatigue state of the detected target, thereby avoiding the continuous aggravation of the fatigue state of the detected target and ensuring the safety of the detected target. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0022] Figure 1 It is a flowchart of a fatigue state detection method provided by an exemplary embodiment of the present application.
[0023] Figure 2a It is a flowchart of determining the eye state of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0024] Figure 2b It is a schematic diagram of an application scenario of determining the eye area of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0025] Figure 3 It is a flowchart of determining the eye area of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0026] Figure 4 It is a flowchart of determining the eye area of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0027] Figure 5a It is a flowchart of determining the eye opening and closing state and key points of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0028] Figure 5b It is a schematic diagram of an application scenario for determining the eye opening and closing state and key points of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0029] Figure 6 It is a flowchart of determining a fatigue state of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0030] Figure 7a It is a flowchart of determining a fatigue state of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0031] Figure 7b An exemplary embodiment of the present application provides an illustration of a mild fatigue state.
[0032] Figure 7c An exemplary embodiment of the present application provides an illustration of a severe fatigue state.
[0033] Figure 8a It is a flowchart of determining the eye dull state of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0034] Figure 8b It is a flowchart of determining the eye dull state of a fatigue state detection method provided by another exemplary embodiment of the present application.
[0035] Fig. 9 is a schematic diagram of a fatigue state detection device provided by an exemplary embodiment of the present application.
[0036] Fig.10 It is a schematic diagram of a first acquisition module of a fatigue state detection device provided by an exemplary embodiment of the present application.
[0037] Fig.11It is a schematic diagram of a region identification submodule of a fatigue state detection device provided by an exemplary embodiment of the present application.
[0038] Fig.12 It is a schematic diagram of a region determination unit of a fatigue state detection device provided by an exemplary embodiment of the present application.
[0039] Fig.13 It is a schematic diagram of a parameter acquisition submodule of a fatigue state detection device provided by an exemplary embodiment of the present application.
[0040] Fig.14 It is a schematic diagram of a judgment submodule of a fatigue state detection device provided by an exemplary embodiment of the present application.
[0041] Fig.15 It is a schematic diagram of a second judgment unit of a fatigue state detection device provided by an exemplary embodiment of the present application.
[0042] Fig.16 It is a schematic diagram of a second acquisition module of a fatigue state detection device provided by an exemplary embodiment of the present application.
[0043] Fig.17 It is a structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0044] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0045] Application Overview
[0046] In the prior art, fatigue status detection usually adopts a relatively single focus point for detection. Therefore, the judgment of fatigue status usually only involves fatigue status or non-fatigue status, and it is difficult to make a detailed and accurate judgment of fatigue status. However, for the detected target, its fatigue status should usually be a continuously changing state, and there will be no obvious sudden changes in fatigue status or non-fatigue status. Therefore, the fatigue status of the detected target should be judged more carefully in order to make more targeted reminders or measures.
[0047] Exemplary Methods
[0048] Figure 1 FIG. 1 is a flowchart of a fatigue state detection method provided by an exemplary embodiment of the present application. This embodiment can be applied to electronic devices, such as Figure 1 As shown, the following steps are included:
[0049] Step 100, identifying the current eye state of the detected target from the current frame image;
[0050] In some embodiments, the current frame image refers to the currently captured image, the detected target refers to the person in the picture whose fatigue state needs to be judged, and the current eye state refers to whether the eyes are fully open, partially open, or closed.
[0051] Step 200, identifying at least one historical eye state of the detected target from at least one historical frame image before the current frame image;
[0052] In some embodiments, the historical frame image refers to the image before the current frame image, and the multiple historical frame images can be continuous historical frame images or historical frame images selected at intervals. The historical eye state refers to whether the eye in the historical frame image is fully open, partially open, or closed.
[0053] Step 300, determining the eye dullness state of the detected target based on the current eye state and at least one historical eye state;
[0054] In some embodiments, the eye dull state refers to whether the eyes have dulled in historical frame images and current frame images. For example, the current eye state and at least one historical eye state can be input into a predetermined neural network model, and the eye dull state of the detected target can be obtained through calculation of the neural network model.
[0055] Step 400, determining the fatigue state of the detected target based on the current eye state and the eye dull state.
[0056] In some embodiments, when the eye sluggish state is not sluggish, it can be generally considered that the detected target is currently in a non-fatigued state; when the eye sluggish state is already sluggish, it can be considered that the detected target has entered a fatigued state, but the specific stage of the fatigued state can be further determined by the current eye state. It can be seen that by combining the eye sluggish state with the current eye state, at least four different stages of the detected target can be determined.
[0057] In the embodiment provided by the present disclosure, the current eye state is obtained from the current frame image, and then the eye sluggish state is determined based on the current eye state and the historical eye state. The current eye state represents a static eye state at the current moment, while the eye sluggish state represents the eye sluggish state displayed in the dynamic process of the historical event segment. The two are combined to judge the fatigue state, and the static state and dynamic state of the eye are comprehensively considered, so that the fatigue state can be judged more accurately. In addition, since the combination of the eye state and the eye sluggish state can form a variety of combination results, the various combination results can correspond to a variety of fatigue states, so that the fatigue state can be judged more carefully.
[0058] exist Figure 1 Based on the embodiment shown, Figure 2a As shown, step 100 includes:
[0059] Step 110, identifying the current eye region of the detected target from the current frame image;
[0060] In some embodiments, during the recognition process of the current eye area, the face is first located using a face detection model, and the face key points are obtained from the corresponding key points on the face detection model. These key points are distributed in the mouth, nose, eyes, eyebrows and face contour. The key points of the eye area are used to locate the circumscribed rectangle of the eye area, and the rectangle is expanded to a certain extent to ensure that the two eyes are included in the rectangle. Finally, the rectangular area is cut to obtain an eye area that only contains the eyes. The aforementioned face detection model can be an ERT algorithm model, an SDM algorithm model or an MTCNN algorithm model. As follows Figure 2b The extraction process of the current eye region is described by taking the scene in as an example. The current frame image 1001 is input into the face detection model 1002. The face key points are obtained from the corresponding key points on the face detection model. These key points are distributed in the mouth, nose, eyes, eyebrows and face contour. The face position is determined by the face key point circumscribed rectangle 1003. The circumscribed rectangle 1004 of the eye region is located by using the key points of the eye region, and the rectangle is expanded to a certain extent to ensure that the two eyes are included in the expanded rectangle 1005. The image area surrounded by the expanded rectangle 1005 is cut to obtain the current eye region 1006.
[0061] Step 120, determining the eye opening and closing state and eye key points according to the current eye region;
[0062] In some embodiments, the eye key point refers to the key point of a single eye, that is, the eye key point in the face detection model is matched with the eye key point of the current eye area. The eye opening and closing state is usually determined by the degree of occlusion of the pupil. When the pupil is completely blocked, the eye opening and closing state is considered to be a closed state. When the pupil is not blocked, the eye opening and closing state is considered to be an open state.
[0063] Step 130: Determine the current eye state of the detected target based on the open / closed state and the eye key points.
[0064] In some embodiments, when the eye opening and closing state is the closed eye state, no further judgment is required based on the eye key points. When the eye opening and closing state is the open state, the current eye state is further judged based on the ratio of the height and width of the eye key points. For example, when the ratio of the height and width of the eye key points is higher than the first predetermined ratio, for example, when the ratio of the height and width is higher than 1 / 2, the current eye state is considered to be a fully open state; for another example, when the ratio of the height and width of the eye key points is lower than the second predetermined ratio, for example, when the ratio of the height and width is lower than 1 / 10, the current eye state is considered to be a closed eye state; for another example, when the ratio of the height and width of the eye key points is between the first predetermined ratio and the second predetermined ratio, for example, when the ratio of the height and width is higher than 1 / 10 and lower than 1 / 2, the current eye state is considered to be a partially open state, that is, a squinting state.
[0065] Since the fatigue state of the detected target is usually a continuously changing state, correspondingly, the current eye state usually also has a continuously changing state corresponding to the fatigue state. In this embodiment, the eye state is judged by combining the eye opening and closing state and the eye key points. This can more finely and accurately judge the current eye state, and provide a basis for the subsequent fine and accurate judgment of the fatigue state of the detected target.
[0066] In the aforementioned Figure 2a Based on the embodiments described above, Figure 3 As shown, step 110 includes:
[0067] Step 111, determining the eye region of the detected target eye based on the current frame image;
[0068] In some embodiments, in the process of determining the eye area, in the process of identifying the current eye area, firstly, the face is located using a face detection model, and the face key points are obtained from the corresponding key points on the face detection model. These key points are distributed in the mouth, nose, eyes, eyebrows and face contour. The eye area is determined using the eye key points. For example, in the current frame image, a bounding rectangle of an eye key point is determined based on the eye key point, and the image area surrounded by the aforementioned bounding rectangle is segmented to obtain the current eye area. For another example, the bounding rectangle of the eye key point can be expanded outward by several pixels, such as 5 or 8 pixels, to obtain a new rectangle to be segmented, and the image area surrounded by the rectangle to be segmented is segmented to obtain the current eye area, thereby ensuring that all eye parts are included in the current eye area.
[0069] Step 112, determining the current eye region of the detected target according to the eye visibility status in the eye region.
[0070] In some embodiments, the visible state of the eyes of the detected target is realized by a neural network model, for example, by using a deep learning neural network model; before use, the neural network model is trained using a large number of images with occluded and unoccluded eyes. When the current frame image is input to the trained neural network model, the neural network model can output a label corresponding to the current frame image, that is, the eyes in the current frame image are in an occluded state or an unoccluded state. Whether it is the subsequent eye sluggish state judgment process or the current eye state judgment process, it is necessary to judge through the eye area. Therefore, when the eyes are occluded, it will lead to errors in the judgment of the eye sluggish state and the current eye state, and further lead to errors in the judgment of the fatigue state of the detected target. Therefore, in this step, when the eyes are occluded, the current frame image can be abandoned, and when the eyes are not occluded, the eye area corresponding to the current frame image can be used as the current eye area.
[0071] In this embodiment, in the process of determining the current eye area, the occlusion state of the eyes is used for screening, thereby avoiding the wrong judgment of the eye dull state and the current eye state when the eyes are occluded, which is conducive to the correct judgment of the eye dull state and the current eye state, and further provides a basis for the correct judgment of the fatigue state of the subsequent detected target.
[0072] In the aforementioned Figure 3 Based on the embodiments shown in Figure 4 As shown, step 112 includes:
[0073] Step 1121, when the eye visibility state is the blocked state, abandoning the eye region corresponding to the current frame image;
[0074] In some embodiments, since the eye visibility state is the blocked state, it indicates that the eyes in the eye area are blocked, that is, invisible, and the subsequent eye sluggish state and the current eye state need to be judged based on the eyes. Therefore, when the eye visibility state is the blocked state, there is no subsequent judgment basis, and therefore, the eye area corresponding to the current frame image should be abandoned.
[0075] Step 1122: When the eye visibility state is a non-blocked state, the eye region corresponding to the current frame image is used as the current eye region.
[0076] In some embodiments, according to the description in step 1121, when the eye visibility state is a non-occluded state, that is, the eyes in the eye area are visible, there is a basis for judging the subsequent eye dull state and the current eye state. Therefore, the eye area corresponding to the current frame image is stored as the current eye area to facilitate the subsequent judgment of the eye dull state and the current eye state.
[0077] In this embodiment, whether the eye area of the current frame image is available is judged by the visible state of the eye state, which provides an operable method for the current eye area determination process and facilitates the operation in the current eye area determination process.
[0078] In the above Figure 2a Based on the embodiment shown, Figure 5a As shown, step 120 includes:
[0079] Step 121, inputting the current eye region into a predetermined first neural network model;
[0080] In some embodiments, the predetermined first neural network model is a first neural network model that is pre-trained and saved. During the training process, a large number of images with human faces and the open and closed states and eye key points corresponding to the images are used as training sets to train the first neural network model to adjust the weight values of each neuron in the first neural network, and the adjusted weight values are saved. At this time, the first neural network model using the determined weight values is the first neural network model. For the first neural network model, for example, it can be a deep learning neural network model.
[0081] Step 122, obtaining the open and closed state and eye key points output by the first neural network model.
[0082] In some embodiments, a current frame image is input into a predetermined first neural network model, and after calculation by the weight values of the first neural network model, the open and closed state of the eyes and the key points of the eyes in the current frame image can be output.
[0083] by Figure 5b , the eye opening and closing state judgment process is described by taking the scene in as an example. First, the eye region 1007 corresponding to the current frame image is input into the neural network model 1008 to judge the visible state of the eye. The neural network model 1008 outputs the judgment result 1009 of the visible state of the eye, and the eye region with the judgment result of non-occlusion state, that is, the visible state of the eye is taken as the current eye region. The current eye region is input into the first neural network model 1010, and the first neural network model 1010 outputs the eye opening and closing state classification and eye key point result 1011. According to the opening and closing state classification and eye key point result 1011, the output result 1012 of whether the eye is open, squinting or closed can be determined. In this embodiment, the eye opening and closing state and eye key points of the current frame are determined by the predetermined first neural network model that has been trained, and the current frame image is input into the predetermined first neural network, and the predetermined first neural network can output the eye opening and closing state and eye key points. For the operator, the operation process is simplified and the operation difficulty is reduced.
[0084] In the above Figure 2a Based on the embodiment shown, step 400 includes:
[0085] Step 410, when it is determined that the eye dull state is an already dull state, the fatigue state of the detected target is determined according to the current eye state.
[0086] In some embodiments, when the eye sluggish state is in a sluggish state, it indicates that the detected target is in a fatigue state, but the fatigue state of the detected target usually has multiple different stages, such as a mild fatigue state, a severe fatigue state, or a sleeping state. The aforementioned judgment process only determines that the detected target has entered a fatigue state, and cannot determine whether the detected target is currently in a mild fatigue state, a severe fatigue state, or a sleeping state. Therefore, the current eye state is used to further judge the stage of the fatigue state in the subsequent process.
[0087] In this embodiment, the nature of whether the detected target is in a fatigue state is judged based on the dull eye state, that is, the fatigue state or non-fatigue state of the detected target is judged. When the detected target is in a fatigue state, in order to further judge the stage of the fatigue state of the detected target, the current eye state is used for further judgment.
[0088] In the above Figure 2a Based on the embodiment shown, Figure 6 As shown, step 410 includes:
[0089] Step 411, when the eye-opening and eye-closing state is the eye-closing state, determining that the fatigue state of the detected target is the sleeping state;
[0090] In one embodiment, the asleep state means that the detected target has fallen asleep. When the eye dull state is the asleep state, it indicates that the eye state of the detected target has not changed within a certain period of time. Combined with the closed eye state of the open and closed state, it can be determined that the detected target has entered the sleeping state.
[0091] Step 412: When the open-closed state is the open-eye state, the fatigue state of the detected target is determined according to the ratio of the height and width of the key points of the eye.
[0092] In some embodiments, when the eye sluggish state is the sluggish state, it indicates that the eye state of the detected target has not changed for a certain period of time. Since the eyes of the detected target in the fatigue state gradually close over a period of time as the fatigue state worsens, the ratio of the height and width of the key points of the eyes can represent the corresponding degree of the fatigue state of the detected target to a certain extent.
[0093] In this embodiment, it is specifically described that the stage of fatigue state is judged by combining the dull eye state and the current eye state, which can judge the stage of fatigue state of the detected target in detail and accurately. Therefore, more accurate reminders can be given for the stage of fatigue state of the detected target, avoiding the continuous aggravation of the fatigue state of the detected target and ensuring the safety of the detected target.
[0094] In the above Figure 6 Based on the embodiment shown, Figure 7a As shown, step 412 includes:
[0095] Step 4121, when the ratio is greater than the first preset ratio, determining that the current fatigue state is the first fatigue state;
[0096] In some embodiments, the first fatigue state refers to a mild fatigue state, and the first preset ratio can be preset based on experience, for example, the first preset ratio is set to 1 / 2. Since the eye closure process of the detected target is gradually closed as the fatigue state worsens, the stage of eye closure usually represents the stage of fatigue state. Therefore, in this step, when the ratio of the height and width of the key point of the eye is greater than the first preset ratio, for example, greater than 1 / 2, it indicates that the current fatigue state of the detected target is a mild fatigue state. Figure 7b An image in a mild fatigue state is exemplarily shown, in which a person in the image is in a sluggish state, and when the ratio is greater than a first preset ratio, the fatigue state of the person in the image is a mild fatigue state.
[0097] Step 4122, when the ratio is less than a second preset ratio, determining that the current fatigue state is a sleeping state;
[0098] In some embodiments, the second preset ratio is a preset ratio that is smaller than the first preset ratio. The ratio can also be preset based on experience, for example, the second preset ratio is set to 1 / 10. When the degree of eye opening is less than the second preset ratio, since the pupil is still partially visible, the open and closed state is usually judged as an open eye state, but the fatigue state is usually a sleep state. Therefore, in this step, when the ratio of the height to the width of the key point of the eye is lower than the second preset ratio, the state is judged as a sleep state. In this step, it is possible to more accurately judge the situation of entering the sleep state.
[0099] Step 4123, when the ratio is less than or equal to the first preset ratio and greater than or equal to the second preset ratio, determine that the current fatigue state is a second fatigue state; wherein the intensity of the second fatigue state is greater than the intensity of the first fatigue state.
[0100] In some embodiments, since the eye closure process of the detected target gradually closes as the fatigue state worsens, the stage of eye closure usually represents the stage of fatigue state. Therefore, in this step, when the key points of the height and width of the eye key points are between the first preset ratio and the second preset ratio, its fatigue state is considered to be the second fatigue state between the first fatigue state and the sleeping state, that is, the severe fatigue state. Figure 7c An image in a severe fatigue state is exemplarily shown, in which a person in the image is in a sluggish state, and when the ratio is less than or equal to a first preset ratio and greater than or equal to a second preset ratio, the fatigue state of the person in the image is a severe fatigue state.
[0101] In this embodiment, the specific fatigue state is determined by the ratio of the height and width of the key points of the eye, providing a judgment process for the fatigue state with strong operability and high accuracy.
[0102] In the above Figure 1 Based on the embodiment shown, Figure 8a As shown, step 300 includes:
[0103] Step 310, inputting the current eye region and at least one historical eye region into a predetermined second neural network model;
[0104] In some embodiments, the predetermined second neural network model is a second neural network model that is pre-trained and saved. During the training process, a large number of eye region combinations and corresponding eye sluggish states are used as training sets to train the second neural network model to adjust the weight values of each neuron in the second neural network, and the adjusted weight values are saved. Among them, the eye region combination refers to a combination of multiple frames of images having the target eye region to be detected. At this time, the second neural network model using the determined weight value is the second neural network model. For the second neural network model, for example, it can be a deep learning neural network model.
[0105] Step 320, obtaining the eye dull state output by the second neural network model.
[0106] In some embodiments, the current eye region and the historical eye region are input to a predetermined second neural network model, and after the weight values of the second neural network model are calculated, the dull state of the eye can be output.
[0107] by Figure 8b Taking the provided scenario as an example, the judgment process of the eye dull state is described as follows: a set of images 1013 of the current eye area and the historical eye area is input into a second neural network 1014, and the second neural network 1014 can output a judgment result 1015 of the eye dull state.
[0108] In this embodiment, the eye dull state is determined by a predetermined second neural network model that has been trained, and the current eye area and the historical eye area are input into the predetermined second neural network. The predetermined second neural network can then output the eye dull state, which simplifies the operation process and reduces the difficulty of operation for the operator.
[0109] Exemplary Devices
[0110] Fig. 9 FIG. 1 is a flowchart of a fatigue state detection method provided by an exemplary embodiment of the present application. This embodiment can be applied to electronic devices, such as Fig. 9 As shown, the following steps are included:
[0111] A first acquisition module 9100 is used to identify the current eye state of the detected target from the current frame image;
[0112] In some embodiments, the current frame image refers to the currently captured image, the detected target refers to the person in the picture whose fatigue state needs to be judged, and the current eye state refers to whether the eyes are fully open, partially open, or closed.
[0113] The second acquisition module 9200 is used to identify at least one historical eye state of the detected target from at least one historical frame image before the current frame image;
[0114] In some embodiments, the historical frame image refers to the image before the current frame image, and the multiple historical frame images can be continuous historical frame images or historical frame images selected at intervals. The historical eye state refers to whether the eye in the historical frame image is fully open, partially open, or closed.
[0115] A sluggishness determination module 9300, configured to determine the sluggishness state of the eyes of the detected target based on the current eye state and at least one historical eye state;
[0116] In some embodiments, the eye sluggish state refers to whether the eye is sluggish in the historical frame image and the current frame image. For example, the current eye state and at least one historical eye state can be input into a predetermined neural network model, and the eye sluggish state of the detected target can be obtained through calculation by the neural network model. The fatigue judgment module 9400 determines the fatigue state of the detected target based on the current eye state and the eye sluggish state.
[0117] In some embodiments, when the eye sluggish state is not sluggish, it can be generally considered that the detected target is currently in a non-fatigued state; when the eye sluggish state is already sluggish, it can be considered that the detected target has entered a fatigued state, but the specific stage of the fatigued state can be further determined by the current eye state. It can be seen that by combining the eye sluggish state with the current eye state, at least four different stages of the detected target can be determined.
[0118] In the embodiment provided by the present disclosure, the current eye state is obtained from the current frame image, and then the eye sluggish state is determined based on the current eye state and the historical eye state. The current eye state represents a static eye state at the current moment, while the eye sluggish state represents the eye sluggish state displayed in the dynamic process of the historical event segment. The two are combined to judge the fatigue state, and the static state and dynamic state of the eye are comprehensively considered, so that the fatigue state can be judged more accurately. In addition, since the combination of the eye state and the eye sluggish state can form a variety of combination results, the various combination results can correspond to a variety of fatigue states, so that the fatigue state can be judged more carefully.
[0119] exist Fig. 9 Based on the embodiment shown, Fig.10 As shown, the first acquisition module 9100 includes:
[0120] A region recognition submodule 9110 is used to recognize the current eye region of the detected target from the current frame image;
[0121] In some embodiments, during the recognition process of the current eye area, the face is first located using a face detection model, and the face key points are obtained from the corresponding key points on the face detection model. These key points are distributed in the mouth, nose, eyes, eyebrows and face contour. The key points of the eye area are used to locate the circumscribed rectangle of the eye area, and the rectangle is expanded to a certain extent to ensure that the two eyes are included in the rectangle. Finally, the rectangular area is cut to obtain an eye area that only contains the eyes. The aforementioned face detection model can be an ERT algorithm model, an SDM algorithm model or an MTCNN algorithm model. As follows Figure 2b The extraction process of the current eye region is described by taking the scene in as an example. The current frame image 1001 is input into the face detection model 1002. The face key points are obtained from the corresponding key points on the face detection model. These key points are distributed in the mouth, nose, eyes, eyebrows and face contour. The face position is determined by the face key point circumscribed rectangle 1003. The circumscribed rectangle 1004 of the eye region is located by using the key points of the eye region, and the rectangle is expanded to a certain extent to ensure that the two eyes are included in the expanded rectangle 1005. The image area surrounded by the expanded rectangle 1005 is cut to obtain the current eye region 1006.
[0122] A region identification submodule 9120 is used to determine the open / closed state of the eye and the key points of the eye according to the current eye region;
[0123] In some embodiments, the eye key point refers to the key point of a single eye, that is, the eye key point in the face detection model is matched with the eye key point of the current eye area. The eye opening and closing state is usually determined by the degree of occlusion of the pupil. When the pupil is completely blocked, the eye opening and closing state is considered to be a closed state. When the pupil is not blocked, the eye opening and closing state is considered to be an open state.
[0124] The region recognition submodule 9130 is used to determine the current eye state of the detected target based on the open and closed state and the eye key points.
[0125] In some embodiments, when the eye opening and closing state is the closed eye state, no further judgment is required based on the eye key points. When the eye opening and closing state is the open state, the current eye state is further judged based on the ratio of the height and width of the eye key points. For example, when the ratio of the height and width of the eye key points is higher than the first predetermined ratio, for example, when the ratio of the height and width is higher than 1 / 2, the current eye state is considered to be a fully open state; for another example, when the ratio of the height and width of the eye key points is lower than the second predetermined ratio, for example, when the ratio of the height and width is lower than 1 / 10, the current eye state is considered to be a closed eye state; for another example, when the ratio of the height and width of the eye key points is between the first predetermined ratio and the second predetermined ratio, for example, when the ratio of the height and width is higher than 1 / 10 and lower than 1 / 2, the current eye state is considered to be a partially open state, that is, a squinting state.
[0126] Since the fatigue state of the detected target is usually a continuously changing state, correspondingly, the current eye state usually also has a continuously changing state corresponding to the fatigue state. In this embodiment, the eye state is judged by combining the eye opening and closing state and the eye key points. This can more finely and accurately judge the current eye state, and provide a basis for the subsequent fine and accurate judgment of the fatigue state of the detected target.
[0127] In the aforementioned Fig.10 Based on the embodiments described above, Fig.11 As shown, the region identification submodule 9110 includes:
[0128] A region segmentation unit 9111 is used to determine an eye region of the detected target eye based on the current frame image;
[0129] In some embodiments, in the process of determining the eye region, in the process of identifying the current eye region, firstly, the face is located using a face detection model, and the face key points are obtained from the corresponding key points on the face detection model. These key points are distributed in the mouth, nose, eyes, eyebrows and face contour. The eye region is determined using the eye key points. For example, in the current frame image, a bounding rectangle of an eye key point is determined based on the eye key point, and the image region surrounded by the aforementioned bounding rectangle is segmented to obtain the current eye region. For another example, the bounding rectangle of the eye key point can be expanded outward by several pixels, such as 5 or 8, to obtain a new rectangle to be segmented, and the image region surrounded by the rectangle to be segmented is segmented to obtain the current eye region, thereby ensuring that all eye parts are included in the current eye region. The region determination unit 9112 is used to determine the current eye region of the detected target based on the visible state of the eye in the eye region.
[0130] In some embodiments, the visible state of the eyes of the detected target is realized by a neural network model, for example, by using a deep learning neural network model; before use, the neural network model is trained using a large number of images with occluded and unoccluded eyes. When the current frame image is input to the trained neural network model, the neural network model can output a label corresponding to the current frame image, that is, the eyes in the current frame image are in an occluded state or an unoccluded state. Whether it is the subsequent eye sluggish state judgment process or the current eye state judgment process, it is necessary to judge through the eye area. Therefore, when the eyes are occluded, it will lead to errors in the judgment of the eye sluggish state and the current eye state, and further lead to errors in the judgment of the fatigue state of the detected target. Therefore, in this step, when the eyes are occluded, the current frame image can be abandoned, and when the eyes are not occluded, the eye area corresponding to the current frame image can be used as the current eye area. In this embodiment, in the process of determining the current eye area, the occlusion state of the eyes is used for screening, thereby avoiding the wrong judgment of the eye dull state and the current eye state when the eyes are occluded, which is conducive to the correct judgment of the eye dull state and the current eye state, and further provides a basis for the correct judgment of the fatigue state of the subsequent detected target.
[0131] In the aforementioned Fig.11 Based on the embodiments shown in Fig.12 As shown, the area determination unit 9112 includes:
[0132] Abandoning subunit 91121, configured to abandon the eye region corresponding to the current frame image when the eye visibility state is the blocked state;
[0133] In some embodiments, since the eye visibility state is the blocked state, it indicates that the eyes in the eye area are blocked, that is, invisible, and the subsequent eye sluggish state and the current eye state need to be judged based on the eyes. Therefore, when the eye visibility state is the blocked state, there is no subsequent judgment basis, and therefore, the eye area corresponding to the current frame image should be abandoned.
[0134] The determination subunit 91122 is used to use the eye area corresponding to the current frame image as the current eye area when the eye visibility state is a non-blocked state.
[0135] In some embodiments, according to the description in module 91121, when the current eye visibility state is a non-occluded state, that is, the eyes in the eye area are visible, there is a basis for judging the subsequent eye dull state and the current eye state. Therefore, the eye area in the current frame image is stored as the current eye area to facilitate the subsequent judgment of the eye dull state and the current eye state.
[0136] In this embodiment, whether the eye area of the current frame image is available is judged by the visible state of the eye state, which provides an operable method for the current eye area determination process and facilitates the operation in the current eye area determination process.
[0137] In the above Fig.10 Based on the embodiment shown, Fig.13 As shown, the region identification submodule 9120 includes:
[0138] An input unit 9121, used for inputting the current eye region into a predetermined first neural network model;
[0139] In some embodiments, the predetermined first neural network model is a first neural network model that is pre-trained and saved. During the training process, a large number of images with human faces and the open and closed states and eye key points corresponding to the images are used as training sets to train the first neural network model to adjust the weight values of each neuron in the first neural network, and the adjusted weight values are saved. At this time, the first neural network model using the determined weight values is the first neural network model. For the first neural network model, for example, it can be a deep learning neural network model.
[0140] The acquisition unit 9122 is used to obtain the open and closed state and eye key points output by the first neural network model.
[0141] In some embodiments, a current frame image is input into a predetermined first neural network model, and after calculation by the weight values of the first neural network model, the open and closed state of the eyes and the key points of the eyes in the current frame image can be output.
[0142] by Figure 5b The process of judging the eye opening and closing state is described by taking the scene in as an example. First, the eye region 1007 corresponding to the current frame image is input into the neural network model 1008 to judge the visible state of the eye. The neural network model 1008 outputs the judgment result 1009 of the visible state of the eye, and the eye region with the judgment result of non-occluded state, that is, the visible state of the eye, is used as the current eye region. The current eye region is input into the first neural network model 1010, and the first neural network model 1010 outputs the classification of the eye opening and closing state and the eye key point result 1011. According to the classification of the opening and closing state and the eye key point result 1011, the output result 1012 of whether the eyes are open, squinting or closed can be determined.
[0143] In this embodiment, the eye opening and closing state and eye key points of the current frame are determined by using a predetermined first neural network model that has been trained. The current frame image is input into the predetermined first neural network, and the predetermined first neural network can output the eye opening and closing state and eye key points. For the operator, the operation process is simplified and the operation difficulty is reduced.
[0144] In the above Fig. 9 Based on the embodiment shown, the fatigue determination module 9400 includes:
[0145] The judgment submodule 9410 is used to determine the fatigue state of the detected target according to the current eye state when determining that the eye dull state is an already dull state.
[0146] In some embodiments, when the eye sluggish state is a sluggish state, it indicates that the detected target is in a fatigue state, but the fatigue state of the detected target usually has multiple different stages, such as a mild fatigue state, a severe fatigue state or a sleeping state. The aforementioned judgment process only determines that the detected target has entered a fatigue state, and cannot determine whether the detected target is currently in a mild fatigue state, a severe fatigue state or a sleeping state. Therefore, the current eye state is used to further judge the stage of the fatigue state in the subsequent process. In this embodiment, the nature of whether the detected target is in a fatigue state is judged based on the eye sluggish state, that is, the fatigue state or non-fatigue state of the detected target is judged, and when the detected target is in a fatigue state, in order to further judge the stage of the fatigue state of the detected target, the current eye state is used for further judgment.
[0147] In the above Fig. 9 Based on the embodiment shown, Fig.14 As shown, the judgment submodule 9410 includes:
[0148] The first judgment unit 9411 is used to determine that the fatigue state of the detected target is a sleeping state when the open-closed state is a closed-eye state;
[0149] In one embodiment, the asleep state means that the detected target has fallen asleep. When the eye dull state is the asleep state, it indicates that the eye state of the detected target has not changed within a certain period of time. Combined with the closed eye state of the open and closed state, it can be determined that the detected target has entered the sleeping state.
[0150] The second judgment unit 9412 is used to determine the fatigue state of the detected target according to the ratio of the height and width of the eye key points when the open-closed state is the open-eye state.
[0151] In some embodiments, when the eye sluggish state is the sluggish state, it indicates that the eye state of the detected target has not changed for a certain period of time. Since the eyes of the detected target in the fatigue state gradually close over a period of time as the fatigue state worsens, the ratio of the height and width of the key points of the eyes can represent the corresponding degree of the fatigue state of the detected target to a certain extent.
[0152] In this embodiment, it is specifically described that the stage of fatigue state is judged by combining the dull eye state and the current eye state, which can judge the stage of fatigue state of the detected target in detail and accurately. Therefore, more accurate reminders can be given for the stage of fatigue state of the detected target, avoiding the continuous aggravation of the fatigue state of the detected target and ensuring the safety of the detected target.
[0153] In the above Fig.14 Based on the embodiment shown, Figure 7a As shown, step 9412 includes:
[0154] The first subunit 94121 is used to determine that the current fatigue state is a first fatigue state when the ratio is greater than a first preset ratio;
[0155] In some embodiments, the first fatigue state refers to a mild fatigue state, and the first preset ratio can be preset based on experience, for example, the first preset ratio is set to 1 / 2. Since the eye closure process of the detected target is gradually closed as the fatigue state worsens, the stage of eye closure usually represents the stage of fatigue state. Therefore, in this step, when the ratio of the height and width of the key point of the eye is greater than the first preset ratio, for example, greater than 1 / 2, it indicates that the current fatigue state of the detected target is a mild fatigue state. Figure 7b An image in a mild fatigue state is exemplarily shown, in which a person in the image is in a sluggish state, and when the ratio is greater than a first preset ratio, the fatigue state of the person in the image is a mild fatigue state.
[0156] The second subunit 94122 is used to determine that the current fatigue state is a sleeping state when the ratio is less than a second preset ratio;
[0157] In some embodiments, the second preset ratio is a preset ratio that is smaller than the first preset ratio. The ratio can also be preset based on experience, for example, the second preset ratio is set to 1 / 10. When the degree of eye opening is less than the second preset ratio, since the pupil is still partially visible, the open and closed state is usually judged as an open eye state, but the fatigue state is usually a sleep state. Therefore, in this step, when the ratio of the height to the width of the key point of the eye is lower than the second preset ratio, the state is judged as a sleep state. In this step, it is possible to more accurately judge the situation of entering the sleep state.
[0158] The third subunit 94123 is used to determine that the current fatigue state is a second fatigue state when the ratio is less than or equal to the first preset ratio and greater than or equal to the second preset ratio; wherein the intensity of the second fatigue state is greater than the intensity of the first fatigue state.
[0159] In some embodiments, since the eye closure process of the detected target gradually closes as the fatigue state worsens, the stage of eye closure usually represents the stage of fatigue state. Therefore, in this step, when the key points of the height and width of the eye key points are between the first preset ratio and the second preset ratio, its fatigue state is considered to be the second fatigue state between the first fatigue state and the sleeping state, that is, the severe fatigue state. Figure 7c An image in a severe fatigue state is exemplarily shown, in which a person in the image is in a sluggish state, and when the ratio is less than or equal to a first preset ratio and greater than or equal to a second preset ratio, the fatigue state of the person in the image is a severe fatigue state.
[0160] In this embodiment, the specific fatigue state is determined by the ratio of the height and width of the key points of the eye, providing a judgment process for the fatigue state with strong operability and high accuracy.
[0161] In the above Fig. 9 Based on the embodiment shown, Fig.16 As shown, the sluggishness determination module 9300 includes:
[0162] An input submodule 9310, configured to input the current eye region and at least one historical eye region into a predetermined second neural network model;
[0163] In some embodiments, the predetermined second neural network model is a second neural network model that is pre-trained and saved. During the training process, a large number of eye region combinations and corresponding eye sluggish states are used as training sets to train the second neural network model to adjust the weight values of each neuron in the second neural network, and the adjusted weight values are saved. Among them, the eye region combination refers to a combination of multiple frames of images having the target eye region to be detected. At this time, the second neural network model using the determined weight value is the second neural network model. For the second neural network model, for example, it can be a deep learning neural network model.
[0164] The acquisition submodule 9320 is used to obtain the eye dull state output by the second neural network model.
[0165] In some embodiments, the current eye region and the historical eye region are input to a predetermined second neural network model, and after the weight values of the second neural network model are calculated, the dull state of the eye can be output.
[0166] by Figure 8b Taking the provided scenario as an example, the judgment process of the eye dull state is described as follows: a set of images 1013 of the current eye area and the historical eye area is input into a second neural network 1014, and the second neural network 1014 can output a judgment result 1015 of the eye dull state.
[0167] In this embodiment, the eye dull state is determined by a predetermined second neural network model that has been trained, and the current eye area and the historical eye area are input into the predetermined second neural network. The predetermined second neural network can then output the eye dull state, which simplifies the operation process and reduces the difficulty of operation for the operator.
[0168] Exemplary Electronic Devices
[0169] Below, reference Fig.17 To describe an electronic device according to an embodiment of the present application. Fig.17 A block diagram of an electronic device according to an embodiment of the present application is illustrated.
[0170] like Fig.17 As shown, electronic device 1700 includes one or more processors 1710 and memory 1730 .
[0171] The processor 1710 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 1700 to perform desired functions.
[0172] The memory 1730 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 1710 may run the program instructions to implement the fatigue state detection method of each embodiment of the present application described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0173] In one example, the electronic device 1700 may further include: an input device 1720 and an output device 1740 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0174] For example, the input device 1720 may be the above-mentioned camera device, used to capture input signals of image information. When the electronic device is a stand-alone device, the input device 1720 may be a communication network connector, used to obtain input signals from the camera device.
[0175] In addition, the input device 1720 may also include, for example, a keyboard, a mouse, and the like.
[0176] The output device 1740 can output various information to the outside, including determined distance information, direction information, etc. The output device 1740 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0177] Of course, to simplify, Fig.17 Only some of the components related to the present application in the electronic device 1700 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device 1700 may also include any other appropriate components.
[0178] Exemplary computer program products and computer-readable storage media
[0179] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the fatigue state detection method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.
[0180] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0181] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the fatigue state detection method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0182] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0183] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0184] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0185] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0186] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0187] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A fatigue state detection method, comprising: Identify the current eye state of the detected target from the current frame image; Identify at least one historical eye state of the detected target from at least one historical frame image before the current frame image; Determining an eye dullness state of the detected target based on the current eye state and at least one historical eye state; Based on the corresponding relationship between the current eye state, the eye sluggish state, and the continuous change state between the current eye state and the fatigue state, determine the stage of the fatigue state of the detected target, wherein the fatigue state includes three stages: a mild fatigue state, a severe fatigue state, or a sleeping state; Wherein, the determining the stage of the fatigue state of the detected target based on the corresponding relationship between the current eye state, the eye sluggish state, and the continuous change state between the current eye state and the fatigue state includes: When the eye sluggish state is the sluggish state, and the open / closed state in the current eye state is the open eye state, determining the fatigue state of the detected target according to the ratio of the height and width of the eye key points; When the ratio is greater than the first preset ratio, the current fatigue state is determined to be the first fatigue state; the first fatigue state refers to a mild fatigue state; When the ratio is less than a second preset ratio, determining that the current fatigue state is a sleeping state; When the ratio is less than or equal to the first preset ratio and greater than or equal to the second preset ratio, it is determined that the current fatigue state is the second fatigue state; and the second fatigue state is a severe fatigue state.
2. The fatigue state detection method according to claim 1, wherein: Identifying the current eye state of the detected target from the current frame image includes: Identifying a current eye region of the detected target from the current frame image; Determining the open / closed state of the eye and key points of the eye according to the current eye area; Based on the open and closed state and the eye key points, the current eye state of the detected target is determined.
3. The fatigue state detection method according to claim 2, wherein: Identifying the current eye region of the detected target from the current frame image includes: Based on the current frame image, determining the eye area of the detected target; The current eye region of the detected target is determined according to the eye visibility state in the eye region.
4. The fatigue state detection method according to claim 3, wherein: Determining the current eye area of the detected target according to the eye visibility state in the area includes: When the eye visibility state is an obstructed state, abandoning the eye region corresponding to the current frame image; When the eye visibility state is a non-blocked state, the eye region corresponding to the current frame image is used as the current eye region.
5. The fatigue state detection method according to claim 2, wherein: Determining the open / closed state of the eye and the key points of the eye according to the current eye area includes: Inputting the current eye region into a predetermined first neural network model; Obtain the open and closed states and eye key points output by the first neural network model.
6. The fatigue state detection method according to claim 1, wherein: Determining the eye dull state of the detection target according to the current eye region and at least one historical eye region includes: Inputting the current eye region and at least one historical eye region into a predetermined second neural network model; Obtain the eye dull state output by the second neural network model.
7. A fatigue state detection device, comprising: A first acquisition module, used for identifying the current eye state of the detected target from the current frame image; A second acquisition module is used to identify at least one historical eye state of the detected target from at least one historical frame image before the current frame image; A sluggishness determination module, used to determine the sluggishness state of the eyes of the detected target based on the current eye state and at least one historical eye state; A fatigue judgment module, for determining the stage of the fatigue state of the detected target based on the corresponding relationship between the current eye state, the eye sluggish state, and the continuous change state between the current eye state and the fatigue state, wherein the fatigue state includes three stages: a mild fatigue state, a severe fatigue state, or a sleeping state; The fatigue judgment module includes a judgment submodule, which is used to determine the fatigue state of the detected target according to the ratio of the height and width of the key points of the eyes when the eye sluggish state is the sluggish state and the open-closed state in the current eye state is the open-eye state; The judgment submodule includes: A first subunit, configured to determine that the current fatigue state is a first fatigue state when the ratio is greater than a first preset ratio; The second subunit is used to determine that the current fatigue state is a sleeping state when the ratio is less than a second preset ratio; The third subunit is used to determine that the current fatigue state is a second fatigue state when the ratio is less than or equal to the first preset ratio and greater than or equal to the second preset ratio; wherein the intensity of the second fatigue state is greater than the intensity of the first fatigue state.
8. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the fatigue state detection method according to any one of claims 1 to 6.
9. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the fatigue state detection method described in any one of claims 1-6 above.
Citation Information
Cited By
Digital eyestrain detection method based on multi-task learning and intelligent terminal
CN121570119A
A digital eye fatigue detection method based on multi-task learning and an intelligent terminal
CN121570119B
