Adaptive line of sight estimation method and device

By extracting features and calculating feature differences through the neural network model, the adaptive gaze estimation method solves the problem of low accuracy of gaze estimation for specific people, reduces resource consumption and operational complexity, and improves gaze estimation performance.

CN111353506BActive Publication Date: 2024-10-01BEIJING SAMSUNG TELECOM R&D CENT +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811582119.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-24
Publication Date
2024-10-01
Estimated Expiration
2038-12-24

Smart Images

  • Figure CN111353506B_ABST
    Figure CN111353506B_ABST
Patent Text Reader

Abstract

Provided are an adaptive line of sight estimation method and device. The line of sight estimation method comprises: acquiring features of data used for calibration and features of data used for estimation; and performing line of sight estimation using the acquired features. According to the line of sight estimation method and device disclosed in the present invention, the line of sight estimation effect for a specific person can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to the field of line of sight estimation, and more particularly, to an adaptive line of sight estimation method and device. Background Art

[0002] The estimation method in the related art usually uses a basic model, through which the line of sight of any person can be estimated. However, the basic model is usually established by fitting a large number of human eye images as training data to obtain universal parameters. Since the eye shape of each user is different, the prediction effect of the basic model is better (for example, the accuracy of the prediction result is high) for people whose eye shape is similar to the eye shape corresponding to the universal parameters. On the contrary, for people whose eye shape is greatly different from the eye shape corresponding to the universal parameters, the prediction effect of the basic model is poor. Summary of the invention

[0003] An exemplary embodiment of the present disclosure is to provide an adaptive sight line estimation method and device to solve the problem of low accuracy of sight line estimation results for a specific person in the prior art.

[0004] According to an exemplary embodiment of the present disclosure, an adaptive line of sight estimation method is provided. The line of sight estimation method comprises: acquiring features of data used for calibration and features of data used for estimation; and performing line of sight estimation using the acquired features.

[0005] Optionally, the line of sight estimation method further includes: obtaining a neural network model, wherein the step of obtaining features includes: extracting features of data used for calibration through the neural network model and / or extracting features of data used for estimation through the neural network model.

[0006] Optionally, the step of obtaining the neural network model includes: training the neural network model using data for training.

[0007] Optionally, the data used for training includes a first user image and a second user image, wherein the first user image and the second user image are respectively an image of the same user when looking at a first object and an image of the same user when looking at a second object; wherein the step of training the neural network model includes: training the neural network model by taking the first user image and the second user image as input and the relative positions of the first object and the second object as output.

[0008] Optionally, the data used for training includes image-related data for training and sight labels for training, and the step of training the neural network model includes: converting the sight labels for training into binary classification labels; determining a loss function corresponding to the binary classification labels; training the first neural network model by using the image-related data for training, the binary classification labels and the loss function; wherein the step of converting the sight labels for training into binary classification labels includes: determining the coordinate Y of the sight labels for training on a specific coordinate axis a , where Y amin ≤Y a ≤Y amax , Y amin and Y amax The coordinates Y a ; setting a plurality of nodes at a predetermined spacing on the specific coordinate axis, wherein the size of the predetermined spacing is bin_size, generating a binary classification label including a vector having a dimension equal to the number of the plurality of nodes, wherein the value of each dimension of the vector is determined by the size of the predetermined spacing and the coordinate Y a The loss function is calculated by the values ​​of each dimension of the vector and the activation probability, and the activation probability is calculated by the data for training corresponding to each node.

[0009] Optionally, the data used for training includes image-related data for training and line of sight labels for training, and the step of training the neural network model includes: extracting two pairs of samples from the image-related data for training and the line of sight labels for training, wherein the two pairs of samples correspond to the same user, each pair of samples includes an image-related data for training and a corresponding line of sight label for training, and the difference between the two line of sight labels of the two pairs of samples is greater than a first threshold and less than a second threshold; and training the second neural network model using the two pairs of samples.

[0010] Optionally, the step of training the neural network model also includes: extracting another two pairs of samples through the step of extracting two pairs of samples, wherein the difference between the two sight lines labels of the other two pairs of samples is greater than a third threshold and less than a fourth threshold, wherein the third threshold is greater than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold; continuing to train the second neural network model through the other two pairs of samples, wherein the step of extracting two pairs of samples is performed at least twice so that the difference between the two sight lines labels of the two pairs of samples extracted each time is less than the difference between the two sight lines labels of the two pairs of samples extracted previously.

[0011] Optionally, before training the second neural network model, the line of sight estimation method also includes: setting parameters of the second neural network model based on the first neural network model, wherein the second neural network model and the first neural network model have the same network layer for feature extraction, and the step of training the second neural network model using the two pairs of samples includes: training a classifier of the second neural network model using two image-related data for training of the two pairs of samples and binary classification labels corresponding to the two image-related data for training.

[0012] Optionally, the step of training the classifier of the second neural network model includes: extracting features of the two image-related data for training respectively through the trained first neural network model; calculating the feature difference between the features of the two image-related data for training; and training the classifier of the second neural network model by taking the feature difference as input and the binary classification label corresponding to the two image-related data for training as output.

[0013] Optionally, extracting features of data for calibration through the neural network model and / or extracting features of data for estimation through the neural network model includes: extracting features of data for calibration through the second neural network model and / or extracting features of data for estimation through the second neural network model.

[0014] Optionally, the step of performing line of sight estimation using the acquired features includes: estimating the position of the gaze point in the gaze area using the acquired neural network model based on the acquired features of the data used for estimation and the acquired features of the data used for calibration.

[0015] Optionally, the step of performing line of sight estimation using the acquired features includes: calculating the feature difference between the features of the data extracted for estimation and the features of the data extracted for calibration; using the acquired neural network model to estimate the classifier output result corresponding to the calculated feature difference; calculating the probability that the gaze point corresponding to the data used for estimation belongs to each sub-region of multiple sub-regions divided from the gaze area based on the estimated classifier output result; and determining the center of the sub-region with the highest probability as the estimated gaze point.

[0016] Optionally, when the gaze area is an area on a two-dimensional plane, the gaze area is divided in the following manner: two straight lines that are perpendicular to and intersect with each calibration point are set for each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines; or when the gaze area is an area in a three-dimensional space, the gaze area is divided in the following manner: three straight lines that are perpendicular to each other and intersect with each calibration point are set for each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines.

[0017] Optionally, the step of calculating the probability that the gaze point corresponding to the data used for estimation belongs to each sub-region of a plurality of sub-regions divided from the gaze area includes: determining, for the classifier output result corresponding to each calibration point, the probability that the coordinate of each dimension of the gaze point is less than and greater than the coordinate of each calibration point with respect to the said dimension; and calculating the probability that the gaze point belongs to each sub-region based on the determined probability.

[0018] Optionally, the probability that the fixation point corresponding to the data used for estimation belongs to each sub-region is calculated by comparing the probability of the relationship between each sub-region and the corresponding calibration point among the multiple sub-regions.

[0019] Optionally, before performing line of sight estimation using the acquired features, the line of sight estimation method further includes: acquiring data used for calibration when the specific point is used as one of the calibration points based on an operation of the user on the specific point.

[0020] Optionally, the specific point includes at least one of the following: a specific point on the device screen, a specific button on the device, and a specific point having a certain relative position with the device.

[0021] Optionally, the line of sight estimation method further includes: displaying a calibration point; acquiring an image of the user when the user is gazing at the calibration point as the data for calibration; and performing calibration according to the data for calibration.

[0022] Optionally, the step of obtaining a user image of the user when the user is looking at the calibration point includes: in response to receiving a gesture for the calibration point, determining the distance between the operation point corresponding to the gesture and the calibration point, and when the distance is less than a distance threshold, obtaining the user image as the data for calibration.

[0023] According to another exemplary embodiment of the present disclosure, a line of sight estimation device is provided, including: a feature acquisition unit, which acquires features of data used for calibration and features of data used for estimation; and an estimation unit, which performs line of sight estimation by using the acquired features.

[0024] Optionally, the line of sight estimation device further includes: a model training unit, used to obtain a neural network model, wherein the feature acquisition unit extracts features of data used for calibration through the neural network model and / or extracts features of data used for estimation through the neural network model.

[0025] Optionally, the model training unit trains the neural network model using training data.

[0026] Optionally, the data used for training includes a first user image and a second user image, wherein the first user image and the second user image are respectively an image of the same user when looking at a first object and an image of the same user when looking at a second object; wherein the model training unit trains the neural network model by taking the first user image and the second user image as input and the relative positions of the first object and the second object as output.

[0027] Optionally, the data used for training includes image-related data for training and sight-line labels for training, and the model training unit converts the sight-line labels for training into binary classification labels; determines a loss function corresponding to the binary classification labels; trains the first neural network model by using the image-related data for training, the binary classification labels and the loss function; wherein the model training unit determines the coordinate Y of the sight-line label for training on a specific coordinate axis a , where Y amin ≤Y a ≤Y amax , Y amin and Y amax The coordinates Y a ; setting a plurality of nodes at a predetermined spacing on the specific coordinate axis, wherein the size of the predetermined spacing is bin_size, generating a binary classification label including a vector having a dimension equal to the number of the plurality of nodes, wherein the value of each dimension of the vector is determined by the size of the predetermined spacing and the coordinate Y a The loss function is calculated by the values ​​of each dimension of the vector and the activation probability, and the activation probability is calculated by the data for training corresponding to each node.

[0028] Optionally, the data used for training includes image-related data for training and line of sight labels for training, and the model training unit extracts two pairs of samples from the image-related data for training and the line of sight labels for training, wherein the two pairs of samples correspond to the same user, each pair of samples includes an image-related data for training and a corresponding line of sight label for training, and the difference between the two line of sight labels of the two pairs of samples is greater than a first threshold and less than a second threshold; and the second neural network model is trained by the two pairs of samples.

[0029] Optionally, the model training unit extracts another two pairs of samples through the step of extracting two pairs of samples, wherein the difference between the two sight lines labels of the other two pairs of samples is greater than a third threshold and less than a fourth threshold, wherein the third threshold is greater than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold; and continues to train the second neural network model through the other two pairs of samples, wherein the step of extracting two pairs of samples is performed at least twice so that the difference between the two sight lines labels of the two pairs of samples extracted each time is less than the difference between the two sight lines labels of the two pairs of samples extracted previously.

[0030] Optionally, before training the second neural network model, the model training unit sets parameters of the second neural network model based on the first neural network model, wherein the second neural network model and the first neural network model have the same network layer for feature extraction; the model training unit trains a classifier of the second neural network model using two image-related data for training of the two pairs of samples and binary classification labels corresponding to the two image-related data for training.

[0031] Optionally, the model training unit extracts features of the two image-related data for training respectively through the trained first neural network model; calculates feature differences between the features of the two image-related data for training; and trains a classifier of the second neural network model by taking the feature differences as input and the binary classification labels corresponding to the two image-related data for training as output.

[0032] Optionally, the feature acquisition unit extracts features of data used for calibration through the second neural network model and / or extracts features of data used for estimation through the second neural network model.

[0033] Optionally, the estimation unit estimates the position of the gaze point in the gaze area through the acquired neural network model according to the features of the acquired data for estimation and the features of the acquired data for calibration.

[0034] Optionally, an estimation unit calculates a feature difference between features of the data extracted for estimation and features of the data extracted for calibration; uses the acquired neural network model to estimate a classifier output result corresponding to the calculated feature difference; calculates the probability that the gaze point corresponding to the data used for estimation belongs to each sub-region of a plurality of sub-regions divided from the gaze region based on the estimated classifier output result; and determines the center of the sub-region with the highest probability as the estimated gaze point.

[0035] Optionally, when the gaze area is an area on a two-dimensional plane, the gaze area is divided in the following manner: two straight lines perpendicularly intersecting each calibration point are set for each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines, or

[0036] When the gaze area is an area in a three-dimensional space, the gaze area is divided in the following manner: three straight lines perpendicular to each other and intersecting each of the calibration points are set for each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines.

[0037] Optionally, the estimation unit determines, for each calibration point, the probability that the coordinates of the gaze point in each dimension are less than or greater than the coordinates of each calibration point in each dimension, respectively; and calculates the probability that the gaze point belongs to each sub-area based on the determined probability.

[0038] Optionally, the estimation unit calculates the probability that the fixation point corresponding to the data used for estimation belongs to each of the multiple sub-regions through the comparative relationship probability of each sub-region relative to the corresponding calibration point.

[0039] Optionally, the line of sight estimation device further includes: a calibration unit, configured to obtain data used for calibration when the specific point is used as one of the calibration points based on a user's operation on the specific point before performing line of sight estimation using the acquired features.

[0040] Optionally, the specific point includes at least one of the following: a specific point on the device screen, a specific button on the device, and a specific point having a certain relative position with the device.

[0041] Optionally, the calibration unit displays a calibration point; obtains a user image when the user is gazing at the calibration point as the data for calibration; and performs calibration according to the data for calibration.

[0042] Optionally, the calibration unit, in response to receiving a gesture for the calibration point, determines the distance between the operation point corresponding to the gesture and the calibration point, and when the distance is less than a distance threshold, obtains a user image as the data for calibration.

[0043] According to another exemplary embodiment of the present disclosure, a computer-readable storage medium storing a computer program is provided, wherein when the computer program is executed by a processor, the line of sight estimation method as described above is implemented.

[0044] The present disclosure improves the traditional line of sight estimation method and device, can realize adaptive line of sight estimation for a specific person, can reduce or avoid the operation of calculating model parameters or retraining the model during the calibration process, thereby reducing the consumption of hardware resources; through calibration, the line of sight estimation performance or effect (for example, the accuracy of the line of sight estimation result) can be effectively improved, especially the line of sight estimation performance or effect for a specific person can be improved; the obtained neural network model has stronger feature characterization ability. The beneficial effects of the present disclosure can be specifically reflected in at least one of the following aspects:

[0045] In the first aspect, for traditional solutions based on deep learning to extract features (i.e., solutions based on appearance), the defined loss function will result in poor feature representation capabilities of the model. In view of this, the present disclosure adopts a new loss function different from the traditional solution, which can improve the feature representation capabilities of the obtained model.

[0046] On the second aspect, traditional solutions require training of a general basic model and a specific model for a specific person, and at least the specific model needs to be trained on the user's mobile device, resulting in complex operations and increased resource consumption of the mobile device. The network structure defined in the present disclosure can calculate feature differences in a specific order, remove the appearance differences between different people through the calculated feature differences, and perform calibration and testing (also known as estimation) through the classifier obtained through training, thereby reducing or avoiding the model training operation in the calibration process.

[0047] In a third aspect, in the present disclosure, data and sight lines acquired in a specific environment can be used for calibration, thereby effectively improving the calibration efficiency.

[0048] Additional aspects and / or advantages of the present general inventive concept will be set forth in part in the following description and in part will be apparent from the description or may be learned through practice of the present general inventive concept. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The above and other objects and features of the exemplary embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings which exemplarily illustrate the embodiments, in which:

[0050] Figures 1 to 3 A schematic diagram showing calibration points according to an exemplary embodiment of the present disclosure;

[0051] Figure 4 A flowchart showing a line of sight estimation method according to an exemplary embodiment of the present disclosure is shown;

[0052] Figure 5 A schematic diagram showing a process of training a first neural network model according to an exemplary embodiment of the present disclosure;

[0053] Figure 6 A schematic diagram showing a process of training a second neural network model according to an exemplary embodiment of the present disclosure;

[0054] Figure 7 A schematic diagram showing a process of operating a neural network model based on slicing according to an exemplary embodiment of the present disclosure;

[0055] Figures 8 to 11 A schematic diagram showing calibration points according to an exemplary embodiment of the present disclosure;

[0056] Fig.12 A schematic diagram showing an operation of extracting features during calibration according to an exemplary embodiment of the present disclosure;

[0057] Fig.13 A schematic diagram showing an operation of performing sight line estimation by extracting features according to an exemplary embodiment of the present disclosure;

[0058] Fig.14 A schematic diagram showing division of regions based on calibration points according to an exemplary embodiment of the present disclosure;

[0059] Fig.15 shows a regional probability distribution histogram according to an exemplary embodiment of the present disclosure;

[0060] Fig.16 A schematic diagram showing re-dividing a gaze area according to an exemplary embodiment of the present disclosure;

[0061] Fig.17 A block diagram of a visual line estimation device according to an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0062] Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like parts throughout. The embodiments will be described below with reference to the drawings in order to explain the present disclosure.

[0063] In practical applications, the sight estimation product using the sight estimation method is designed for use by a specific person (for example, the sight estimation product is a mobile device), or the sight estimation product is only used by a specific person for a period of time (for example, the sight estimation product is augmented reality (Augmented Reality) and virtual reality (Virtual Reality) glasses, referred to as AVR glasses). In this case, in order to improve the user experience, the basic model needs to be modified, which is called calibration. Calibration is to solve the problem that there is a difference between the eye shape of a specific person and the eye shape corresponding to the basic model. Calibration is usually divided into two steps. The first step is to obtain the data of the specific person during calibration; the second step is to use the obtained data to update the general parameters of the basic model so as to adjust the basic model to a specific model suitable for the specific person. Using a specific model to estimate the sight line of the specific person can significantly improve the prediction effect for the specific person, but of course it may also reduce the prediction effect for other people.

[0064] The basic model is usually established through the following solutions: a geometry model-based solution and an appearance-based solution.

[0065] The solution based on the geometric model uses the general theory of pupil center and corneal reflection to estimate the long-distance line of sight. Specifically, the algorithm formula used to calculate the line of sight direction from the measurement features (e.g., the position of the pupil center, the position of the corneal reflection, etc.) is determined, and the human eye data obtained through the infrared camera and the red, green and blue (RGB) camera is used to calculate the required measurement features, and the calculated measurement features are substituted into the algorithm formula to calculate the line of sight direction. The solution based on the geometric model usually uses parameters related to the user (e.g., the angle between the visual optical axis and the optical optical axis of the human eye, the distance between the pupil center and the center of the corneal surface, etc.). In order to improve the accuracy of the line of sight estimation results for a specific person, it is necessary to calculate the above parameters through calibration, because these parameters cannot usually be measured directly, but need to be calculated through special calibration equipment and calibration algorithms. In addition, the solution based on the geometric model usually requires that the calculated measurement features have high accuracy, and high accuracy depends on specific data acquisition equipment (e.g., infrared light source and infrared camera).

[0066] Appearance-based solutions usually use an RGB camera to obtain user images and extract features corresponding to the user's appearance from the user images. The methods for extracting features are divided into manual feature selection methods and deep learning-based feature extraction methods. A mapping relationship between the input x and the position of the human eye's line of sight (for example, the line of sight label Y) is established, where the mapping relationship can be represented by a classifier or a regressor. For example, the mapping relationship is represented by the formula Y=F(x; w). For the manual feature selection method, x is a feature extracted from the user image, which can be a feature extracted using the Scale Invariant Feature Transform (SIFT) or the like; for the feature extraction method based on deep learning, x is the input image. F is a mapping function and w is a parameter of the mapping function. The feature extraction method based on deep learning is generally divided into two stages: training and testing (also known as estimation). In the training stage, the training data pair (x, Y) and the mapping function F are used to learn the parameter w of the mapping function F. In the testing stage, the line of sight estimation result Y' is obtained using the test data x' and the parameter w obtained through learning. With the development of deep learning, deep learning-based feature extraction methods are increasingly being adopted in appearance-based solutions.

[0067] Calibration is usually divided into two steps: the first step is to capture the data of the user when he looks at a fixed point (e.g., a calibration point) in an interactive way; the second step is to adjust the parameters of the basic model (e.g., parameter w) according to the captured user data and the corresponding gaze label Y to update the basic model to a specific model.

[0068] The basic model established by the solution based on the geometric model must be calibrated to determine the parameters related to the user (for example, the angle between the visual axis and the optical axis of the human eye, the distance between the center of the pupil and the center of the corneal surface, etc.).

[0069] For the basic model established by the appearance-based solution, the mapping function is usually re-determined by calibration and the parameter w of the mapping function is trained. For example, support vector regression (SVR), random forest, etc. are used for deep learning.

[0070] However, for solutions based on geometric models, specific data acquisition equipment (e.g., infrared light source and infrared camera) is usually required. In this case, it is not possible to use general devices (e.g., mobile devices with front-facing RGB cameras) to achieve line of sight estimation.

[0071] For appearance-based solutions, the problems are as follows:

[0072] On the first hand, the mapping function needs to be re-determined through calibration, and the parameters of the mapping function need to be learned. Such operations need to be performed on the user's mobile device, and such operations need to be performed every time calibration is performed, resulting in increased consumption of hardware resources. Here, it should be emphasized that since the above operations require the collection of user data and user data involves personal privacy, in order to protect personal privacy, the above operations cannot be performed by transmitting user data to the server and performing calculations by the server.

[0073] On the other hand, due to the limitations of the methods used in deep learning (e.g., SVR and random forests), the types of mapping functions that can be re-determined through calibration are limited, which leads to limitations in the calibration method. In this case, part of the data obtained during calibration cannot be used for training, resulting in poor prediction results for specific people. In other words, the prediction results for specific people cannot be effectively improved through calibration.

[0074] In the third aspect, the features extracted by the existing methods have poor universality. In other words, the basic model in the existing methods has poor feature representation ability and cannot establish a mapping function applicable to all people, that is, it cannot effectively represent the features of all people.

[0075] The reasons for the above problems are as follows:

[0076] As mentioned above, the differences in eye shapes of different people are not taken into account during the training of the basic model. In order to reduce the impact of the above differences on the gaze estimation results, calibration must be performed to redefine the mapping function of the basic model. In order to protect personal privacy, calibration and model training need to be performed on the user's mobile device. In this case, the consumption of hardware resources of the mobile device increases.

[0077] Limited by the methods used in deep learning (for example, SVR and random forest), the data obtained during calibration must satisfy a specific distribution in order for the classifier to be effective and thus be applied to methods such as SVR and random forest. Figures 1 to 3 shows the calibration points set when performing calibration, where Figures 1 to 3There are five calibration points, nine calibration points and thirteen calibration points in the calibration. When calibrating, the pre-set calibration points must be used. However, there may be a situation where the user's data obtained during the user's use (for example, in the test phase) and the sight line label corresponding to the data cannot be used for calibration. For example, when a user uses a personal mobile device for the first time, personal settings will be performed. During the personal setting process, the user can usually click a specific button. In this case, if the data when the user clicks the specific button and the sight line label corresponding to the specific button are used for calibration, the accuracy of the sight line estimation result can be improved. However, due to the limitations of methods such as SVR and random forests, some of the data and sight line labels obtained during the personal setting process can be used for calibration, and the remaining data and sight lines obtained during the personal setting process cannot be used to adjust the parameters of the existing basic model, nor can they be used for training the above-mentioned specific model.

[0078] During the training process of the basic model, there are large differences between the data used for training, at least in the eye shape, which makes it difficult to obtain the global optimal value of the parameters of the basic model.

[0079] According to an exemplary embodiment of the present disclosure, an adaptive line of sight estimation method may include at least one of the following parts: a model training part, a calibration part, and an actual use part.

[0080] The model training part can be used to establish the mapping relationship of the model (for example, the mapping function Y=F(x)), that is, to train the parameters w of the model representing the mapping relationship according to the data used for training. The parameters w obtained through training can be fixed, and calibration and estimation (also called testing or prediction) can be performed on this basis. The operation of the model training part can be an offline operation or an online operation, preferably an offline operation, which can be performed by a server or an electronic device such as a mobile phone. The calibration part and the use part can use the trained model, and the parameters w of the trained model used are not changed in the operation of the calibration part and the actual use part. Each of the operations of the calibration part and the actual use part can be either an online operation or an offline operation. Preferably, each of the operations of the calibration part and the actual use part is an online operation, which can be performed by an electronic device such as a mobile phone.

[0081] The sight line estimation method according to the exemplary embodiments of the present disclosure can be applied to various electronic devices, such as mobile phones, tablet computers, smart watches, etc. In some exemplary embodiments of the present disclosure, a mobile phone is used as an example for description, but this should not be considered as a limitation of the present disclosure.

[0082] Figure 4 FIG. 1 is a flow chart showing a line of sight estimation method according to an exemplary embodiment of the present disclosure. Figure 4As shown in , the sight line estimation method according to an exemplary embodiment of the present disclosure includes the following steps:

[0083] In step S10, features of data for calibration and features of data for estimation are acquired. In step S20, line of sight estimation is performed using the acquired features. The operation of acquiring features of data for calibration may correspond to the calibration part, and the operation of acquiring features of data for estimation and step S20 may correspond to the actual use part, which may also be referred to as the prediction part, the test part, or the estimation part.

[0084] As an example, the line of sight estimation method further includes: obtaining a neural network model, wherein the step of obtaining features includes: extracting features of data used for calibration through the neural network model and / or extracting features of data used for estimation through the neural network model.

[0085] As an example, the step of obtaining the neural network model includes: training the neural network model using data for training. The step of obtaining the neural network model may correspond to the model training part.

[0086] In an exemplary embodiment of the present disclosure, the data may include data related to a user who is looking at a specific point (also referred to as a gaze point), such as a user image, depth data of the user (e.g., depth data of a point on the user's face), etc. In other words, the data may include image-related data (e.g., an RGB image or a depth image), for example, data related to appearance, which may be referred to as appearance data; the data may also include a line of sight label; the line of sight label may be a two-dimensional line of sight label (e.g., two-dimensional coordinates), a three-dimensional line of sight label (three-dimensional coordinates), etc.; the neural network model may include a network layer and a classifier for feature extraction; the network layer and the classifier for feature extraction may be determined by the model training part, and the network layer for feature extraction may be used for feature acquisition in step S10; the classifier may be used for line of sight estimation in step S20.

[0087] In another exemplary embodiment of the present disclosure, the data used for training includes a first user image and a second user image, wherein the first user image and the second user image are respectively an image of the same user when looking at a first object and an image of the same user when looking at a second object; wherein the step of training the neural network model includes: training the neural network model by taking the first user image and the second user image as input and the relative positions of the first object and the second object as output.

[0088] The above settings are only for facilitating the description of the embodiments of the present disclosure and are not intended to limit the protection scope of the present disclosure.

[0089] In an exemplary embodiment of the present disclosure, a neural network model may be trained in advance in an offline manner and / or features of data used for calibration may be obtained in an offline manner. The trained neural network model and / or features of data obtained for calibration may be stored in a storage device, in particular, an electronic device (e.g., a mobile phone) for implementing the line of sight estimation method according to an exemplary embodiment of the present disclosure. Subsequently, features of data used for estimation may be obtained in real time and line of sight estimation may be performed in real time.

[0090] In the process of training a neural network model, the data used for training and / or the sight lines labels used for training can be processed in order to train a more effective neural network model. The processing may include at least one of the following items: converting the sight lines labels used for training into binary classification labels, and slicing the image-related data (e.g., RGB images) used for training.

[0091] As an example, the data for training may include a third user image, and the step of training the neural network model may include: extracting at least one slice from the third user image; and training the neural network model using the at least one slice and the line of sight label for training.

[0092] As an example, the data used for calibration includes a fourth user image, the data used for estimation includes a fifth user image, and the step of acquiring features includes: extracting features of the fourth user image through a trained neural network model and / or extracting features of the fifth user image through a trained neural network model.

[0093] As an example, the data used for training includes image-related data for training and sight lines labels for training, and the steps of training the neural network model include: converting the sight lines labels for training into binary classification labels; determining a loss function corresponding to the binary classification labels; and training the first neural network model using the image-related data for training, the binary classification labels and the loss function.

[0094] As an example, the step of converting the sight line label for training into a binary classification label includes: determining the coordinate Y of the sight line label for training on a specific coordinate axis a , where Y amin ≤Y a ≤Y amax , Y amin and Y amax The coordinates Y a ; setting a plurality of nodes at a predetermined spacing on the specific coordinate axis, wherein the size of the predetermined spacing is bin_size, generating a binary classification label including a vector having a dimension equal to the number of the plurality of nodes, wherein the value of each dimension of the vector is determined by the size of the predetermined spacing and the coordinate Y aThe loss function is calculated by the values ​​of each dimension of the vector and the activation probability, and the activation probability is calculated by the data for training corresponding to each node.

[0095] As an example, the data used for training includes a sixth user image and a sight line label for training, and the steps of training the neural network model include: extracting at least one slice from the sixth user image; converting the sight line label for training into a binary classification label; determining a loss function corresponding to the binary classification label; and training the neural network model through the at least one slice, the binary classification label and the loss function.

[0096] Figure 5 A schematic diagram showing a process of training a first neural network model according to an exemplary embodiment of the present disclosure.

[0097] like Figure 5 As shown in , the data used for training includes images (also called pictures). At least one slice can be extracted from the image used for training, and the extracted at least one slice can be used for training the first neural network model. The sight labels used for training can also be converted into binary classification labels, and the converted binary classification labels can also be used for training the first neural network model.

[0098] When the converted binary classification labels are used for training the first neural network model, the trained first neural network model includes a binary classifier and a network layer for feature extraction. The input of the network layer for feature extraction is the image for training, and the output is the features of the image for training. The input of the binary classifier is the features of the image for training, and the output is the binary classification label. The process of training the first neural network may specifically include the following training operation A.

[0099] In training operation A, the sight labels used for training may be converted into binary classification labels, a first loss function corresponding to the binary classification labels may be determined, and the first neural network model may be trained using the images used for training, the binary classification labels, and the first loss function. The training objective may include minimizing the first loss function, and a parameter that minimizes the first loss function may be obtained through training. The parameter may include weights of each layer of the first neural network model.

[0100] Specifically, the sight line label Y used for training can be converted into a series of binary classification labels Y', and the first neural network model can be trained by the image used for training and the binary classification label Y', or the first neural network model can be trained by using at least one slice extracted (or segmented) from the image used for training and the binary classification label Y', wherein the operation of extracting (or segmenting) at least one slice from the image used for training will be described in detail below. The first loss function can be obtained using the image used for training (or at least one slice obtained by extraction or segmentation) and the binary classification label Y' to train the first neural network model. The neural network model trained using the binary classification label Y' is easier to converge or converges faster than the neural network model trained using the sight line label Y used for training. The features of the data (e.g., image) input to the first neural network model can be obtained through the trained first neural network model, and the features have strong representation capabilities.

[0101] As an example, the step of converting the sight line label for training into a binary classification label may include: determining the coordinate Y of the sight line label for training on a specific coordinate axis a , where Y amin ≤Y a ≤Y amax , Y amin and Y amax The coordinates Y a The minimum and maximum values ​​of the bin_num are as follows: a plurality of nodes are arranged on the specific coordinate axis at a predetermined interval, wherein the size of the predetermined interval is bin_size, and the number of the plurality of nodes bin_num is (Y amax -Y amin ) / bin_size+1; Generates a binary classification label including a vector of dimension bin_num, where the value of each dimension of the vector is calculated by the following binary function:

[0102]

[0103] Among them, 1≤i≤bin_num.

[0104] For example, the specific coordinate axis is an axis in a two-dimensional, three-dimensional or higher-dimensional coordinate system, Y amin and Y amax The range of a coordinate on the one axis is limited. In this case, bin_num nodes can be set on the one axis (for example, bin_num nodes with equal spacing of 20 pixels). The value of the element can be set to Y' aiThe binary classification label corresponding to the one coordinate on the one axis may include the column vector or row vector whose dimension is bin_num. The binary classification label corresponding to the sight line label represented by two-dimensional coordinates includes 2 vectors (i.e., vectors corresponding to the x-axis and y-axis, respectively) and corresponds to bin_num_x+bin_num_y classifiers, where bin_num_x represents the dimension of the vector corresponding to the x-axis, and bin_num_y represents the dimension of the vector corresponding to the y-axis. The binary classification label corresponding to the sight line label represented by three-dimensional coordinates includes 3 vectors (i.e., vectors corresponding to the x-axis, y-axis and z-axis, respectively) and corresponds to bin_num_x+bin_num_y+bin_num_z classifiers, where bin_num_x represents the dimension of the vector corresponding to the x-axis, bin_num_y represents the dimension of the vector corresponding to the y-axis, and bin_num_z represents the dimension of the vector corresponding to the z-axis.

[0105] As an example, using the two-dimensional coordinates (Y x ,Y y ) represents the sight label, and the node is set based on the coordinate axis on the mobile phone screen. For example, the upper left corner of the mobile phone screen is defined as the coordinate origin (0,0), the direction from the upper left corner of the screen to the upper right corner of the screen is the positive direction of the x-axis (e.g., horizontal axis), and the direction from the upper left corner of the screen to the lower left corner of the screen is the positive direction of the y-axis (e.g., vertical axis). The maximum value of the horizontal axis is Y xmax , the minimum value is Y xmin The maximum value of the vertical axis is Y ymax , the minimum value is Y ymin .

[0106] In this coordinate system, on the x-axis, the nodes are set with a spacing of 20 pixels bin_size_x. The number of nodes on the x-axis bin_num_x is (Y xmax -Y xmin ) / bin_size_x+1. On the y-axis, nodes are set at intervals of 20 pixels bin_size_y. The number of nodes on the y-axis, bin_num_y, is (Y ymax -Y ymim ) / bin_size_y+1. x ,Y y ) produces a vector of bin_num_x and a vector of bin_num_y. Each element Y' of the bin_num_x vector xi for:

[0107]

[0108] Each element Y' of the vector with dimension bin_num_y yi for:

[0109]

[0110] In this case, with coordinates (Y x ,Y y )'s sight line label corresponds to a binary label with a dimension of bin_num_x and a dimension of bin_num_y. x ,Y y )’s sight line labels correspond to the number of binarization classes bin_num_x+bin_num_y.

[0111] As an example, the loss function is a cross entropy loss calculated based on a binary classifier. For example, the first loss function is calculated by the following formula:

[0112] Loss i =-Y' ai ×log(P ai )-(1-Y' ai )×log(1-P ai ),

[0113]

[0114] Among them, the loss function is Loss, the activation probability P of the i-th node ai It is expressed as:

[0115]

[0116] Wherein, zi is the input of the i-th node (for example, part or all of the data used for training corresponding to the i-th node).

[0117] As an example, the following steps may also be performed: training the second neural network model by extracting samples from the data for training and the sight line labels for training; training the first neural network model by the data for training and the sight line labels for training, setting the second neural network model based on the first neural network model, and training the second neural network model by extracting samples from the data for training and the sight line labels for training (in particular, training the classifier of the second neural network model). Here, the sight line labels for training may be converted into binary classification labels, and the converted binary classification labels are used to train the corresponding neural network model.

[0118] Specifically, the second neural network model can be trained without training the first neural network model. In other words, the step of training the second neural network model may include: extracting two pairs of samples from the image-related data for training and the sight line labels for training, wherein the two pairs of samples correspond to the same user, each pair of samples includes one image-related data for training and a corresponding sight line label for training, and the difference between the two sight line labels of the two pairs of samples is greater than a first threshold and less than a second threshold; and training the second neural network model through the two pairs of samples. The second neural network model can also be trained while training the first neural network model. In other words, the step of training the neural network model may include: converting the sight line labels for training into binary classification labels; determining a loss function corresponding to the binary classification label; training the first neural network model through the image-related data for training, the binary classification label and the determined loss function; and setting the parameters of the second neural network model based on the trained first neural network model, wherein the trained second neural network model and the trained first neural network model have the same network layer for feature extraction. In this case, the classifier of the second neural network model can be trained through the two image-related data for training of the two pairs of samples and the binary classification labels corresponding to the two image-related data for training.

[0119] As an example, the step of training the neural network model also includes: extracting another two pairs of samples through the step of extracting two pairs of samples, wherein the difference between the two sight lines labels of the other two pairs of samples is greater than a third threshold and less than a fourth threshold, wherein the third threshold is greater than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold; continuing to train the second neural network model through the other two pairs of samples, wherein the step of extracting two pairs of samples is performed at least twice so that the difference between the two sight lines labels of the two pairs of samples extracted each time is less than the difference between the two sight lines labels of the two pairs of samples extracted previously.

[0120] The following takes the case of training a first neural network model, setting a second neural network model based on the trained first neural network model, and training the set second neural network model as an example to illustrate the model training part of the exemplary embodiment of the present disclosure. The model training part includes training operation B and training operation C.

[0121] In training operation B, two pairs of samples may be extracted from the image-related data for training and the sight line labels for training, wherein the two pairs of samples correspond to the same user, each pair of samples includes one image-related data for training and one corresponding sight line label for training, and the difference between the two sight line labels of the two pairs of samples is greater than a first threshold value and less than a second threshold value; a function representing the positional relationship of the two sight line labels for training of the two pairs of samples is used as a second loss function; and the second neural network model is trained by the two pairs of samples and the second loss function. The training objective may include minimizing the second loss function, and the parameters that minimize the second loss function may be obtained through training. The parameters may include weights of each layer of the second neural network model. The parameters of the second neural network model in training operation B may be set based on the first neural network model trained in training operation A, so that the second neural network model has the same network layer for feature extraction as the first neural network model. In this case, the second neural network model may be trained by training a classifier of the second neural network model. Preferably, the second loss function is the same as the first loss function.

[0122] As an example, the classifier of the second neural network model can be trained by the following steps: extracting the features of the two image-related data for training respectively through the trained first neural network model; calculating the feature difference between the features of the two image-related data for training; training the classifier of the second neural network model by taking the feature difference as input and the binary classification labels corresponding to the two image-related data for training as output. The features of the image-related data can be vectors, in which case the feature difference is the difference of the vectors.

[0123] In training operation C, another two pairs of samples are extracted through the step of extracting two pairs of samples, wherein the difference between the two sight lines labels of the other two pairs of samples is greater than a third threshold and less than a fourth threshold, wherein the third threshold is greater than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold; the second neural network model is continued to be trained through the other two pairs of samples, thereby gradually reducing the difference between the two sight lines labels of the two pairs of samples extracted.

[0124] Figure 6 A schematic diagram showing a process of training a second neural network model according to an exemplary embodiment of the present disclosure.

[0125] Figure 6 The network layers used for feature extraction shown can be referred to for Figure 5The sample pair 1 and sample pair 2 obtained by extraction come from the image-related data for training and the sight line labels for training and correspond to the same user, each sample pair includes an image-related data for training and a corresponding sight line label for training, and the difference between the two sight line labels of the two pairs of samples is greater than the first threshold and less than the second threshold. The image-related data of this embodiment is an image, which may be an image of a user looking at a gaze point. As described above, in the case of setting a second neural network model based on the first neural network model, the network layer of the second neural network model for feature extraction has been determined. In this case, the classifier of the second neural network model can be trained by sample pair 1 and sample pair 2. The second loss function corresponding to the second neural network model can represent the positional relationship between the sight line label of sample pair 1 and the sight line label of sample pair 2.

[0126] The sight labels used for training of sample pair 1 and sample pair 2 can be converted into binary classification labels, and the classifier of the second neural network model is trained by the converted binary classification labels, the image in sample pair 1, and the image in sample pair 2. In this case, the classifier of the second neural network model is a binary classifier ( Figure 6 The input of the binary classifier may be a feature corresponding to an image. For example, feature 1 of the image in sample pair 1 is extracted by a network layer for feature extraction, and feature 2 of the image in sample pair 2 is extracted by a network layer for feature extraction, and the feature difference between feature 1 and feature 2 is used as the input of the binary classifier. The output of the binary classifier may represent the positional relationship between a predetermined object in the first image and a corresponding object in the second image in the image of sample pair 1 and the image of sample pair 2 (hereinafter referred to as the first image and the second image, respectively) from the perspective of the same user, or represent the positional relationship between the screen gaze point corresponding to the first image and the screen corresponding to the second image from the perspective of the same user. For example, the first image is an image of the same user when he is watching a point on the left side of the mobile phone screen, and the second image is an image of the same user when he is watching a point on the right side of the mobile phone screen. The binary classification label may represent which side of the gaze point corresponding to the second image is on the gaze point corresponding to the first image from the perspective of the same user (for example, a binary classification label with a value of 1 represents the right side, and a binary classification label with a value of 0 represents the left side). The images may be two images of the same user gazing at a predetermined object, obtained through a front camera of a mobile phone.

[0127] In this embodiment, the two images are from the same user, and the feature difference between the two images is used to train the binary classifier. In this case, the deviation caused by the difference in appearance of people can be removed. In addition, the input order of the two images is not restricted. The first image can be input first to determine the feature 1 corresponding to the first image, and then the second image can be input to determine the feature 2 corresponding to the second image. The second image can also be input first to determine the feature 2 corresponding to the second image, and then the first image can be input to determine the feature 1 corresponding to the first image. Subsequently, the feature difference corresponding to the two images can be calculated.

[0128] As an example, the feature obtained by the network layer for feature extraction may be a vector, and the feature difference is the difference of the vectors, that is, the feature difference is a vector having the difference of corresponding elements of two vectors as its elements.

[0129] As an example, difficult sample sampling can be performed on the training data so that the difference between the sight line label in the newly sampled sample pair and the sight line label of the sample pair obtained by the previous sampling gradually decreases. Use the newly sampled sample pair to continue training the second neural network model. In addition, since resampling can be carried out continuously, that is, the difference between the sight line labels of the sample pairs obtained by two consecutive samplings can be continuously reduced according to the network convergence situation, and new training sets are continuously sampled, so that the training samples input to the neural network are from simple to difficult, which is easier to converge. It is generally believed that the greater the difference between the two input samples, the easier it is to judge the relationship between the two samples, and two or more samples with large differences can be called simple samples; the smaller the difference between the two input samples, the more difficult it is to judge the relationship between the two samples, and two or more samples with small differences can be called difficult samples. The input training samples from simple to difficult means that the difference between the input samples is from large to small.

[0130] As an example, the image-related data used in the exemplary embodiments of the present disclosure may be an image, preferably a slice extracted from the image, which may include at least one of the following items: a face image, a left eye image, and a right eye image.

[0131] For example, an image captured by a camera (e.g., a user image) can be used as image-related data for training. Since the line of sight is related to factors such as the position of the eyeball and the posture of the head, at least one slice can be extracted from the captured image. The at least one slice can be a part of the image, and each slice corresponds to a sub-network of the first neural network model.

[0132] Figure 7 A schematic diagram showing a process of operating a neural network model based on slicing according to an exemplary embodiment of the present disclosure.

[0133] like Figure 7As shown in , three slices are set, namely, facial image, left eye image, and right eye image; the three slices correspond to three sub-networks, namely: facial network, left eye network, and right eye network. In an exemplary embodiment of the present disclosure, in the model training part, the calibration part, and the actual use part, the features corresponding to the image can be extracted by a neural network model (preferably, the network layer of the neural network model for feature extraction). In this exemplary embodiment, three features corresponding to the facial image, the left eye image, and the right eye image can be extracted. The three features can be spliced ​​together, and the spliced ​​features can be output to the corresponding classifier.

[0134] Taking line of sight estimation through a mobile phone as an example, a slice may include a facial image, a left eye image, and a right eye image. However, the present disclosure is not limited to this. For example, line of sight estimation may also be performed through AVR glasses. The present disclosure is also not limited to using only a single RGB camera to obtain image-related data, but may use multiple cameras, and may also use infrared cameras, near-infrared cameras, etc. The acquired image-related data may include depth data and may also include a fusion of data of one or more modalities. In other words, image-related data or slices may include other data that can be used for line of sight estimation, such as depth data from the face to the camera, etc.

[0135] The neural network model (e.g., the first neural network model and / or the second neural network model) used in the exemplary embodiment of the present disclosure has a deeper number of layers and a larger number of convolution kernels compared to the existing neural network model, and the convolution kernel stacking method helps to extract the features of the image more effectively. For example, the neural network model of the exemplary embodiment of the present disclosure may include three inputs, namely, a facial image input, a left eye image input, and a right eye image input. The left eye network corresponding to the left eye image and the right eye network corresponding to the right eye image may share part of the network structure (e.g., network layer). The neural network model can be set by the parameters shown in the following Tables 1, 2, and 3, wherein Tables 1 and 2 correspond to training the neural network model by slicing (e.g., slices extracted from an image), respectively, and Table 3 corresponds to the process of fusing the features of the slices. Of course, Tables 1 and 2 only correspond to the preferred neural network models of the exemplary embodiments of the present disclosure, and are not used to limit the present disclosure. The structure, parameters, input data, and structure of the sub-network of the neural network model implemented on the basis of the concept of the present disclosure are not limited thereto.

[0136] Table 1

[0137]

[0138]

[0139] Table 2

[0140]

[0141] Table 3

[0142] layer Input number of nodes Output Node Number Fc1 128*3=384 256 Classifier 256 Bin_num

[0143] In Table 3 above, Fc1 corresponds to the network layer used for feature extraction, Classifier corresponds to the classifier, and Bin_num corresponds to the number of nodes described above.

[0144] In an exemplary embodiment according to the present disclosure, various methods may be used to acquire features of data used for calibration and / or features of data used for estimation.

[0145] As an example, extracting features of data for calibration through the neural network model and / or extracting features of data for estimation through the neural network model includes: extracting features of data for calibration through the second neural network model and / or extracting features of data for estimation through the second neural network model.

[0146] According to an exemplary embodiment of the present disclosure, the calibration part of the line of sight estimation method may include: displaying calibration points; acquiring a user image when the user is gazing at the calibration points as the data for calibration; and performing calibration according to the data for calibration.

[0147] As an example, the step of obtaining a user image of the user when the user is looking at the calibration point includes: in response to receiving a gesture for the calibration point, determining the distance between the operation point corresponding to the gesture and the calibration point, and when the distance is less than a distance threshold, obtaining the user image as the data for calibration.

[0148] Specifically, the calibration part of the line of sight estimation method according to an exemplary embodiment of the present disclosure may include a calibration operation A and a calibration operation B.

[0149] In the calibration operation A, the calibration point is set, and the data X_cali_1 to X_cali_N when the user is gazing at the calibration point are obtained and saved.

[0150] Figures 8 to 11 A schematic diagram showing calibration points according to an exemplary embodiment of the present disclosure.

[0151] like Figures 8 to 11 As shown in , each figure includes five calibration points. This is only an example and is not intended to limit the protection scope of the present disclosure, that is, the number and position of the calibration points are not limited.

[0152] As an example, calibration points may be obtained in advance through calibration, and the gaze area may be divided according to the pre-calibrated calibration points.

[0153] Taking a mobile phone as an example, the screen can be divided into 6 parts in the horizontal direction and vertical direction according to the calibration points. It should be noted that the division into 6 parts is only for the purpose of convenience of description and is not used to limit the present disclosure. In other words, it can also be divided into more or fewer parts. Figures 8 to 11 In FIG. 1 , the screen is divided into 36 sub-areas by straight lines perpendicularly intersecting the calibration points. Figures 8 to 11 In other words, the exemplary embodiments of the present disclosure do not limit the number of sub-regions divided from the screen and the manner of dividing the sub-regions.

[0154] In the process of calibration using a mobile phone, in calibration operation A, the user may be prompted to look at the calibration point displayed on the screen, thereby realizing the interaction between the mobile phone and the user. The interaction may include: prompting the user to look at the calibration point displayed on the screen and click the calibration point, and receiving the clicked position on the screen; when receiving a click on the screen, the distance between the clicked position and the calibration point may be determined; when the distance is less than a distance threshold (for example, 100 pixels), the click is determined to be a click on the calibration point, and the user may also be determined to be looking at the calibration point, so that the user's image may be obtained through a camera or the like. In this case, another calibration point may be displayed, and the user may be prompted to look at the other calibration point on the screen and click the other calibration point. When the distance is greater than or equal to the distance threshold, it may be determined that the calibration is invalid, and the user may be prompted to look at and click the calibration point again.

[0155] It should be noted that the exemplary embodiments of the present disclosure are described by taking a mobile phone as an example only for the convenience of describing the concept of the present disclosure, and the present disclosure can be implemented on other devices or equipment. The above-mentioned display mode of the calibration point, the user's interaction mode with the mobile phone, and the operation of determining whether the calibration is valid can be considered as the preferred embodiment of the present disclosure, but are not used to limit the present disclosure, and other operations are also feasible.

[0156] In the calibration operation B, the neural network model described in the exemplary embodiment of the present disclosure can be used to extract features feat_1 to feat_N of the data X_cali_1 to the data X_cali_N and save them. The neural network model used to extract features can be the first neural network model or the second neural network model, preferably the second neural network model.

[0157] In addition, the features of the data can be extracted offline rather than in real time. In other words, for example, without performing the step of training the neural network model, the features of the data can be extracted and saved in advance. The features only need to be extracted once, so that the execution time of the actual use part is not affected by the calibration part, for example, the number of calibration points, the time consumed in extracting features in the calibration part, etc. do not affect the execution time of the actual use part.

[0158] Fig.12 A schematic diagram illustrating an operation of extracting features during calibration according to an exemplary embodiment of the present disclosure.

[0159] like Fig.12 As shown in , the data used for calibration from which features are extracted may be a calibration image, and a network (eg, a second neural network model) may be used to extract features of the calibration image, and the extracted features may be referred to as calibration features.

[0160] In an exemplary embodiment according to the present disclosure, step S20 may include: estimating the position of the gaze point in the gaze area through the acquired neural network model according to the features of the acquired data for estimation and the features of the acquired data for calibration.

[0161] As an example, step S20 may include: calculating the feature difference between the features extracted from the data for estimation and the features extracted from the data for calibration; using the acquired neural network model to estimate the classifier output result corresponding to the calculated feature difference; calculating the probability that the gaze point corresponding to the data for estimation belongs to each sub-region of multiple sub-regions divided from the gaze region based on the estimated classifier output result; and determining the center of the sub-region with the highest probability as the estimated gaze point.

[0162] As an example, when the gaze area is an area on a two-dimensional plane, the gaze area is divided in the following manner: two straight lines that are perpendicular to and intersect each calibration point are set for each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines, or when the gaze area is an area in a three-dimensional space, the gaze area is divided in the following manner: three straight lines that are perpendicular to each other and intersect each calibration point are set for each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines.

[0163] As an example, the step of calculating the probability that a gaze point corresponding to the data used for estimation belongs to each of a plurality of sub-areas divided from the gaze area includes: for a classifier output result corresponding to each calibration point, determining respectively the probability that the coordinate of each dimension of the gaze point is less than and greater than the coordinate of each calibration point with respect to the said dimension; and calculating the probability that the gaze point belongs to each sub-area based on the determined probability.

[0164] As an example, the probability that the fixation point corresponding to the data used for estimation belongs to each of the multiple sub-regions is calculated by comparing the relationship probability of each sub-region with respect to the corresponding calibration point.

[0165] As an example, before performing line of sight estimation using the acquired features, the line of sight estimation method further includes: acquiring data used for calibration when the specific point is used as one of the calibration points according to an operation of the user on the specific point.

[0166] As an example, the specific point includes at least one of the following: a specific point on the device screen, a specific button on the device, and a specific point having a determined relative position with the device.

[0167] As an example, the probability P of the gaze point corresponding to the data used for estimation belonging to each sub-region is calculated by the following formula: area :

[0168]

[0169] in, is the comparative relationship probability of each sub-region relative to the i-th calibration point, and cali_num is the number of calibration points.

[0170] As an example, when new data is acquired, the step of performing line of sight estimation through extracted features also includes: acquiring features of the new data; merging the features of the new data with features of previously acquired data used for calibration; recalculating feature differences between features of the data used for estimation and the merged features; estimating new classifier output results corresponding to the recalculated feature differences; recalculating the probability that the gaze point corresponding to the data used for estimation belongs to each sub-area based on the new classifier output results; and determining the center of the sub-area with the largest recalculated probability as the estimated gaze point.

[0171] As an example, when the new data includes new data for calibration, the gaze area is re-divided into multiple sub-areas based on the existing calibration points and the calibration points corresponding to the new data for calibration, wherein the step of recalculating the probability includes: recalculating the probability that the gaze point corresponding to the data for estimation belongs to each of the multiple re-divided sub-areas based on the new classifier output result.

[0172] As an example, the new data and the calibration point corresponding to the new data are obtained in any one of the following cases: in the case of recalibration, in the case of operating a specific button, and in the case of operating a specific position.

[0173] In the case of using a trained neural network model, a feature difference between features of data extracted for estimation and features of data extracted for calibration is calculated; a classifier output result corresponding to the calculated feature difference is estimated using the trained neural network model; a probability that a fixation point corresponding to the data used for estimation belongs to each of a plurality of sub-regions divided from a fixation region is calculated based on the estimated classifier output result; and the center of the sub-region with the largest probability is determined as the estimated fixation point.

[0174] As an example, when new data is acquired, the step of performing line of sight estimation using the acquired features also includes: using a trained neural network model to extract features of the new data; merging the features of the new data with features of previously extracted data for calibration; recalculating the feature difference between the features of the extracted data for estimation and the merged features; using the trained neural network model to estimate a new classifier output result corresponding to the recalculated feature difference; recalculating the probability that the gaze point corresponding to the data for estimation belongs to each sub-area based on the new classifier output result; and determining the center of the sub-area with the largest recalculated probability as the estimated gaze point.

[0175] In the case of using the trained second neural network model, the step of performing line of sight estimation through the acquired features includes: calculating the feature difference between the features of the data for estimation extracted by the second neural network model and the features of the data for calibration extracted by the second neural network model; using the trained second neural network model to estimate the classifier output result corresponding to the calculated feature difference; calculating the probability that the gaze point corresponding to the data for estimation belongs to each of the multiple sub-areas divided from the gaze area based on the estimated classifier output result; and determining the center of the sub-area with the largest probability as the estimated gaze point.

[0176] As an example, when new data is acquired, the step of performing line of sight estimation using the acquired features also includes: extracting features of the new data using a trained second neural network model; merging the features of the new data with features of previously extracted data for calibration; recalculating feature differences between the features of the data extracted for estimation and the merged features; estimating new classifier output results corresponding to the recalculated feature differences using the trained second neural network model; recalculating the probability that the gaze point corresponding to the data for estimation belongs to each sub-region based on the new classifier output results; and determining the center of the sub-region with the largest recalculated probability as the estimated gaze point.

[0177] The following reference Fig.13An operation of performing line of sight estimation by extracting features according to an exemplary embodiment of the present disclosure is described, which may include test operation A, test operation B, test operation C, and test operation D.

[0178] In test operation A, when the user looks at a position of interest (which may be referred to as a gaze point), an image is captured through a camera, and a feature feat_X corresponding to the captured image is extracted using a second neural network model. This extraction operation is a feature extraction in the test phase, which can capture images in real time and extract features feat_X corresponding to the captured image. Taking a mobile phone as an example, a user image is captured in real time through the camera of the mobile phone, and features based on the captured user image are extracted in real time.

[0179] In test operation B, feature differences diff_1 to feature differences diff_N are calculated between feature feat_X and features feat_1 to feat_N obtained during calibration. Features can be represented by vectors, and feature differences can be differences between vectors. The classification results of feature differences diff_1 to feature differences diff_N can be calculated using a classifier (binary classifier) ​​of a second neural network model, so that the comparative relationship probability between the image used for estimation (for example, the image acquired in test operation A) and the image X_cali_1 to image X_cali_N (the image acquired during calibration) used for calibration can be obtained. The comparative relationship probability can be understood as the probability that the feature of the image used for estimation obtained by the binary classifier is greater than or less than the feature of the image used for calibration. The feature difference can be calculated according to a predetermined order rule, for example, the feature difference Diff_i obtained by subtracting the features feat_1 to feat_N of the image obtained during calibration from the feature feat_X corresponding to the acquired image, that is, Diff_i=feat_X–feat_i, 1≤i≤N, and N is a natural number.

[0180] In test operation C, when the gaze area is divided into multiple sub-areas by the calibration point, the probability that the gaze point corresponding to the image for estimation (i.e., the point currently gazed by the user) falls in each sub-area can be calculated according to the comparative relationship probability. The center point of the area with the maximum probability or probability cumulative value or probability expected value can be determined as the user's gaze point.

[0181] Reference Fig.13 , extract features (e.g., test features) from an image for estimation (e.g., a test picture) through a network (e.g., a second neural network model), and input the calibration features and the test features obtained from the image for calibration into the corresponding comparison classifier together. The feature difference between the calibration feature and the test feature can be obtained, and the probability corresponding to the feature difference (e.g., comparison relationship probability) is output through the comparison classifier.

[0182] Fig.14 A schematic diagram showing division of regions based on calibration points according to an exemplary embodiment of the present disclosure is shown. Fig.15 A regional probability distribution histogram according to an exemplary embodiment of the present disclosure is shown.

[0183] like Fig.14 As shown in , each calibration point can divide the axis into two parts, and the probability (comparison relationship probability) p_i output by the classifier can represent the probability p_i_L that the gaze point coordinate is less than or equal to the coordinate of the i-th calibration point and the probability p_i_G that the gaze point coordinate is greater than the coordinate of the i-th calibration point, where p_i_L+p_i_G=1. For example, p_1 may include the probability p_1_L that the gaze point coordinate is less than or equal to the coordinate of calibration point 1 and the probability p_1_G that the gaze point coordinate is greater than the coordinate of calibration point 1, and p_2 may represent the probability p_2_L that the gaze point coordinate is less than or equal to the coordinate of calibration point 2 and the probability p_2_G that the gaze point coordinate is greater than the coordinate of calibration point 2.

[0184] The probability P of the gaze point corresponding to the image used for estimation belonging to each sub-region in the multiple sub-regions (such as the region A between the coordinate origin and the calibration point 1) is calculated by the following formula: area :

[0185]

[0186] in, is the comparative relationship probability of each sub-region relative to the calibration point i, according to Fig.14 , if the sub-region is on the left side of the calibration point i, then If the sub-region is to the right of the calibration point, then cali_num is the number of calibration points.

[0187] like Fig.15 As shown in , the probability corresponding to area A is p_2_L+p_1_L, the probability corresponding to the area between calibration point 1 and calibration point 2 is p_2_L+p_1_G, and the probability corresponding to the area between calibration point 2 and the maximum value is p_2_G+p_1_G.

[0188] Taking the line of sight estimation through a mobile phone as an example, the coordinates of the gaze point on the screen of the mobile phone that the user is looking at need to be estimated as (Y_x, Y_y). On the x-axis and y-axis, the regions have been divided by calibration points respectively. Through the above operations, the regions with the highest probability that Y_x falls on the x-axis and the regions with the highest probability that Y_y falls on the y-axis are calculated respectively. The centers of the regions defined by the two regions with the highest probability (such as Fig.13 The x in the figure is determined as the fixation point.

[0189] In test operation D, during the user use process (for example, performing a calibration operation or setting operation of an electronic device), when a new image for calibration and a corresponding sight line label are obtained, the features corresponding to the new image for calibration and the corresponding sight line label are re-extracted, and the re-extracted features are merged with the existing features feat_i, for example, in the form of vector addition. The merged features can be obtained when the new image for calibration and the corresponding sight line label are obtained to expand the set composed of the features feat_i, thereby improving the characterization ability of the features. The merged features can be used for testing (for example, executing test operations A, B, and C), thereby improving the accuracy of the test results.

[0190] In the process of using the merged features to perform testing (eg, executing test operation A, test operation B, and test operation C), the screen may be re-divided using the existing calibration points and the newly added calibration points.

[0191] Fig.16 FIG. 2 shows a schematic diagram of re-dividing the fixation area according to an exemplary embodiment of the present disclosure. Fig.16 As shown in , there are two straight lines that are perpendicular and intersect each of the existing calibration points (such as Fig.16 ), and two straight lines that are perpendicular and intersect at the newly added calibration points (as shown in the solid line in Fig.16 The dashed lines in FIG. 1 and the intersection of the two dashed lines is a solid line. The above straight lines can be used to re-divide the gaze area (i.e., the screen) to obtain new sub-areas. The sub-area with the highest probability among the new sub-areas where the gaze point falls can be determined through the above operation.

[0192] New calibration points and new data corresponding to the new calibration points can be obtained when performing any of the following operations: receiving a user's click on a button when setting mobile phone parameters, an operation on a specific point, and the specific point includes at least one of the following items: a specific point on the device screen, a specific button on the device, and a specific point that has a certain relative position with the device.

[0193] In an exemplary embodiment of the present disclosure, in the operation of extracting features, the appearance difference can be removed by feature difference; during calibration, there is no need to train the neural network model, which simplifies the calibration process and reduces the amount of calculation for electronic devices such as mobile phones; when new calibration points are obtained, the data corresponding to the new calibration points can affect the prediction results. As the data corresponding to the new calibration points increases, the gaze area will be divided in more detail, thereby improving the accuracy of the line of sight estimation results.

[0194] Fig.17 FIG. 2 shows a sight line estimation device according to an exemplary embodiment of the present disclosure. Fig.17As shown, the line of sight estimation device according to an exemplary embodiment of the present disclosure includes: a feature acquisition unit 110, which acquires features of data used for calibration and features of data used for estimation; and an estimation unit 120, which performs line of sight estimation through the acquired features.

[0195] As an example, the line of sight estimation device also includes: a model training unit, used to obtain a neural network model, wherein the feature acquisition unit 110 extracts features of data used for calibration through the neural network model and / or extracts features of data used for estimation through the neural network model.

[0196] As an example, the model training unit trains the neural network model using data for training.

[0197] As an example, the data used for training includes a first user image and a second user image, wherein the first user image and the second user image are respectively an image of the same user when looking at a first object and an image of the same user when looking at a second object; wherein the model training unit trains the neural network model by taking the first user image and the second user image as input and the relative positions of the first object and the second object as output.

[0198] As an example, the data for training includes image-related data for training and sight labels for training, and the model training unit converts the sight labels for training into binary classification labels; determines a loss function corresponding to the binary classification labels; trains a first neural network model by using the image-related data for training, the binary classification labels, and the loss function; wherein the model training unit determines the coordinate Y of the sight label for training on a specific coordinate axis. a , where Y amin ≤Y a ≤Y amax , Y amin and Y amax The coordinates Y a ; setting a plurality of nodes at a predetermined spacing on the specific coordinate axis, wherein the size of the predetermined spacing is bin_size, generating a binary classification label including a vector having a dimension equal to the number of the plurality of nodes, wherein the value of each dimension of the vector is determined by the size of the predetermined spacing and the coordinate Y a The loss function is calculated by the values ​​of each dimension of the vector and the activation probability, and the activation probability is calculated by the data for training corresponding to each node.

[0199] As an example, the data for training includes image-related data for training and line of sight labels for training. The model training unit extracts two pairs of samples from the image-related data for training and the line of sight labels for training, wherein the two pairs of samples correspond to the same user, each pair of samples includes an image-related data for training and a corresponding line of sight label for training, and the difference between the two line of sight labels of the two pairs of samples is greater than a first threshold and less than a second threshold; the second neural network model is trained by the two pairs of samples.

[0200] As an example, the model training unit extracts another two pairs of samples through the step of extracting two pairs of samples, wherein the difference between the two sight lines labels of the other two pairs of samples is greater than a third threshold and less than a fourth threshold, wherein the third threshold is greater than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold; the second neural network model is continued to be trained through the other two pairs of samples, wherein the step of extracting two pairs of samples is performed at least twice so that the difference between the two sight lines labels of the two pairs of samples extracted each time is less than the difference between the two sight lines labels of the two pairs of samples extracted previously.

[0201] As an example, before training the second neural network model, the model training unit sets parameters of the second neural network model based on the first neural network model, wherein the second neural network model and the first neural network model have the same network layer for feature extraction; the model training unit trains a classifier of the second neural network model by using two image-related data for training of the two pairs of samples and binary classification labels corresponding to the two image-related data for training.

[0202] As an example, the model training unit extracts the features of the two image-related data for training respectively through the trained first neural network model; calculates the feature difference between the features of the two image-related data for training; and trains the classifier of the second neural network model by taking the feature difference as input and the binary classification label corresponding to the two image-related data for training as output.

[0203] As an example, the feature acquisition unit 110 extracts features of data used for calibration through the second neural network model and / or extracts features of data used for estimation through the second neural network model.

[0204] As an example, the estimation unit 120 estimates the position of the gaze point in the gaze area through the acquired neural network model according to the features of the acquired data for estimation and the features of the acquired data for calibration.

[0205] As an example, the estimation unit 120 calculates the feature difference between the features extracted from the data for estimation and the features extracted from the data for calibration; uses the acquired neural network model to estimate the classifier output result corresponding to the calculated feature difference; calculates the probability that the gaze point corresponding to the data for estimation belongs to each sub-region of multiple sub-regions divided from the gaze region based on the estimated classifier output result; and determines the center of the sub-region with the highest probability as the estimated gaze point.

[0206] As an example, when the gaze area is an area on a two-dimensional plane, the gaze area is divided in the following manner: two straight lines perpendicularly intersecting each calibration point are set for each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines, or

[0207] When the gaze area is an area in a three-dimensional space, the gaze area is divided in the following manner: three straight lines perpendicular to each other and intersecting each of the calibration points are set for each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines.

[0208] As an example, the estimation unit 120, for the classifier output result corresponding to each calibration point, determines the probability that the coordinate of each dimension of the gaze point is less than and greater than the coordinate of each calibration point with respect to each dimension; and calculates the probability that the gaze point belongs to each sub-area based on the determined probability.

[0209] As an example, the estimation unit 120 calculates the probability that the fixation point corresponding to the data used for estimation belongs to each of the multiple sub-regions through the comparative relationship probability of each sub-region relative to the corresponding calibration point.

[0210] As an example, the line of sight estimation device further includes: a calibration unit, which is used to obtain calibration data when the specific point is used as one of the calibration points according to the user's operation on the specific point before performing line of sight estimation through the acquired features.

[0211] As an example, the specific point includes at least one of the following: a specific point on the device screen, a specific button on the device, and a specific point having a determined relative position with the device.

[0212] As an example, the calibration unit displays a calibration point; obtains a user image when the user is gazing at the calibration point as the data for calibration; and performs calibration according to the data for calibration.

[0213] As an example, the calibration unit, in response to receiving a gesture directed to the calibration point, determines the distance between the operation point corresponding to the gesture and the calibration point, and when the distance is less than a distance threshold, obtains a user image as the data for calibration.

[0214] It should be understood that the specific implementation of the sight line estimation device according to the exemplary embodiment of the present disclosure can be referred to in conjunction with Figures 1 to 16 The relevant specific implementation methods described are implemented and will not be repeated here.

[0215] According to another exemplary embodiment of the present disclosure, a computer-readable storage medium storing a computer program is provided, wherein when the computer program is executed by a processor, the line of sight estimation method as described above is implemented.

[0216] According to another exemplary embodiment of the present disclosure, an electronic device is provided, wherein the electronic device includes: a processor; and a memory storing a computer program, and when the computer program is executed by the processor, the line of sight estimation method as described above is implemented.

[0217] Computer readable storage media is any data storage device that can store data read by a computer system. Examples of computer readable recording media include read-only memory, random access memory, read-only optical disks, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission over the Internet via a wired or wireless transmission path).

[0218] In addition, it should be understood that the various units of the sight estimation device according to the exemplary embodiments of the present disclosure may be implemented as hardware components and / or software components. Those skilled in the art may implement the various units, for example, using a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC), according to the processing performed by the various units defined.

[0219] In addition, the line of sight estimation method according to the exemplary embodiment of the present disclosure can be implemented as a computer code in a computer-readable storage medium. Those skilled in the art can implement the computer code according to the description of the above method. When the computer code is executed in a computer, the above method of the present disclosure is implemented.

[0220] Although some exemplary embodiments of the present disclosure have been shown and described, it will be appreciated by those skilled in the art that modifications may be made to these embodiments without departing from the principles and spirit of the present disclosure, the scope of which is defined by the claims and their equivalents.

Claims

1. An adaptive line of sight estimation method, in, The method comprises: Obtaining features of data used for calibration and features of data used for estimation; The line of sight is estimated by acquiring features. The steps of performing sight line estimation by using the acquired features include: Based on a feature difference between features of the data for estimation and features of the data for calibration, a probability that the fixation point is included in each of a plurality of sub-regions divided from the fixation region is calculated using a neural network model, The center position of the sub-region having the maximum probability among the probabilities calculated for the sub-regions is determined as the position of the gaze point.

2. The line of sight estimation method according to claim 1, in, The line of sight estimation method also includes: acquiring the neural network model.

3. The line of sight estimation method according to claim 2, in, The step of acquiring the neural network model includes: training the neural network model using data for training.

4. The line of sight estimation method according to claim 1, in, The step of acquiring features includes: extracting features of data used for calibration through the neural network model and / or extracting features of data used for estimation through the neural network model.

5. The line of sight estimation method according to claim 3, in, The data used for training includes a first user image and a second user image. The first user image and the second user image are respectively an image of the same user when gazing at the first object and an image of the same user when gazing at the second object; The step of training the neural network model includes: The neural network model is trained by taking the first user image and the second user image as input and taking the relative position of the first object and the second object as output.

6. The sight line estimation method according to claim 3 or 5, in, The data used for training includes image-related data used for training and sight-line labels used for training. The steps of training the neural network model include: Convert the sight labels used for training into binary classification labels; Determine a loss function corresponding to the binary classification label; The first neural network model is trained using the image-related data for training, the binary classification labels and the loss function.

7. The line of sight estimation method according to claim 6, in, The steps to convert the gaze labels for training into binary classification labels include: Determine the coordinates of the sight labels used for training on specific coordinate axes; A plurality of nodes are arranged at predetermined intervals on the specific coordinate axis, generating a binary classification label including a vector having a dimension equal to the number of the plurality of nodes, The values ​​of the dimensions of the vector are determined by the size of the predetermined spacing and the coordinates. The loss function is calculated by the values ​​of each dimension of the vector and the activation probability, and the activation probability is calculated by the data for training corresponding to each node.

8. The line of sight estimation method according to any one of claims 3 to 5 and 7, in, The data used for training includes image-related data used for training and sight-line labels used for training. The steps of training the neural network model include: Extracting two pairs of samples from the image-related data for training and the sight-line labels for training, wherein the two pairs of samples correspond to the same user, each pair of samples includes one image-related data for training and one corresponding sight-line label for training, and the difference between the two sight-line labels of the two pairs of samples is greater than a first threshold and less than a second threshold; The second neural network model is trained by using the two pairs of samples.

9. The line of sight estimation method according to claim 8, in, The step of training the neural network model also includes: Extracting another two pairs of samples by the step of extracting two pairs of samples, wherein the difference between the two sight labels of the another two pairs of samples is greater than a third threshold and less than a fourth threshold, wherein the third threshold is greater than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold; The second neural network model is continued to be trained using the other two pairs of samples.

10. The line of sight estimation method according to claim 9, in, The step of extracting two pairs of samples is performed at least twice, so that the difference between the two sight-line labels of the two pairs of samples extracted each time is smaller than the difference between the two sight-line labels of the two pairs of samples extracted the previous time.

11. The line of sight estimation method according to claim 8, in, Before training the second neural network model, the method further includes: Setting parameters of the second neural network model based on the first neural network model, The second neural network model and the first neural network model have the same network layer for feature extraction, and the step of training the second neural network model using the two pairs of samples includes: training the classifier of the second neural network model using two image-related data for training of the two pairs of samples and binary classification labels corresponding to the two image-related data for training.

12. The line of sight estimation method according to claim 11, in, The step of training the classifier of the second neural network model comprises: Extracting features of the two image-related data for training respectively through the trained first neural network model; Calculating a feature difference between features of the two image-related data for training; The classifier of the second neural network model is trained by taking the feature difference as input and taking the binary classification labels corresponding to the two image-related data for training as output.

13. The line of sight estimation method according to claim 8, in, Extracting features of data for calibration by the neural network model and / or extracting features of data for estimation by the neural network model includes: extracting features of data for calibration by the second neural network model and / or extracting features of data for estimation by the second neural network model.

14. The method according to claim 1, in, The method further comprises: Acquire an image including the user's eye area, The step of acquiring features of the data for calibration and features of the data for estimation comprises: extracting features of the data for estimation from the acquired image, The data used for calibration is data used to calibrate the neural network model.

15. The line of sight estimation method according to claim 1, in, The step of calculating the probability that the fixation point is included in each of the plurality of sub-regions divided from the fixation region comprises: For the evaluation output results of the neural network model corresponding to each of the calibration points, respectively determining the probability that the coordinate of each dimension of the gaze point is less than and greater than the coordinate of each calibration point with respect to each dimension; The probability that the fixation point is included in each sub-region is calculated according to the determined probability.

16. The line of sight estimation method according to claim 1, in, The steps of estimating the sight line through the acquired features also include: Calculate the feature difference between the features extracted for the estimated data and the features extracted for the calibration data, The step of using the neural network model to calculate the probability that the gaze point is included in each of the plurality of sub-regions divided from the gaze area comprises: using the obtained neural network model to estimate the classifier output corresponding to the calculated feature difference, and A probability that a fixation point corresponding to the data for estimation is included in each of a plurality of sub-regions divided from the fixation region is calculated based on the estimated classifier output result.

17. The sight line estimation method according to claim 1 or 15, in, When the gaze area is on a two-dimensional plane, the gaze area is divided in the following manner: two vertically intersecting straight lines are set at each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines.

18. The line of sight estimation method according to claim 1 or 15, in, When the gaze area is in a three-dimensional space, the gaze area is divided in the following manner: three mutually perpendicular and intersecting straight lines are set at each calibration point, and the gaze area is divided into a plurality of sub-areas by the set straight lines.

19. The line of sight estimation method according to claim 15 or 16, in, The step of calculating the probability that the fixation point corresponding to the data for estimation is included in each of the plurality of sub-regions divided from the fixation region includes: For each calibration point, the classifier output result corresponding to each calibration point is used to determine the probability that the coordinate of each dimension of the gaze point is smaller than or greater than the coordinate of each calibration point in each dimension. The probability that the fixation point is included in each sub-region is calculated according to the determined probability.

20. The line of sight estimation method according to claim 15 or 16, in, The step of calculating the probability that the fixation point is included in each of the sub-regions includes: calculating the probability that the fixation point is included in each of the sub-regions by comparing the probability of each of the multiple sub-regions with respect to the corresponding calibration point.

21. The line of sight estimation method according to any one of claims 14 to 16, in, Before performing line of sight estimation using the acquired features, the line of sight estimation method further includes: When a point is used as one of the calibration points, data to be used for calibration of the neural network is acquired based on a user action performed with respect to the point.

22. The line of sight estimation method according to claim 21, in, The point includes at least one of the following: a point on a device screen, a point on a button on the device, and a specific point having a determined relative position with the device.

23. The line of sight estimation method according to any one of claims 1 to 5, 14 to 16, in, The line of sight estimation method further comprises: Display calibration points; Acquire a calibration image obtained by capturing an image of a user when the user is gazing at the calibration point; The neural network model is calibrated according to the obtained calibration image.

24. The line of sight estimation method according to claim 23, in, The step of obtaining the calibration image comprises: When a gesture for executing on the calibration point is received, a distance between an operation point corresponding to the gesture and the calibration point is determined, and when the distance is less than a distance threshold, a user image is determined as a calibration image for executing calibration.

25. The line of sight estimation method according to claim 24, in, The step of performing calibration on the neural network model includes: performing calibration on the neural network model using a calibration image.

26. A computer-readable storage medium storing a computer program, in, When the computer program is executed by a processor, the line of sight estimation method according to any one of claims 1 to 25 is implemented.

27. An electronic device, include: one or more processors; as well as A memory storing a computer program which, when executed by the processor, implements the line of sight estimation method according to any one of claims 1 to 25.