Fatigue state identification method, device, equipment, readable storage medium and system
By acquiring and analyzing user's eye images in AR devices, combining blood oxygen saturation and heart rate value optimization recognition results, the problem of low user differentiated recognition accuracy in the prior art is solved, and the fatigue status of different users is accurate is achieved. Improved recognition and algorithm universality.
Patent Information
- Application Number
- CN202010645967.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-07
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2040-07-07
AI Technical Summary
Existing intelligent algorithms cannot differentiate the fatigue status of different users, resulting in insufficient recognition accuracy.
By obtaining eye images of users wearing AR devices, using the target algorithm to analyze and optimize the recognition results, combining blood oxygen saturation and heart rate values, optimization results are generated to improve recognition accuracy, and optimization results and algorithms are stored for subsequent recognition.
Differentiated identification of fatigue states for different users is realized, the recognition accuracy and universality of algorithms are improved, and personalized optimization is achieved for different users and the same user, which is improved the idealness of the recognition results.
Smart Images

Figure CN111767885B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a fatigue state recognition method, device, equipment, readable storage medium and system. Background Art
[0002] At present, intelligent algorithms can be used to identify the user's fatigue state and make corresponding reminders based on the usage scenario and fatigue level. However, intelligent algorithms can generally only cover most users and cannot differentiate the fatigue states of different users. For example, when using algorithm A to identify the fatigue state of user A, the accuracy of the recognition result can reach 99.99%, but when using algorithm A to identify the fatigue state of user B, the accuracy of the recognition result is less than 98%. Therefore, the same algorithm is used to identify the fatigue state of all users, and the recognition accuracy needs to be improved.
[0003] Therefore, how to differentiate the fatigue states of different users and improve the accuracy of recognition is a problem that those skilled in the art need to solve. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a fatigue state recognition method, device, equipment, readable storage medium and system to differentiate the fatigue states of different users and improve the recognition accuracy. The specific scheme is as follows:
[0005] In a first aspect, the present application provides a fatigue state recognition method, which is applied to an AR device, comprising:
[0006] Acquire an eye image of a user wearing the AR device;
[0007] Analyzing the eye image using a target algorithm to obtain a recognition result;
[0008] If the recognition result meets the optimization condition, optimizing the recognition result to obtain an optimized result;
[0009] The optimization result and the target algorithm are stored to identify the fatigue state of the user using the optimization result and the target algorithm.
[0010] Preferably, the analyzing the eye image using a target algorithm to obtain a recognition result includes:
[0011] Converting the eye image into an edge picture using Laplacian edge detection;
[0012] Calibrate the edge image, and binarize the calibrated edge image to obtain a calibrated image;
[0013] The effective area of the eye in the calibration image is calculated, and the recognition result is generated according to the effective area of the eye.
[0014] Preferably, generating the recognition result according to the effective area of the eye includes:
[0015] The recognition result is generated using a fatigue value calculation formula, which is:
[0016]
[0017] Wherein, P is the recognition result, t is the duration corresponding to the eye image, f(x) is the actual mapping value of the user's eye area in the eye image, y is the frame rate of the camera that captures the eye image, c 1 The standard mapping value for the user's eye area.
[0018] Preferably, optimizing the recognition result to obtain an optimized result includes:
[0019] Obtaining the user's blood oxygen saturation and the user's heart rate value corresponding to the eye image;
[0020] The recognition result is optimized using an optimization formula to obtain the optimization result, and the optimization formula is:
[0021]
[0022] Among them, P s is the optimization result, P i is any recognition result calculated based on a preset interval, m is a target parameter calculated based on the preset interval and the duration corresponding to the eye image, a and b are coefficients of the AR device, n Normal blood oxygen saturation, O t is the user's blood oxygen saturation, B n is the normal heart rate value, B t is the heart rate value of the user.
[0023] Preferably, optimizing the recognition result to obtain an optimized result includes:
[0024] Controlling the auxiliary device to optimize the recognition result to obtain the optimization result;
[0025] Receive the optimization result returned by the auxiliary device.
[0026] Preferably, the control auxiliary device optimizes the recognition result to obtain the optimization result, including:
[0027] transmitting the eye image to the auxiliary device, so that a user wearing the auxiliary device can input the optimization result according to the eye image;
[0028] and / or
[0029] The user's blood oxygen saturation and user's heart rate value corresponding to the eye image, as well as the eye image, are transmitted to the auxiliary device, so that the auxiliary device optimizes the recognition result using an optimization formula to obtain the optimization result.
[0030] Preferably, before storing the optimization result and the target algorithm, the method further comprises:
[0031] If there are multiple optimization results, a target optimization result that meets the preset requirements is selected from the multiple optimization results as the optimization result.
[0032] In a second aspect, the present application provides a fatigue state recognition device, which is applied to an AR device, including:
[0033] An acquisition module, used to acquire an eye image of a user wearing the AR device;
[0034] An analysis module, used to analyze the eye image using a target algorithm to obtain a recognition result;
[0035] An optimization module, configured to optimize the recognition result to obtain an optimized result if the recognition result meets the optimization condition;
[0036] A storage module is used to store the optimization result and the target algorithm so as to identify the fatigue state of the user by using the optimization result and the target algorithm.
[0037] In a third aspect, the present application provides an AR device, including:
[0038] Memory for storing computer programs;
[0039] The processor is used to execute the computer program to implement the fatigue state identification method disclosed above.
[0040] In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the fatigue state identification method disclosed above.
[0041] In a fifth aspect, the present application provides a fatigue state recognition system, comprising: an auxiliary device and the AR device as described above.
[0042] It can be seen from the above scheme that the present application provides a fatigue state recognition method, which is applied to AR devices, including: obtaining an eye image of a user wearing the AR device; analyzing the eye image using a target algorithm to obtain a recognition result; if the recognition result meets the optimization condition, optimizing the recognition result to obtain an optimization result; storing the optimization result and the target algorithm to use the optimization result and the target algorithm to identify the fatigue state of the user.
[0043] It can be seen that the present application uses an AR device to collect the user's eye image, and uses the target algorithm to analyze and obtain the recognition result of the eye image; if the recognition result meets the optimization conditions (for example: the current user's performance of fatigue is not suitable for the target algorithm, resulting in inaccurate recognition results), then the optimization result is obtained after optimizing the recognition result, and the optimization result and the target algorithm are stored at the same time, and the optimization result and the target algorithm can be used to identify the fatigue state of the user later. In other words, when a certain algorithm is used to identify the eye image of a certain user and the corresponding recognition result is obtained, if the recognition result of the algorithm is not ideal for the current user, the recognition result is optimized and the optimization result is stored. When the algorithm is used again to identify the fatigue state of the user, the recognition result can be output according to the optimization result, so that the algorithm outputs an ideal recognition result for the current user. According to the scheme provided by the present application, each algorithm is optimized, so that the recognition results of the same algorithm for different users can be optimized accordingly, and at the same time, the recognition results of different algorithms for the same user can also be optimized accordingly, that is, the fatigue state of different users can be differentiated, thereby improving the recognition accuracy and the versatility of the algorithm.
[0044] Correspondingly, a fatigue state identification device, equipment, readable storage medium and system provided by the present application also have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0046] Figure 1 A flow chart of a fatigue state identification method disclosed in this application;
[0047] Figure 2 A schematic diagram of the eyes at various stages in a process of processing a user's eye image disclosed in the present application;
[0048] Figure 3This is a schematic diagram of a fatigue state identification device disclosed in this application;
[0049] Figure 4 A schematic diagram of an AR device disclosed in this application;
[0050] Figure 5 This is a schematic diagram of a fatigue state recognition system disclosed in this application. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] At present, intelligent algorithms can generally only cover most users and cannot differentiate the fatigue states of different users, so the recognition accuracy needs to be improved. To this end, this application provides a fatigue state recognition solution to achieve differentiated recognition of fatigue states of different users and improve recognition accuracy.
[0053] See also Figure 1 As shown, the embodiment of the present application discloses a fatigue state recognition method, which is applied to an AR device, including:
[0054] S101: Acquire an eye image of a user wearing an AR device.
[0055] The eye image is obtained by the camera in the AR device shooting the user's eyes. The eye image can be a video stream or a high-definition picture corresponding to each frame in the video stream. Therefore, the format of the eye image can be jpg, png, mp4, mp5, etc. The eye image can also be synchronously transmitted to a remote server for storage for subsequent viewing and monitoring. The AR device can be AR glasses, etc.
[0056] When the eye image is a high-definition picture corresponding to each frame in the video stream, the decoding operation of the video stream can be omitted, thereby saving the CPU resources of the AR device, reducing its power consumption, and improving processing efficiency.
[0057] S102: Analyze the eye image using a target algorithm to obtain a recognition result.
[0058] It should be noted that the target algorithm can be any one or more algorithms for identifying a person's fatigue state. In a specific implementation, any one of the target algorithms includes: Laplace edge detection, image calibration, binarization processing, eye effective area processing, recognition result generation and other steps.
[0059] In a specific implementation, a target algorithm is used to analyze an eye image to obtain a recognition result, including: using a Laplace edge detection method to convert the eye image into an edge picture; calibrating the edge picture and binarizing the calibrated edge picture to obtain a calibration picture; calculating the effective area of the eye in the calibration picture, and generating a recognition result based on the effective area of the eye.
[0060] Specifically, the user's eye image obtained by the AR device can be found in Figure 2 In (a), Figure 2 As can be seen from (a) in the figure, the user's eye image includes not only the eyes, but also interference information (such as eyebrows, etc.). Therefore, it is necessary to use Laplace edge detection to process the user's eye image to extract the valid eye image. Laplace edge detection first converts the user's eye image into an edge image. For edge images, please refer to Figure 2 (b) in the figure, and then extract the effective eye image from the edge image. For the effective eye image, please refer to Figure 2 At the same time, the eyes in the effective eye image have a certain tilt angle. In order to improve the recognition efficiency and accuracy, it is necessary to calibrate the eye angle in the effective eye image. The calibrated image can be seen in Figure 2 Then the calibrated image is binarized and the effective eye area is calculated, and finally the recognition result is generated based on the effective eye area.
[0061] In a specific implementation, generating a recognition result according to the effective area of the eye includes: generating the recognition result using a fatigue value calculation formula, the fatigue value calculation formula is:
[0062]
[0063] Where P is the fatigue value, that is, the recognition result, t is the duration corresponding to the eye image, f(x) is the actual mapping value of the user's eye area in the eye image, y is the frame rate of the camera that collects the eye image (usually 25, 30, 60, etc.), c 1 is the standard mapping value of the user's eye area. The standard mapping value is the mapping value of the user's eye area in a normal state (ie, when the user's eyes are normally open).
[0064] Among them, since the eye image can be a video stream or a high-definition picture corresponding to each frame in the video stream, the duration corresponding to the eye image is the playback duration of the corresponding video stream. The playback duration is generally measured in seconds, such as 3 seconds.
[0065] S103: If the recognition result meets the optimization condition, the recognition result is optimized to obtain an optimized result.
[0066] If the target algorithm is a plurality of algorithms for identifying a person's fatigue state, multiple recognition results can be obtained. Then, a unique recognition result can be selected from the multiple recognition results for optimization (e.g., selecting the recognition result with the largest fatigue value), that is, only the selected recognition result is optimized, thereby performing personalized optimization on the algorithm corresponding to the recognition result. Of course, multiple recognition results can also be optimized separately to obtain multiple optimization results. Using these multiple optimization results, the corresponding algorithms can be optimized separately, thereby achieving the purpose of performing personalized optimization on multiple algorithms separately.
[0067] The optimization of the recognition result can be performed in the AR device. In a specific implementation, optimizing the recognition result to obtain the optimized result includes: obtaining the user's blood oxygen saturation and the user's heart rate value corresponding to the eye image; optimizing the recognition result using an optimization formula to obtain the optimized result, and the optimization formula is:
[0068]
[0069] Among them, P s To optimize the results, P i is any recognition result calculated based on the preset interval, m is the target parameter calculated based on the preset interval and the duration corresponding to the eye image, a and b are the coefficients of the AR device, O n Normal blood oxygen saturation, O t is the user's blood oxygen saturation, B n is the normal heart rate value, B t is the user's heart rate value. Among them, the user's blood oxygen saturation can be acquired by using the photoelectric sensor in the AR device, and the user's heart rate value can be acquired by using the heart rate sensor in the AR device. The time point for collecting the user's blood oxygen saturation and the user's heart rate value is theoretically within the time period of capturing the eye image, that is: the user's blood oxygen saturation and the user's heart rate value are collected while capturing the eye image. Normal blood oxygen saturation and normal heart rate values are the blood oxygen saturation and heart rate values of the user in a normal state (that is, when the user is not tired). Of course, other physiological parameters of the user (such as pulse) can also be collected while capturing the eye image, and these other physiological parameters can be used to calculate P s . Based on this, the optimization formula can be expanded to:
[0070]
[0071] Among them, C n is the normal pulse of the user in a normal state (i.e. when the user is not tired), c is a related parameter, C t For the user's actual pulse, X n , X t represents the normal and actual values of other available physiological parameters, and x is the relevant parameter.
[0072] The preset interval can be set flexibly, such as 2 seconds. Assuming that the duration corresponding to the eye image is 5 seconds, the target parameter calculated based on the preset interval and the duration corresponding to the eye image is 5-1=4. Specifically, 5 seconds are divided into 2-second intervals, and 4 parts, 0s to 2s, 1s to 3s, 2s to 4s, and 3s to 5s, can be obtained, so the target parameter is 4. For any part, a P value can be calculated using the fatigue value calculation formula, and the average of these 4 P values is calculated, then:
[0073]
[0074] It should be noted that AR devices of different models or manufacturers may correspond to different a and b.
[0075] If the computer resources of the AR device are limited, the optimization of the recognition results can also be performed in the auxiliary device, and the AR device only needs to receive the optimization results. In a specific embodiment, optimizing the recognition results and obtaining the optimization results include: controlling the auxiliary device to optimize the recognition results and obtaining the optimization results; receiving the optimization results returned by the auxiliary device. In a specific embodiment, controlling the auxiliary device to optimize the recognition results and obtaining the optimization results includes: transmitting the eye image to the auxiliary device so that the user wearing the auxiliary device inputs the optimization results according to the eye image; and / or transmitting the user's blood oxygen saturation and user's heart rate value corresponding to the eye image, as well as the eye image to the auxiliary device, so that the auxiliary device uses the above-mentioned optimization formula to optimize the recognition results and obtain the optimization results. The optimization results are transmitted to the socket port of the AR device in json or xml format.
[0076] It can be seen that when the optimization result is determined by the auxiliary device, the optimization result can be directly input by a person after judging the eye image, or can be calculated by the auxiliary device using the optimization formula. A person can input the optimization result through physical buttons, virtual buttons or voice, and the optimization result input by a person can be a fatigue value given autonomously (the value can be between 0 and 1).
[0077] Among them, the auxiliary device can be a remote server, another AR device at the remote end, or an AR device used by another user at the near end. The scenario in which the auxiliary device is an AR device used by another user at the near end is that another user and the user who is identified as fatigued use different AR devices at the same time in the same area. Another user in the same area inputs the optimization results by viewing the eye image, and can quickly observe the current state of the user, and the people around him can have a more accurate judgment. In this scenario, the relevant information is transmitted at a short distance, eliminating the delay in transmission to the remote device, thereby realizing real-time transmission. If a user wears an AR device to drive, then another user (such as a user sitting in the co-pilot) can intervene at the first time to avoid the driver's fatigue driving and safety hazards, and can reduce uncertainty to a minimum.
[0078] The data transmission methods between the auxiliary device and the AR device include but are not limited to wifi, Bluetooth, Zigbee, and Macbee. TCP, UDP and other protocols can be used. Among them, TCP is a long connection, which can ensure the speed and stability of transmission. UDP can make the image transmission faster, but it is less stable. In actual application, it can be flexibly selected according to actual needs.
[0079] There can be multiple auxiliary devices, and these multiple auxiliary devices and the AR device that captures the user's eye image can optimize the recognition results at the same time, thereby obtaining multiple optimization results. If there are multiple optimization results, the target optimization result that meets the preset requirements (such as the smallest fatigue value) is selected from the multiple optimization results as the optimization result; or, the multiple optimization results are comprehensively processed (such as summing the weight values of each optimization result) to obtain a comprehensive optimization result, and then the comprehensive optimization result is used as the final optimization result.
[0080] Of course, when the optimization result of the first auxiliary device or the optimization result output by the AR device that captures the user's eye image is not accurate enough, other devices can be used to optimize the recognition result. For example: After the AR device that captures the user's eye image uses the optimization formula to optimize the recognition result, the optimization result obtained is not ideal, then the relevant information can be transmitted to auxiliary device No. 1, and auxiliary device No. 1 optimizes the recognition result. If the optimization result output by auxiliary device No. 1 is also not ideal, the relevant information is transmitted to auxiliary device No. 2, and auxiliary device No. 2 optimizes the recognition result, and so on. The cycle continues until the optimization result output by a certain auxiliary device can be adopted.
[0081] It should be noted that each result in this embodiment can be replaced by a fatigue value (which can take a value between 0 and 1), so a corresponding range can be set to determine whether the user is fatigued and whether the result meets the optimization conditions. For example: when the fatigue value is between 0.3 and 0.4 (including the end value), it means that the result is not ideal and needs to be optimized, so it meets the optimization conditions; when the fatigue value is greater than 0.4, it is considered that the current user is indeed fatigued, so a corresponding safety reminder can be made, such as: prompting with a dynamic red circle on the display interface of the AR device or broadcasting a preset voice through a microphone to give the user a more obvious prompt, and the microphone is set in the AR device; when the fatigue value is less than 0.3, it is considered that the current user is not fatigued.
[0082] S104: Storing the optimization result and the target algorithm to identify the user's fatigue state using the optimization result and the target algorithm.
[0083] The recognition results of the same algorithm for different users can be optimized accordingly. At the same time, the recognition results of different algorithms for the same user can also be optimized accordingly. These optimization results and the corresponding algorithms are stored in the same algorithm library, so that the algorithm library can cover more users and improve its versatility and universality.
[0084] It can be seen that the embodiment of the present application uses a certain algorithm to identify the eye image of a certain user, and after obtaining the corresponding recognition result, if the recognition result of the algorithm is not ideal for the current user, the recognition result is optimized and stored. When the algorithm is used again to identify the fatigue state of the user, the recognition result can be output according to the optimization result, so that the algorithm outputs an ideal recognition result for the current user. By optimizing each algorithm according to the solution provided in the present application, the recognition results of the same algorithm for different users can be optimized accordingly. At the same time, the recognition results of different algorithms for the same user can also be optimized accordingly, that is, the fatigue state of different users can be differentiated, thereby improving the recognition accuracy and the versatility of the algorithm.
[0085] A fatigue state recognition device provided in an embodiment of the present application is introduced below. The fatigue state recognition device described below and the fatigue state recognition method described above can be referenced to each other.
[0086] See also Figure 3 As shown, the embodiment of the present application discloses a fatigue state recognition device, which is applied to an AR device, including:
[0087] An acquisition module 301 is used to acquire an eye image of a user wearing an AR device;
[0088] An analysis module 302 is used to analyze the eye image using a target algorithm to obtain a recognition result;
[0089] The optimization module 303 is used to optimize the recognition result to obtain an optimized result if the recognition result meets the optimization condition;
[0090] The storage module 304 is used to store the optimization results and the target algorithm so as to identify the fatigue state of the user by using the optimization results and the target algorithm.
[0091] In a specific embodiment, the analysis module includes:
[0092] An edge detection unit, configured to convert the eye image into an edge picture using Laplace edge detection;
[0093] A calibration unit, configured to calibrate the edge image and perform binarization processing on the calibrated edge image to obtain a calibration image;
[0094] A generating unit is used to calculate the effective area of the eye in the calibration image, and generate the recognition result according to the effective area of the eye.
[0095] In a specific implementation, the generating unit is specifically used for:
[0096] The recognition result is generated using a fatigue value calculation formula, which is:
[0097]
[0098] Where P is the recognition result, t is the duration corresponding to the eye image, f(x) is the actual mapping value of the user's eye area in the eye image, y is the frame rate of the camera that collects the eye image, and c 1 The standard mapping value for the user's eye area.
[0099] In a specific implementation, the optimization module is specifically used to:
[0100] Obtain the user's blood oxygen saturation and user's heart rate values corresponding to the eye image;
[0101] The optimization formula is used to optimize the recognition results and obtain the optimization results. The optimization formula is:
[0102]
[0103] Among them, P s To optimize the results, P i is any recognition result calculated based on the preset interval, m is the target parameter calculated based on the preset interval and the duration corresponding to the eye image, a and b are the coefficients of the AR device, O n Normal blood oxygen saturation, O t is the user's blood oxygen saturation, B n is the normal heart rate value, Bt The user's heart rate value.
[0104] In a specific implementation, the optimization module includes:
[0105] A control unit, used for controlling the auxiliary equipment to optimize the recognition result and obtain the optimization result;
[0106] The receiving unit is used to receive the optimization result returned by the auxiliary device.
[0107] In a specific embodiment, the control unit is specifically used for:
[0108] transmitting the eye image to the assistive device so that a user wearing the assistive device can optimize the result based on the eye image input;
[0109] and / or
[0110] The user's blood oxygen saturation and user's heart rate value corresponding to the eye image, as well as the eye image, are transmitted to the auxiliary device, so that the auxiliary device optimizes the recognition result using the optimization formula to obtain the optimized result.
[0111] In a specific embodiment, it also includes:
[0112] The selection module is used to select a target optimization result that meets the preset requirements from the multiple optimization results as the optimization result if there are multiple optimization results.
[0113] Among them, for more specific working processes of each module and unit in this embodiment, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0114] It can be seen that this embodiment provides a fatigue state recognition device, which can optimize the recognition results of the same algorithm for different users, and can also optimize the recognition results of different algorithms for the same user. That is, it can differentiate the fatigue states of different users, thereby improving the recognition accuracy and the versatility of the algorithm.
[0115] An AR device provided in an embodiment of the present application is introduced below. The AR device described below and the fatigue state recognition method and device described above can be referenced to each other.
[0116] See also Figure 4 As shown, the embodiment of the present application discloses an AR device, including:
[0117] Memory 401, used for storing computer programs;
[0118] The processor 402 is used to execute the computer program to implement the method disclosed in any of the above embodiments.
[0119] A readable storage medium provided in an embodiment of the present application is introduced below. The readable storage medium described below and the fatigue state recognition method, device and apparatus described above can be referenced to each other.
[0120] A readable storage medium is used to store a computer program, wherein the computer program, when executed by a processor, implements the fatigue state identification method disclosed in the above embodiment. The specific steps of the method can refer to the corresponding contents disclosed in the above embodiment, and will not be repeated here.
[0121] A fatigue state recognition system provided in an embodiment of the present application is introduced below. The fatigue state recognition system described below and the fatigue state recognition method, device and equipment described above can be referenced to each other.
[0122] See also Figure 5 As shown, the embodiment of the present application discloses a fatigue state recognition system, including: two auxiliary devices, and the AR device described in the above embodiment. Among them, each auxiliary device can assist in judging the fatigue state of the user wearing the AR device, and when the AR device recognizes an accurate result, the AR device can feed back the relevant result to each auxiliary device. Among them, the number of auxiliary devices in the fatigue state recognition system can be flexibly adjusted according to actual needs.
[0123] For example: when the fatigue value is between 0.3 and 0.4 (including the end values), the AR device will send relevant information to each auxiliary device so that each auxiliary device can assist in judging the user's fatigue status; when the fatigue value is greater than 0.4, it is considered that the current user is indeed fatigued, so the AR device will directly feedback the result to each auxiliary device and make corresponding safety reminders at the same time.
[0124] In a specific implementation, when the AR device uses a target algorithm to analyze the user's eye image and obtains a recognition result, if the recognition result meets the optimization conditions, an auxiliary device can be asked to make an auxiliary judgment first. If the auxiliary judgment determines that the current user is tired, the AR device is controlled to use the above-mentioned optimization formula to optimize the recognition result.
[0125] If another user and the user who is identified as fatigued are using different AR devices in the same area at the same time, the other user can make an auxiliary judgment by looking at the eye image, and the user's current real state can be quickly observed, and the people around him can make a more accurate judgment. In this scenario, the relevant information is transmitted at a short distance, eliminating the delay of transmitting to the remote device, thus achieving real-time transmission. If the user wears an AR device to drive, then another user (such as the user sitting in the co-pilot) can intervene immediately to avoid the driver's fatigue driving and cause safety hazards, which can minimize uncertainty.
[0126] The "first", "second", "third", "fourth", etc. (if any) referred to in this application 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 interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method or device 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 or devices.
[0127] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0128] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0129] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
[0130] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A fatigue state recognition method, characterized in that: Applied to AR devices, including: Acquire an eye image of a user wearing the AR device; Analyzing the eye image using a target algorithm to obtain a recognition result; If the recognition result meets the optimization condition, optimizing the recognition result to obtain an optimized result; storing the optimization result and the target algorithm to identify the fatigue state of the user by using the optimization result and the target algorithm; The step of optimizing the recognition result to obtain the optimized result includes: Obtaining the user's blood oxygen saturation and the user's heart rate value corresponding to the eye image; The recognition result is optimized using an optimization formula to obtain the optimization result, and the optimization formula is: ; in, For the optimization result, is any recognition result calculated based on a preset interval, m is a target parameter calculated based on the preset interval and the duration corresponding to the eye image, a and b are coefficients of the AR device, Normal blood oxygen saturation, is the blood oxygen saturation of the user, is the normal heart rate value, is the user's heart rate value; The step of analyzing the eye image using a target algorithm to obtain a recognition result includes: Converting the eye image into an edge picture using Laplacian edge detection; Calibrate the edge image, and binarize the calibrated edge image to obtain a calibrated image; Calculating the effective area of the eye in the calibration image, and generating the recognition result according to the effective area of the eye; Among them, if the target algorithm is a plurality of algorithms for identifying a person's fatigue state, multiple recognition results are obtained, and the recognition result with the largest fatigue value is selected from the multiple recognition results for optimization, so as to perform personalized optimization on the algorithm corresponding to the recognition result; or multiple recognition results are optimized separately to obtain multiple optimization results, and the corresponding algorithms are optimized separately using the multiple optimization results, so as to perform personalized optimization on the multiple algorithms separately.
2. The fatigue state recognition method according to claim 1, characterized in that: Generating the recognition result according to the effective eye area includes: The recognition result is generated using a fatigue value calculation formula, which is: ; Wherein, P is the recognition result, t is the duration corresponding to the eye image, x is the actual mapping value of the user's eye area in the eye image, y is the frame rate of the camera that captures the eye image, The standard mapping value for the user's eye area.
3. The fatigue state recognition method according to claim 1, characterized in that: The optimizing the recognition result to obtain the optimized result includes: Controlling the auxiliary device to optimize the recognition result to obtain the optimization result; Receive the optimization result returned by the auxiliary device.
4. The fatigue state recognition method according to claim 3, characterized in that: The control auxiliary device optimizes the recognition result to obtain the optimization result, including: transmitting the eye image to the auxiliary device, so that a user wearing the auxiliary device can input the optimization result according to the eye image; and / or The user's blood oxygen saturation and user's heart rate value corresponding to the eye image, as well as the eye image, are transmitted to the auxiliary device, so that the auxiliary device optimizes the recognition result using an optimization formula to obtain the optimization result.
5. The fatigue state recognition method according to claim 1 or 3, characterized in that: Before storing the optimization result and the target algorithm, the method further includes: If there are multiple optimization results, a target optimization result that meets the preset requirements is selected from the multiple optimization results as the optimization result.
6. A fatigue state recognition device, characterized in that: Applied to AR devices, including: An acquisition module, used to acquire an eye image of a user wearing the AR device; An analysis module, used to analyze the eye image using a target algorithm to obtain a recognition result; An optimization module, configured to optimize the recognition result to obtain an optimized result if the recognition result meets the optimization condition; A storage module, used for storing the optimization result and the target algorithm, so as to identify the fatigue state of the user by using the optimization result and the target algorithm; The step of optimizing the recognition result to obtain the optimized result includes: Obtaining the user's blood oxygen saturation and the user's heart rate value corresponding to the eye image; The recognition result is optimized using an optimization formula to obtain the optimization result, and the optimization formula is: ; in, For the optimization result, is any recognition result calculated based on a preset interval, m is a target parameter calculated based on the preset interval and the duration corresponding to the eye image, a and b are coefficients of the AR device, Normal blood oxygen saturation, is the blood oxygen saturation of the user, is the normal heart rate value, is the user's heart rate value; The step of analyzing the eye image using a target algorithm to obtain a recognition result includes: Converting the eye image into an edge picture using Laplacian edge detection; Calibrate the edge image, and binarize the calibrated edge image to obtain a calibrated image; Calculating the effective area of the eye in the calibration image, and generating the recognition result according to the effective area of the eye; Among them, if the target algorithm is a plurality of algorithms for identifying a person's fatigue state, multiple recognition results are obtained, and the recognition result with the largest fatigue value is selected from the multiple recognition results for optimization, so as to perform personalized optimization on the algorithm corresponding to the recognition result; or multiple recognition results are optimized separately to obtain multiple optimization results, and the corresponding algorithms are optimized separately using the multiple optimization results, so as to perform personalized optimization on the multiple algorithms separately.
7. An AR device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the fatigue state recognition method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the fatigue state recognition method according to any one of claims 1 to 5 is implemented.
9. A fatigue state recognition system, characterized in that: include: An auxiliary device and an AR device as claimed in claim 7.
Citation Information
Patent Citations
Online early warning system and method of weariness working
CN101032404A
Multimodal driver fatigue detection method and special equipment thereof
CN102073857A
Parking navigation path recommendation system and recommendation method
CN107248315A
Automobile seat control method and system, and storage medium
CN107685660A
Driver fatigue prompting device and working method thereof
CN108639058A
