A method and system for predicting the direction of human eye gaze
Through human eye gaze direction prediction methods and systems, feature extraction and residual optimization, combined with difference and adjustment modules, solve the problem of insufficient gaze direction prediction accuracy under illumination and posture changes, improve prediction accuracy and reduce errors.
Patent Information
- Application Number
- CN202210016006.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-07
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-01-07
AI Technical Summary
The existing technology has insufficient accuracy in predicting the direction of human eye gaze when illumination changes and head posture changes, and deep learning methods have personalization problems and errors caused by invalid pictures.
A human eye gaze direction prediction method and system is adopted to obtain the human eye pictures to be measured and calibrated, perform feature extraction and residual optimization, and use the differential branch and adjustment module to output the gaze direction based on the pre-trained line of sight prediction model, reducing Personalization issues and invalid image errors.
It improves the utilization of calibration image label information, alleviates personalization problems, reduces errors caused by invalid images, and improves the accuracy of gaze direction prediction.
Smart Images

Figure CN114360042B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing, and in particular relates to a method and system for predicting the gaze direction of human eyes. Background Art
[0002] Gaze direction is an important non-verbal signal that contains rich psychological characteristics and allows researchers to understand more about human behavior. Therefore, gaze direction can be widely used in many fields, such as human-computer interaction and skill transfer. At present, gaze tracking is an important field in the field of computer vision. Gaze prediction based on human eye images is an important task in this field.
[0003] The gaze prediction task is mainly to predict the direction of a human eye in the camera coordinate system through a human eye picture. The x, y, z values of the unit vector or the pitch and yaw angles are usually used to describe the gaze direction. Traditional algorithms are mainly based on geometric features in human eye pictures, such as pupil shape, pupil center position, and pupil edge, to estimate the gaze direction. Traditional methods require specific detection equipment, and the accuracy of traditional methods cannot meet the needs of practical applications when the lighting changes and the head posture changes. Existing deep learning methods can input a human eye picture and output the gaze direction of the human eye picture in the camera coordinate system. Deep learning methods require a large amount of data for training to extract high-dimensional features of human eye pictures so that they can maintain a certain accuracy under lighting changes and head posture changes.
[0004] There are also some problems with deep learning methods: on the one hand, due to serious personalization problems caused by personal factors, there is a domain gap between the training data and the target data, and the accuracy will be limited by this. On the other hand, in data sampling, some invalid images with closed eyes will appear in the training samples. These data samples will produce errors in the training process and affect the final training. Summary of the invention
[0005] The purpose of the present invention is to provide a method and system for predicting the gaze direction of human eyes, so as to solve the personalization problem existing in the above-mentioned prior art and the problem of automatically cleaning invalid pictures.
[0006] On the one hand, to achieve the above-mentioned purpose, the present invention provides a method for predicting the gaze direction of human eyes, comprising:
[0007] Obtain the human eye image to be tested and the calibrated human eye image;
[0008] The human eye image to be tested and the calibrated human eye image are simultaneously input into a pre-trained sight line prediction model, and the gaze direction of the human eye in the human eye image to be tested is output.
[0009] Optionally, the calibrated human eye image of the object to be tested is a human eye image of the object to be tested with label information.
[0010] Optionally, the process of simultaneously inputting the human eye image and the calibrated human eye image into a pre-trained sight line prediction model and outputting the gaze direction of the human eye to be measured includes:
[0011] Extracting features from the human eye picture and the calibrated human eye picture respectively to obtain feature information, wherein the feature information includes human eye picture feature information and calibrated human eye picture feature information;
[0012] Perform residual optimization on the feature information to obtain the adjustment information vector;
[0013] The gaze direction of the human eye in the human eye picture to be tested is obtained based on the adjustment information vector.
[0014] Optionally, the process of performing residual optimization on feature information includes:
[0015] Acquire an adjustment information vector based on the human eye picture feature information and the calibrated human eye picture feature information;
[0016] The gaze direction of the human eye in the human eye picture to be tested is obtained based on the feature information and the adjustment information vector.
[0017] Optionally, the process of acquiring the adjustment information vector based on the human eye picture feature information and the calibrated human eye picture feature information includes:
[0018] Performing differential calculation based on the human eye image feature information and the calibrated human eye image feature information to obtain differential information of the gaze direction;
[0019] The adjustment information vector is obtained based on the label information in the calibrated human eye and the difference information of the gaze direction.
[0020] On the other hand, to achieve the above object, the present invention provides a system for predicting the direction of gaze of human eyes, comprising:
[0021] Acquisition module, feature extraction module, residual optimization module and gaze prediction module;
[0022] The acquisition module is used to obtain a human eye picture of the target to be measured and a calibrated human eye picture of the target to be measured, wherein the calibrated human eye picture of the target to be measured is a human eye picture of the target to be measured with label information;
[0023] The feature extraction module is used to extract features from the human eye picture and the calibrated human eye picture respectively to obtain feature information, wherein the feature information includes human eye picture feature information and calibrated human eye picture feature information;
[0024] The residual optimization module is used to perform residual optimization on the feature information to obtain an adjustment information vector;
[0025] The gaze prediction module is used to predict the gaze direction of the human eye in the human eye picture of the target to be measured based on the feature information and the adjustment information vector.
[0026] Optionally, the feature extraction module uses a feature extraction network to extract features, and the feature extraction network uses a dense connection method to build a convolution layer.
[0027] Optionally, the residual optimization module includes a main branch module and a difference branch module;
[0028] The main branch module is used to output the characteristic information;
[0029] The difference branch module is used to output the adjustment information vector;
[0030] The main branch module and the differential branch module are both composed of fully connected layers.
[0031] Optionally, the differential branch module includes: a differential module and a regulating module;
[0032] The difference module is used to perform difference calculation based on the human eye picture feature information and the calibrated human eye picture feature information to obtain difference information of the gaze direction;
[0033] The adjustment module is used to obtain the adjustment information vector based on the label information in the calibrated person's eyes and the difference information of the gaze direction;
[0034] The differential module and the adjustment module are both composed of three fully connected layers.
[0035] The technical effects of the present invention are:
[0036] The present invention alleviates the personalization problem by designing a differential branch path, and at the same time improves the utilization degree of the label information of the calibration image.
[0037] The present invention optimizes the feature vector describing the human eye picture to be predicted through the residual structure, and at the same time, reduces the error caused by the invalid picture. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0039] Figure 1 Schematic diagram of the flow of a method for determining a sight direction based on residual optimization in an embodiment of the present invention;
[0040] Figure 2 is a schematic diagram of a residual optimization model in an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of a feature extraction network in an embodiment of the present invention;
[0042] Figure 4 It is a schematic diagram of the structure of the residual optimization part in an embodiment of the present invention;
[0043] Figure 5 Schematic diagram of differential branches in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0045] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0046] The flowchart of the method for determining the sight direction based on residual optimization is as follows: Figure 1 The overall process of the present invention is as follows: obtaining a human eye picture of the object to be predicted; obtaining a calibrated human eye picture of the object to be predicted; inputting the human eye picture to be predicted and the calibrated human eye picture into the residual optimization model, and outputting the gaze direction of the human eye picture to be predicted.
[0047] The schematic diagram of the residual optimization model is as follows: Figure 2 The residual optimization model includes a feature extraction network and a residual optimization structure. The feature extraction network diagram is shown in Figure 3 As shown in Figure 1, the feature extraction network uses dense connections to build convolutional layers. The relationship between the input and output of a single convolutional layer is as shown in formula (1):
[0048] x l =H l ([x0, x1, x2…x l-1 ]) (1)
[0049] Among them, x i is the information output by the i-th convolutional layer, H l The nonlinear changes made to the structure of the lth convolutional layer, [x0, x1, x2…x l-1 ] represents the merging operation of the number of convolutional layer output channels from 0 to l-1.
[0050] The schematic diagram of the residual optimization structure is as follows: Figure 4 As shown in , the residual optimization part has two branches consisting of some fully connected layers, the main branch and the difference branch. The difference branch diagram is shown in Figure 5 As shown in Figure 1, the branch introduces the operation of differential information to solve the problem of personalized factors. The personalized factor problem is caused by the structure of the human eye itself. There is a Kappa angle in the structure of the human eye, which limits the accuracy determined by the gaze method. The introduction of differential information calculation cleverly transforms the fitting purpose from the gaze direction to the rotation angle, cleverly solving the limitation of the Kappa angle. The definition of differential information is as shown in formula (2):
[0051] Diff=g1-g2 (2)
[0052] Among them, Diff is the differential information, g1 is the real gaze direction of the human eye image to be predicted, and g2 is the real gaze direction of the calibrated human eye image. The differential information is intended to represent their difference.
[0053] The difference branch outputs the difference information between the eye image to be predicted and the gaze direction of the calibrated eye image in the difference module. In addition, the difference module is composed of three fully connected layers. After that, based on formula (3) and formula (4), the eye image to be predicted is synthesized based on the difference information.
[0054] The feature vector of the image and the calibrated human eye image.
[0055]
[0056]
[0057] in, They respectively describe the gaze direction of the calibrated human eye image and the gaze direction of the human eye image to be predicted. g2 is the label information of the calibrated image, and RES is the output of the main branch describing the gaze direction of the human eye image to be predicted.
[0058] The adjustment module is based on formula (5), and the difference branch outputs the final adjustment vector information, where the adjustment module consists of three fully connected layers. The adjustment operation introduces the label information in the calibrated human eye picture into the training process of the model, enhancing the utilization of the label information in the calibrated human eye picture.
[0059]
[0060] Among them, Adaption is the adjustment vector information, AD is the nonlinear change made by the adjustment module, and [] represents the splicing operation on the row vectors.
[0061] The schematic diagram of the residual optimization structure is as follows Figure 4As shown, it follows formula (6). Since the data set collection process is to shoot a video of the head turning continuously, the eyes may be closed or absent in the video due to the head posture angle and the natural blinking reaction of the human body. The residual optimization structure can effectively reduce the error caused by invalid images in Adaption. Specifically, when the calibrated human eye image is an invalid image, the Adaption value will be invalid, that is, 0, thereby avoiding reducing the noise generated by invalid images in Adaption during the training process.
[0062] y=RES+Adaption (6)
[0063] Among them, y is the output vector of the residual structure optimization method, RES is the vector output by the main branch that describes the gaze direction of the human eye picture to be predicted, and Adaption is the adjustment component information output by the residual branch.
[0064] The loss function used in the training process follows formula (7), where formula (7) is composed of formula (8) and formula (9). Formula (8) provides the contribution of the differential information to the final gaze direction, and formula (9) provides the contribution of the gaze direction information output by the main branch to the final gaze direction.
[0065] L1=||diff-(g1-g2)|| (7)
[0066] L2=||RES-g1|| (8)
[0067] L=α×L1+β×L2 (9)
[0068] Among them, L is the loss function finally used in training, α and β respectively determine the influence of the differential information and the main branch output information on the final gaze direction. In training, α and β are set to 0.1 and 0.9 respectively.
[0069] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for predicting the direction of human eye gaze, characterized in that: The following steps are involved: Obtaining a human eye image to be tested and a calibrated human eye image, wherein the calibrated human eye image is a human eye image of the object to be tested with label information; Inputting the human eye image to be tested and the calibrated human eye image into a pre-trained sight line prediction model simultaneously; The sight line prediction model includes a feature extraction network and a residual optimization model; The feature extraction network is used to extract features from the human eye picture and the calibrated human eye picture respectively to obtain feature information, wherein the feature information includes human eye picture feature information and calibrated human eye picture feature information; The residual optimization model includes a main branch and a difference branch, wherein the difference branch is used to perform residual optimization on the human eye picture feature information and the calibrated human eye picture feature information to obtain an adjustment information vector; the main branch is used to output the human eye picture feature information, and obtain the gaze direction of the human eye in the human eye picture to be tested based on the human eye picture feature information and the adjustment information vector; The process of obtaining the adjustment information vector from the human eye picture feature information and the calibrated human eye picture feature information includes: The differential branch includes a differential module and an adjustment module, wherein the differential branch outputs differential information between the gaze direction of the human eye image to be tested and the calibration human eye image in the differential module, and the differential module is composed of three fully connected layers; The differential information is expressed as: Diff=g1-g2 (2) Where Diff is the difference information, g1 is the real gaze direction of the human eye image to be tested, and g2 is the real gaze direction of the calibrated human eye image. The difference information is used to represent their difference; Based on formula (3) and formula (4), a feature vector describing the human eye image to be tested and the calibrated human eye image is synthesized based on the differential information; in, They respectively describe the gaze direction of the calibration eye picture and the gaze direction of the eye picture to be tested. g2 is the label information of the calibration eye picture. RES is the output of the main branch describing the gaze direction of the eye picture to be tested. The adjustment module is based on formula (5), and the difference branch outputs the final adjustment vector information, where the adjustment module consists of three fully connected layers; Wherein, Adaption is the adjustment vector information, AD is the nonlinear change made by the adjustment module, and [] indicates the concatenation operation on the row vectors.
2. A system for predicting the direction of gaze of human eyes, characterized in that: The method for predicting the gaze direction of human eyes according to claim 1 comprises: a collection module, a feature extraction module, a residual optimization module and a gaze prediction module; The acquisition module is used to obtain a human eye picture of the target to be measured and a calibrated human eye picture of the target to be measured, wherein the calibrated human eye picture of the target to be measured is a human eye picture of the target to be measured with label information; The feature extraction module is used to extract features from the human eye picture and the calibrated human eye picture respectively to obtain feature information, wherein the feature information includes human eye picture feature information and calibrated human eye picture feature information; The residual optimization module is used to perform residual optimization on the feature information to obtain an adjustment information vector; The gaze prediction module is used to predict the gaze direction of the human eye in the human eye picture of the target to be measured based on the human eye picture feature information and the adjustment information vector.
3. The system according to claim 2, characterized in that The feature extraction module uses a feature extraction network to extract features, and the feature extraction network uses a dense connection method to build a convolution layer.
4. The system according to claim 2, characterized in that The residual optimization module includes a main branch module and a difference branch module; The main branch module is used to output the human eye picture feature information; The difference branch module is used to output the adjustment information vector; The main branch module and the differential branch module are both composed of fully connected layers.
Citation Information
Patent Citations
Method and device for generating human eye recognition model
CN108491823A
Line-of-sight direction determination method and device, electronic equipment and storage medium
CN111178278A
