Personalized sight tracking method based on space-time attention mechanism and Gaussian process
By combining deep residual networks and hybrid spatial attention models, combined with temporal neural networks and Gaussian processes, a personalized spatiotemporal attention model is constructed, which solves the challenges of eye movement dynamics and individual feature changes in video gaze estimation, and achieves efficient Gaze prediction.
Patent Information
- Application Number
- CN202410729456.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-24
AI Technical Summary
It is difficult for existing technologies to effectively handle the dynamic evolution of eye movements, static background, and individual feature changes in video sequences in video gaze estimation, and traditional 3D convolutional neural networks have challenges in model size and inference time.
The convolutional neural network based on the deep residual network is combined with the hybrid spatial attention model and the temporal neural network to predict the gaze direction through the gaze regression layer, and uses the Gaussian process for bias correction to build a personalized spatiotemporal attention model.
It achieves effective extraction of gaze features from videos, improves the accuracy and efficiency of gaze prediction, and solves the problem of gaze prediction along the timeline.
Smart Images

Figure CN118692133A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of eye tracking, and relates to a personalized eye tracking method based on spatiotemporal attention mechanism and Gaussian process. Background Art
[0002] Gaze direction is an effective cue for analyzing human behavior and attention. In recent years, determining gaze direction from facial videos has attracted the interest of many researchers in the field of image processing. However, video gaze estimation faces huge challenges, such as understanding the dynamic evolution of gaze in video sequences, handling dynamic and static backgrounds, and adapting to the effects of random illumination.
[0003] Human gaze is an important cue for conveying people's intentions, which makes it promising for real-world applications such as human-computer interaction, AR / VR, and saliency detection. Moreover, gaze plays a crucial role in many computer vision tasks, including but not limited to object detection, visual attention, and action recognition. As the main research focus has been on gaze estimation from images, the potential effectiveness of understanding the temporal dynamic characteristics of eye movements for gaze estimation in videos has been relatively overlooked. Building an accurate video-based gaze estimation model requires addressing unique challenges inherent in videos. These include the evolution of eye movements throughout the video, the correlation between gaze directions in consecutive frames, the possibility that the proportion of pixels occupied by static background is much higher than the proportion of valid pixels, and the variations due to individual specific features. Realizing the potential of spatial and motion cues in the video domain, previous studies have used residual frames and optical flow for other vision tasks with good results. Specifically, these methods integrate different input streams such as RGB images and residual frames, requiring larger models with longer inference time and memory requirements. Similarly, 3D convolutional neural networks can also capture spatiotemporal information from videos, but they require many model parameters. In addition, it is also important to transfer knowledge from pre-trained 3D CNNs to new video tasks, as most pre-trained models rely on large 2D image datasets such as the ImageNet dataset. Since detecting spatial and motion cues in videos is crucial, there is an urgent need to design effective attention-based methods for video-related tasks, including video gaze estimation. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a personalized gaze tracking method based on spatiotemporal attention mechanism and Gaussian process from the perspective of model algorithm to solve the problem of effectively extracting gaze-related details from videos and promoting gaze prediction along the time axis. The gaze features in the video are extracted by using a combination of a hybrid spatial attention model and a temporal neural network model instead of a traditional 3D convolutional neural network, and the gaze direction is predicted from the video frame embedding vector using a multilayer perceptron module. Finally, an efficient sample method is proposed, which uses a pre-trained Gaussian process to obtain a bias correction model for gaze prediction to personalize the spatiotemporal attention model.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] A personalized eye tracking method based on spatiotemporal attention mechanism and Gaussian process, the method comprising the following steps:
[0007] S1, using a convolutional neural network model based on a deep residual network to receive input videos and extract feature maps of all frames;
[0008] S2, the feature map is processed by a hybrid spatial attention model based on dual and cross structures to obtain the spatial motion information between consecutive frames;
[0009] S3, spatial motion information is learned through the temporal attention model using the temporal dynamics of past frame embeddings to obtain features with temporal dimension dynamic information;
[0010] S4, mapping the features with temporal dynamic information output by the temporal attention model to the predicted gaze direction sequence through the gaze regression layer;
[0011] S5. Predict the gaze angle residual value using the posterior mean function obtained through the personalized spatiotemporal attention model based on the Gaussian process, and use it to correct the predicted gaze direction sequence and then output the final predicted gaze direction vector.
[0012] Further, in step S1, the video sequence V is converted into features through the ResNet model Where w, h, and k are the width, height, and number of channels of the feature map extracted by ResNet, respectively. The ResNet network model first passes the video frame through a CNN convolutional neural network, then through a maximum pooling layer, then through multiple residual blocks, then through an average pooling layer, and finally through a fully connected layer to obtain the feature map of the video frame.
[0013] Further, in step S2, each consecutive feature pair (X t-1 ,X t ); The spatial attention model aggregates X through a fusion strategy t-1and X t RGB feature information, and (X t -X t-1 ) to generate feature z with spatial information t ; The spatial attention model includes at least a dual-spatial attention model, a cross-spatial attention model and a mixed-spatial attention model.
[0014] Dual-spatial attention model predicts the current X t and the past X t-1 The spatial attention feature maps of the frames are used to compare the current frame with the past frame and identify the areas with the most relevant motion changes; if the spatial attention maps of the two are similar, it is inferred that there is no substantial change between the consecutive frames, only slight differences, and then the output vector If there is a difference in the spatial attention maps of the two, this change is incorporated into the output vector z t middle.
[0015] The criss-cross spatial attention model handles the dense correlation between each pair of block images in the past frame and the current frame through the criss-cross attention model in the transformer model; the criss-cross spatial attention model is able to identify multiple changes between two video frames and filter out irrelevant interference.
[0016] The hybrid-spatial attention model uses a global contextual cross-attention mechanism through position embedding to handle multiple change features; the hybrid-spatial attention model uses the difference between the current frame and the past frame as the key and value to emphasize the areas with the most significant motion differences, and the dual-spatial attention model is used as a pooling processor to selectively focus on the most relevant change features.
[0017] Further, in step S3, the temporal attention model receives the spatially enhanced features z generated by the spatial attention model t , according to z t Capture the dynamic characteristics of eye movement in the video in the temporal dimension; the temporal attention model is combined with the temporal position embedding layer to ensure that the transformer model recognizes the temporal relationship between the input feature sequences. The embedding layer features provide the model with explicit information about the relative order of elements in the sequence. The embedded features are passed through multiple layers, each of which consists of three modules: masked multi-head attention, layer normalization, and multi-layer perceptron. t Through the transformer model to generate features z′ with dynamic information in the time dimension t .
[0018] Furthermore, in step S4, the sight regression layer is composed of a multi-layer perceptron MLP and all timestamps are shared. Its function is to use the feature z′ generated by the time series module tPredicted sight direction g i The loss function of the model training is:
[0019]
[0020] Where b represents the total number of samples of different individuals, n represents the length of the video frame in a sample, represents the transpose of the real line of sight vector, and Represent the true sight line vector and the predicted sight line vector respectively.
[0021] Further, in step S4, personalized Gaussian process processing is used to model the bias correction term for each different user, and the process acts on the spatial attention model and the temporal attention model, including:
[0022] Assume f:V→G represents the process of spatial attention model and temporal attention model, then the final prediction of new user p is:
[0023]
[0024] where r p is a Gaussian process-based bias correction model for p, which is used to predict the residual value;
[0025] Gaussian Process p Using two 1D independent Gaussian processes to independently model the components of gaze direction at the frame level, gaze direction includes yaw and pitch, then:
[0026] r p (V) = [(r p,θ (V1),r p,φ (V1)),(r p,θ (V2),r p,φ (V2)),…,(r p,θ (V n ),(r p,φ (V n )]
[0027] where r p,θ and r p,φ are the one-dimensional Gaussian predictions of the pitch and yaw components, respectively;
[0028] For Gaussian process hyperparameter tuning and inference, we collect a set of p training frames in is the ResNet output feature after flattening the spatial attention model and the temporal attention model, y i is the residual value of the pitch angle or yaw angle, where g i and Represents the true gaze value and the model prediction value respectively; the data set is represented in the form of a matrix set up is the residual vector of the prediction result, where The i-th row has the ResNet feature h i , l represents the video frame length, d represents the ResNet output feature dimension; and the kernel function k(h,h′): The associated Gaussian process is a distribution over a function, and for any Map features to residual angle vectors:
[0029]
[0030] in is the kernel (covariance) matrix on the data points H, r has a constant mean function, whose value is set to μ0;
[0031] The residual vector y i Modeled to obey The distributed Gaussian noise, k(h,h′)=τ, is used to calculate the autocorrelation determination kernel:
[0032]
[0033] where τ and is the kernel hyperparameter;
[0034] After conditioning the Gaussian model on the collected training dataset, the predicted posterior mean and covariance functions are as follows:
[0035]
[0036] where the vector There exists an i-th kernel value k(h,h i ), that is, any eigenvector h,h i and the kernel value between data point i; the posterior mean function predicts the gaze angle residual value and is used for correction.
[0037] The beneficial effects of the present invention are:
[0038] The present invention uses a combination of a hybrid spatial attention model and a temporal neural network model instead of the traditional 3D convolutional neural network to extract gaze features in videos, uses a multi-layer perceptron module to predict the line of sight from the video frame embedding vector, and finally uses a pre-trained Gaussian process to obtain a bias correction model for gaze prediction to personalize the spatiotemporal attention model. The present invention can effectively extract gaze-related details from videos and promote the solution to the gaze prediction problem along the timeline.
[0039] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
[0041] Figure 1 A flowchart of a personalized sight tracking method based on spatiotemporal attention mechanism and Gaussian process of the present invention;
[0042] Figure 2 The overall framework diagram of the personalized sight tracking method based on spatiotemporal attention mechanism and Gaussian process of the present invention;
[0043] Figure 3 It is a structural diagram of the ResNet network model of the present invention;
[0044] Figure 4 Schematic diagram of the dual, cross and hybrid spatial attention model of the present invention, wherein Figure 4 (a) is a schematic diagram of the dual-spatial attention model. Figure 4 (b) is a schematic diagram of the cross-spatial attention model. Figure 4 (c) is a schematic diagram of the hybrid-spatial attention model;
[0045] Figure 5 Schematic diagram of the structure of the temporal attention model of the present invention. DETAILED DESCRIPTION
[0046] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0047] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0048] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0049] See also Figure 1 to Figure 5 , which is a personalized gaze tracking method based on spatiotemporal attention mechanism and Gaussian process.
[0050] The personalized sight tracking method based on spatiotemporal attention mechanism and Gaussian process of the present invention comprises the following steps:
[0051] S1, using a convolutional neural network model based on a deep residual network to receive input videos and extract feature maps of all frames;
[0052] S2, the feature map is processed by a hybrid spatial attention model based on dual and cross structures to obtain the spatial motion information between consecutive frames;
[0053] S3, spatial motion information is learned through the temporal attention model using the temporal dynamics of past frame embeddings to obtain features with temporal dimension dynamic information;
[0054] S4, mapping the features with temporal dynamic information output by the temporal attention model to the predicted gaze direction sequence through the gaze regression layer;
[0055] S5. Predict the gaze angle residual value using the posterior mean function obtained through the personalized spatiotemporal attention model based on the Gaussian process, and use it to correct the predicted gaze direction sequence and then output the final predicted gaze direction vector.
[0056] Example
[0057] This embodiment gives the present invention Figure 1 The flowchart of the personalized eye tracking method shown in FIG. Figure 2The overall network architecture of the personalized gaze tracking method shown in the figure includes the following contents:
[0058] In step S1, the video sequence V is converted into features using the ResNet model Where w, h, and k are the width, height, and number of channels of the feature map extracted by ResNet. The ResNet network model is as follows: Figure 3 As shown in the figure, the video frame is first passed through a CNN convolutional neural network for low-level feature extraction, such as edges, textures, and colors, and then the maximum eigenvalue of the feature map window area is selected through the maximum pooling layer to downsample the input feature rows (reduce dimension) to reduce the spatial size of the feature map and extract the main features. Then, multiple residual blocks are used to achieve identity mapping through jump connections to extract deep features, and then the average eigenvalue of the feature map window area is calculated through the average pooling layer to downsample the input feature rows (reduce dimension), and finally the feature map of the video frame is obtained through the fully connected layer.
[0059] In step S2, this embodiment transmits each continuous feature pair (X) through a shared spatial attention model. t-1 ,X t ). The spatial attention model aggregates X through a fusion strategy. t-1 and X t RGB feature information, and (X t -X t-1 ) to generate feature z with spatial information t The spatiotemporal attention module aims to distinguish gaze-related motion by analyzing the differences between consecutive frames, focusing on key cues such as eye or head motion for gaze estimation while filtering out irrelevant distractions such as facial expressions or background motion. It aims to prioritize relevant video changes, especially eye movements, while ignoring non-essential ones. Figure 4 Schematics showing dual, cross, and hybrid spatial attention models. All spatial attention model variants are optimized during model training and output z t , z t is the feature representation of the spatial motion information of the tth frame of the video.
[0060] like Figure 4 (a) shows a schematic diagram of the dual-spatial attention model, which predicts the current X t and X t-1 The model uses the spatial attention feature maps of the frames to compare the current and past frames and identify the regions most relevant to the observed motion changes. If the spatial attention maps are very similar, the model infers that there is no substantial change between consecutive frames and outputs the vector If there is a difference, then this change is incorporated into the output vector z. t Specifically, X t and X t-1 As a pair of feature pairs input, the feature difference is obtained by subtraction and combined with the original feature values to obtain features with difference information, and then the difference information features are extracted through the convolution layer, and the nonlinear mapping is introduced by the RELU function to increase the expression ability of the neural network and solve the gradient disappearance problem. The output range is compressed by the Sigmoid function to determine the difference feature confidence, and finally the spatial feature information is obtained by element-wise multiplication of the confidence and the original feature, and then the sum pooling operation is used to retain the detail information, and the final spatial feature output is obtained by combining the two-frame information difference with the feature pair.
[0061] like Figure 4 (b) shows a schematic diagram of the cross-spatial attention model. Unlike the dual-spatial attention model, the cross-spatial attention model uses the cross-attention model of the transformer model to handle the dense correlation between each pair of block images in the past and current frames. This allows the cross-spatial attention model to identify multiple changes between two video frames, while the dual-spatial attention model can only capture a single change. Detecting multiple changes and then filtering out irrelevant interference is very suitable for the task of video gaze estimation. Specifically, the same X t and X t-1 As a pair of feature pairs input, and the position embedding P generated by transformer 2d The feature dimensions are reduced through the convolution layer, and then the flatten operation is used to compress the data so that it can be received and used by the cross-attention layer. After comparing the positions with large differences in the two frames of images, the cross-attention layer will obtain intermediate features with spatial information. Finally, the feature dimensions are restored through the unflatten operation. The summation and pooling operation is also used to retain the detail information. The final spatial feature output is obtained by combining the difference between the two frames of information with the feature pair.
[0062] like Figure 4(c) is a schematic diagram of the hybrid-spatial attention model, which combines the advantages of the dual and cross-spatial attention model variants. The dual-spatial attention model focuses on local changes in the video frame, while the cross-spatial attention model focuses on global context information and can capture multiple changes in the world. Similar to the cross-spatial attention model, the hybrid-spatial attention model uses a global context cross-attention mechanism through position embedding to handle multiple change features. However, unlike the cross-spatial attention model variant, it uses the difference between the current frame and the past frame as the key and value to emphasize the area with the most significant motion difference. The dual-spatial attention model is used as a pooling processor to selectively focus on the most relevant change features, such as eye or head movement. The hybrid-spatial attention model is similar to the series connection of the dual and cross-spatial attention models in terms of model structure. Specifically, the first half of the model is a cross-attention model variant, in which the key value input in the cross-attention layer is replaced by the difference between the two frame features, and the features obtained after the unflatten operation are directly used as the input of the dual spatial attention model in the second half.
[0063] In step S3, the temporal attention model receives the spatially enhanced feature representation z generated by the spatial attention model t , which aims to capture the dynamic characteristics of eye movement in the time dimension of the video. The structure of the temporal attention model is as follows Figure 5 As shown in Figure 1, the temporal position embedding layer is combined to ensure that the transformer model recognizes the temporal relationship between the input feature sequences. The embedding layer features provide the model with explicit information about the relative order of elements in the sequence. The embedded features are passed through multiple layers, each of which consists of three modules: masked multi-head attention, layer normalization, and multi-layer perceptron. t Through the transformer model to generate features z with dynamic information in the time dimension t ′.
[0064] In step S4, the sight regression layer is composed of a multi-layer perceptron MLP and all timestamps are shared. Its function is to use the feature z generated by the time series module t ′Predicted sight direction g i The loss function of the model training is:
[0065]
[0066] Where b represents the total number of samples of different individuals, n represents the length of the video frame in a sample, represents the transpose of the real line of sight vector, and Represent the true sight line vector and the predicted sight line vector respectively.
[0067] In step S5, personalized Gaussian process processing is used to model the bias correction term for each different user, which acts on the spatiotemporal attention model proposed above. If f:V→G represents the spatiotemporal attention model, then the final prediction for the new user p is where r p is a Gaussian process-based bias-corrected model for p, i.e., in addition to the model-agnostic predictions, it also predicts the residual values. p The components of gaze direction (i.e., yaw and pitch) are modeled independently at the frame level using two 1D independent Gaussian processes.
[0068] r p (V) = [(r p,θ (V1),r p,φ (V1)),(r p,θ (V2),r p,φ (V2)),…,(r p,θ (V n ),(r p,φ (V n )]
[0069] where r p,θ and r p,φ are the 1D Gaussian predictions of the pitch and yaw components, respectively.
[0070] For Gaussian process hyperparameter tuning and inference, we collect a set of p training frames in is the ResNet output feature after flattening of the spatiotemporal attention model, y i is the residual value of the pitch angle or yaw angle, that is where g i and Represent the true gaze value and the model prediction value respectively. In order to represent the dataset in the form of a matrix set up is the residual vector of the prediction result, where The i-th row is equal to the ResNet feature h i , l represents the video frame length, d represents the ResNet output feature dimension. And the kernel (covariance) function k(h,h′): The associated Gaussian process is a distribution over functions such that for any Map features to residual angle vectors:
[0071]
[0072] in is the kernel (covariance) matrix of the data points H, r has a constant mean function, whose value is set to μ0. The residual vector y iModeled to obey The distributed Gaussian noise, k(h,h′)=τ, is used to calculate the (squared exponential) autocorrelation kernel:
[0073]
[0074] where τ and The flexibility of the kernel determined by automatic correlation enables the model to adapt to different feature correlations and noise levels, potentially improving accuracy and generalization.
[0075] After conditioning the Gaussian model on the collected training dataset, the predicted posterior mean and covariance functions are as follows:
[0076]
[0077] where the vector There exists an i-th kernel value k(h,h i ), that is, any eigenvector h,h i The kernel value between and data point i. The posterior mean function predicts the gaze angle residual value and is used for correction. The posterior covariance function determines the uncertainty of this prediction.
[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A personalized eye tracking method based on spatiotemporal attention mechanism and Gaussian process, characterized by: The method comprises the following steps: S1, using a convolutional neural network model based on a deep residual network to receive input videos and extract feature maps of all frames; S2, the feature map is processed by a hybrid spatial attention model based on dual and cross structures to obtain the spatial motion information between consecutive frames; S3, spatial motion information is learned through the temporal attention model using the temporal dynamics of past frame embeddings to obtain features with temporal dimension dynamic information; S4, mapping the features with temporal dynamic information output by the temporal attention model to the predicted gaze direction sequence through the gaze regression layer; S5. Predict the gaze angle residual value using the posterior mean function obtained through the personalized spatiotemporal attention model based on the Gaussian process, and use it to correct the predicted gaze direction sequence and then output the final predicted gaze direction vector.
2. The personalized eye tracking method based on spatiotemporal attention mechanism and Gaussian process according to claim 1, characterized in that: In step S1, the video sequence V is converted into features through the ResNet model Where w, h, and k are the width, height, and number of channels of the feature map extracted by ResNet respectively; The ResNet network model first passes the video frame through a CNN convolutional neural network, then through a maximum pooling layer, then through multiple residual blocks, then through an average pooling layer, and finally through a fully connected layer to obtain the feature map of the video frame.
3. The personalized eye tracking method based on spatiotemporal attention mechanism and Gaussian process according to claim 2, characterized in that: In step S2, each consecutive feature pair (X t-1 ,X t ); The spatial attention model aggregates X through a fusion strategy t-1 and X t RGB feature information, and (X t -X t-1 ) to generate feature z with spatial information t ; The spatial attention model includes at least a dual-spatial attention model, a cross-spatial attention model and a mixed-spatial attention model.
4. The personalized eye tracking method based on spatiotemporal attention mechanism and Gaussian process according to claim 3, characterized in that: Dual-spatial attention model predicts the current X t and the past X t-1 The spatial attention feature maps of the frames are used to compare the current frame with the past frame and identify the areas with the most relevant motion changes; if the spatial attention maps of the two are similar, it is inferred that there is no substantial change between the consecutive frames, only slight differences, and then the output vector If there is a difference in the spatial attention maps of the two, this change is incorporated into the output vector z t middle; The criss-cross spatial attention model handles the dense correlation between each pair of patch images in the past frame and the current frame through the criss-cross attention model in the transformer model; The cross-spatial attention model is able to identify multiple changes between two video frames and filter out irrelevant distractions; The hybrid-spatial attention model uses a global contextual cross-attention mechanism through position embedding to handle multiple change features; the hybrid-spatial attention model uses the difference between the current frame and the past frame as the key and value to emphasize the areas with the most significant motion differences, and the dual-spatial attention model is used as a pooling processor to selectively focus on the most relevant change features.
5. The personalized eye tracking method based on spatiotemporal attention mechanism and Gaussian process according to claim 3, characterized in that: In step S3, the temporal attention model receives the spatially enhanced features z generated by the spatial attention model t , according to z t Capture the dynamic characteristics of eye movement in the video in the temporal dimension; the temporal attention model is combined with the temporal position embedding layer to ensure that the transformer model recognizes the temporal relationship between the input feature sequences. The embedding layer features provide the model with explicit information about the relative order of elements in the sequence. The embedded features are passed through multiple layers, each of which consists of three modules: masked multi-head attention, layer normalization, and multi-layer perceptron. t Through the transformer model to generate features z′ with dynamic information in the time dimension t .
6. The personalized eye tracking method based on spatiotemporal attention mechanism and Gaussian process according to claim 5, characterized in that: In step S4, the line of sight regression layer is composed of a multi-layer perceptron MLP and shared by all timestamps, which uses the feature z′ generated by the time series module t Predicted sight direction g i , the loss function of model training is: Where b represents the total number of samples of different individuals, n represents the length of the video frame in a sample, represents the transpose of the true line of sight vector, and Represent the true sight line vector and the predicted sight line vector respectively.
7. The personalized eye tracking method based on spatiotemporal attention mechanism and Gaussian process according to claim 5, characterized in that: In step S4, personalized Gaussian process processing is used to model the bias correction term for each different user. The process acts on the spatial attention model and the temporal attention model, including: Assume f:V→G represents the process of spatial attention model and temporal attention model, then the final prediction of new user p is: where r p is a Gaussian process-based bias correction model for p, which is used to predict the residual value; Gaussian Process p Using two 1D independent Gaussian processes to independently model the components of gaze direction at the frame level, gaze direction includes yaw and pitch, then: r p (V)=[(r p,θ (V1),r p,φ (V1)),(r p,θ (V2),r p,φ (V2)),…,(r p,θ (V n ),(r p,φ (V n )] where r p,θ and r p,φ are the one-dimensional Gaussian predictions of the pitch and yaw components, respectively; For Gaussian process hyperparameter tuning and inference, we collect a set of p training frames in is the ResNet output feature after flattening the spatial attention model and the temporal attention model, y i is the residual value of the pitch angle or yaw angle, where g i and Represents the true gaze value and the model prediction value respectively; the data set is represented in the form of a matrix set up is the residual vector of the prediction result, where The i-th row has the ResNet feature h i , l represents the video frame length, d represents the ResNet output feature dimension; and the kernel function The associated Gaussian process is a distribution over a function, and for any Map features to residual angle vectors: in is the kernel (covariance) matrix on the data points H, r has a constant mean function, whose value is set to μ0; The residual vector y i Modeled to obey The distributed Gaussian noise, k(h,h′)=τ, is used to calculate the autocorrelation determination kernel: where τ and is the kernel hyperparameter; After conditioning the Gaussian model on the collected training dataset, the predicted posterior mean and covariance functions are as follows: where the vector There exists an i-th kernel value k(h,h i ), that is, any eigenvector h,h i and the kernel value between data point i; the posterior mean function predicts the gaze angle residual value and is used for correction.
Citation Information
Patent Citations
Action video recognition method combining hybrid convolution residual network and attention
CN112149504A
Facial expression recognition method and system combined with attention mechanism
US20230298382A1
Cited By
Attention state display method, device and equipment based on eye movement tracking equipment
CN120973223A
Method, device and equipment for displaying attention state based on eye tracking device
CN120973223B
Coal conveying belt foreign matter detection system based on time sequence fusion and attention mechanism
CN121725431A
