Eye movement interaction data smoothing and stabilizing method and system in shaking environment
Through the combination of weighted moving average algorithm and Kalman filter algorithm and dynamic feedback adjustment, the high-frequency noise problem of eye movement interaction data in a shaking environment is solved, the smoothness and stability optimization of the data are achieved, and the accuracy of eye movement interaction is improved. Positioning capabilities.
Patent Information
- Application Number
- CN202410788892.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-10
AI Technical Summary
In a shaking environment, eye movement interaction data is prone to high-frequency noise and inaccuracy, resulting in low eye tracking efficiency, and the Kalman filter correction effect of the existing technology is not accurate enough.
The weighted moving average algorithm and the Kalman filter algorithm are combined to adjust the algorithm parameters through dynamic feedback adjustment to eliminate oscillation noise and improve the smoothness and stability of eye movement data.
Effectively eliminate oscillation noise in eye movement data, achieve data smoothing and stability in complex eye movement interactions, and provide real-time and fast smoothing and stability optimization solutions for eye movement interactions.
Smart Images

Figure CN118625932A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of eye movement interaction dynamic positioning, and in particular to a method and system for smoothing and stabilizing eye movement interaction data in a shaking environment. Background Art
[0002] Eye tracking is becoming more and more widely used and important in our daily lives. However, due to physiological and technical limitations, eye movement interaction data in a shaky environment is often accompanied by high-frequency noise and inaccuracy, which also poses challenges to the efficient use of eye tracking.
[0003] like Figure 1 The existing technology pre-processes the original eye movement data, the data is noisy, and the effect of Kalman filter correction may not meet the high accuracy requirements. The existing technology does not pre-process the original eye movement data, the data is noisy, and the effect of Kalman filter correction may not meet the high accuracy requirements. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for smoothing and stabilizing eye movement interaction data in a shaking environment, which can improve the accuracy of smoothing and stabilizing eye movement interaction data in a shaking environment.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A method for smoothing and stabilizing eye movement interaction data in a shaking environment, comprising:
[0007] Get eye movement data stream;
[0008] Using a weighted moving average algorithm, filtering the eye movement data stream;
[0009] The Kalman filter algorithm is used to perform secondary filtering on the eye movement data stream after the primary filtering;
[0010] According to the eye movement data stream after secondary filtering, the weighted moving average algorithm and the Kalman filter algorithm are adjusted using a dynamic feedback adjustment algorithm.
[0011] Optionally, a weighted moving average algorithm is used to filter the eye movement data stream, including:
[0012] Extracting a current eye movement data group from the eye movement data stream based on the current time window; the number of data in the current eye movement data group is equal to the length of the current time window;
[0013] According to the center point of the current time window and the standard deviation corresponding to the current time window, input them into the standard Gaussian function to obtain the current Gaussian function;
[0014] The difference between each point in the current time window and the center point of the current time window is used as a variable and input into the current Gaussian function to obtain the initial weight of each point in the current time window.
[0015] Normalize the initial point weights corresponding to all points in the current time window to obtain the point weight corresponding to each point in the current time window;
[0016] According to the point weight corresponding to each point in the current time window, the weighted average value of the current eye movement data group is calculated as the primary filtering result of the current eye movement data group.
[0017] Alternatively, the standard Gaussian function is:
[0018]
[0019] Wherein, w(x) is the standard Gaussian function, x is the difference between any point in the current time window and the center point of the current time window, μ is the center point of the current time window, and σ is the standard deviation corresponding to the current time window.
[0020] Optionally, the Kalman filter algorithm includes:
[0021] Determine the state prediction value and the prediction error covariance matrix according to the prediction model;
[0022] Determine the Kalman gain based on the prediction error covariance matrix and the observation noise covariance;
[0023] Taking the result of a filtering process of the current eye movement data group as a measurement value, and correcting the state prediction value according to the measurement value and the Kalman gain;
[0024] According to the Kalman gain, the prediction error covariance matrix is modified.
[0025] Optionally, according to the eye movement data stream after secondary filtering, a dynamic feedback adjustment algorithm is used to adjust the weighted moving average algorithm and the Kalman filter algorithm, including:
[0026] According to the secondary filtering processing result of the current eye movement data group, the weighted moving average algorithm is adjusted;
[0027] Adjust the Kalman filter algorithm according to the secondary filtering processing result of the current eye movement data group;
[0028] Return to step "using a weighted moving average algorithm to filter the eye movement data stream once".
[0029] Optionally, according to the secondary filtering processing result of the current eye movement data group, the weighted moving average algorithm is adjusted, including:
[0030] Determine the real-time standard deviation of the secondary filtering processing result of the current eye movement data group;
[0031] Determine whether the real-time standard deviation is greater than a real-time standard deviation threshold, and obtain a first determination result;
[0032] If the first judgment result is yes, reducing the current window length according to the preset window adjustment amount;
[0033] If the first judgment result is no, determining whether the real-time standard deviation is equal to a real-time standard deviation threshold to obtain a second judgment result;
[0034] If the second judgment result is yes, then the current window length is not changed;
[0035] If the second judgment result is no, the current window length is increased according to the preset window adjustment amount.
[0036] Optionally, the Kalman filter algorithm is adjusted according to the secondary filtering processing result of the current eye movement data group, including:
[0037] Obtain the secondary filtering processing result of the current eye movement data group and the secondary filtering processing results of the two eye movement data groups before the secondary filtering processing result of the current eye movement data group, and determine the speed change rate;
[0038] Determine whether the speed change rate is greater than a speed change rate threshold, and obtain a third determination result;
[0039] If the third judgment result is yes, then the process noise covariance is reduced according to the preset process noise covariance adjustment amount; the process noise covariance is a parameter of the prediction model;
[0040] If the third judgment result is no, then judging whether the speed change rate is equal to the speed change rate threshold value, and obtaining a fourth judgment result;
[0041] If the fourth judgment result is yes, then the process noise covariance is not changed;
[0042] If the fourth judgment result is no, increasing the process noise covariance according to a preset process noise covariance adjustment amount;
[0043] Determine observation residuals;
[0044] Determine whether the observed residual is greater than an observed residual threshold, and obtain a fifth determination result;
[0045] If the fifth judgment result is yes, reducing the observation noise covariance according to the preset observation noise covariance adjustment amount;
[0046] If the fifth judgment result is no, then judging whether the observed residual is equal to the observed residual threshold value, and obtaining a sixth judgment result;
[0047] If the sixth judgment result is yes, then the observation noise covariance is not changed;
[0048] If the sixth judgment result is no, the observation noise covariance is increased according to a preset observation noise covariance adjustment amount.
[0049] A system for smoothing and stabilizing eye movement interaction data in a shaking environment, comprising:
[0050] An eye movement data acquisition module, used to obtain eye movement data stream;
[0051] A weighted moving average algorithm filtering module, used for performing a filtering process on the eye movement data stream using a weighted moving average algorithm;
[0052] A Kalman filter algorithm filtering module is used to perform secondary filtering on the eye movement data stream after the primary filtering using the Kalman filter algorithm;
[0053] The dynamic feedback adjustment module is used to adjust the weighted moving average algorithm and the Kalman filter algorithm using a dynamic feedback adjustment algorithm according to the eye movement data stream after secondary filtering.
[0054] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0055] The present invention provides a method and system for smoothing and stabilizing eye movement interaction data in a shaking environment. The method aims to solve the problem that eye movement interaction data in a shaking environment has oscillations and high-frequency noise, which makes it impossible to stably realize accurate positioning and precise control of eye movement interaction. The method combines the advantages of a weighted moving average algorithm being fast and flexible and the advantage of a Kalman filter algorithm being well adapted to dynamic changes of a system, effectively eliminates oscillation noise in eye movement data, realizes smoothing and stabilization of eye movement data in complex eye movement interactions, and provides a real-time, fast, smooth and stability-optimized solution for eye movement interaction. In the dynamic feedback adjustment design, the eye movement data characteristics can be detected in real time, and eye movement data indicators such as standard deviation, velocity change rate and observation residual can be calculated. The time window and weight distribution of the weighted moving average algorithm and the process noise and observation noise covariance of the Kalman filter can be adjusted in real time according to the eye movement data indicators and dynamic feedback adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1It is a flow chart of an eye-controlled cursor stabilization method based on Kalman filtering in the prior art;
[0058] Figure 2 This is a flow chart of a method for smoothing and stabilizing eye movement interaction data in a shaking environment in Example 1 of the present invention;
[0059] Figure 3 This is a flow chart of weight adaptive adjustment rules in Embodiment 1 of the present invention;
[0060] Figure 4 This is a diagram of the algorithm combination design in Example 1 of the present invention;
[0061] Figure 5 This is a diagram of the Kalman filter algorithm processing process in Example 1 of the present invention;
[0062] Figure 6 The weighted moving average algorithm window size and weight dynamic adjustment diagram in Example 1 of the present invention;
[0063] Figure 7 This is a framework diagram of the Kalman filter dynamic adjustment method in Example 1 of the present invention;
[0064] Figure 8 Schematic diagram of the structure of the eye movement interaction data smoothing and stabilization system in a shaking environment in Example 1 of the present invention. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] The purpose of the present invention is to provide a method and system for smoothing and stabilizing eye movement interaction data in a shaking environment, which can improve the accuracy of smoothing and stabilizing eye movement interaction data in a shaking environment.
[0067] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0068] Example 1
[0069] like Figure 2 As shown, a method for smoothing and stabilizing eye movement interaction data in a shaking environment in this embodiment includes:
[0070] Step 101: Obtain eye movement data stream.
[0071] Step 102: Utilize the weighted moving average algorithm to perform a filtering process on the eye movement data stream.
[0072] Step 103: Perform secondary filtering on the eye movement data stream after the primary filtering using the Kalman filtering algorithm.
[0073] Step 104: According to the eye movement data stream after secondary filtering, the weighted moving average algorithm and the Kalman filter algorithm are adjusted using a dynamic feedback adjustment algorithm.
[0074] Step 102 includes:
[0075] Step 102-1: extracting a current eye movement data set from the eye movement data stream based on the current time window. The number of data in the current eye movement data set is equal to the length of the current time window.
[0076] Step 102-2: Input the center point of the current time window and the standard deviation corresponding to the current time window into the standard Gaussian function to obtain the current Gaussian function.
[0077] Step 102-3: The difference between each point in the current time window and the center point of the current time window is used as a variable and input into the current Gaussian function to obtain the initial point weight corresponding to each point in the current time window.
[0078] Step 102-4: Normalize the initial point weights corresponding to all points in the current time window to obtain the point weight corresponding to each point in the current time window.
[0079] Step 102-5: Calculate the weighted average of the current eye movement data set according to the point weight corresponding to each point in the current time window as the primary filtering result of the current eye movement data set.
[0080] The standard Gaussian function is:
[0081]
[0082] Wherein, w(x) is the standard Gaussian function, x is the difference between any point in the current time window and the center point of the current time window, μ is the center point of the current time window, and σ is the standard deviation corresponding to the current time window.
[0083] The Kalman filter algorithm includes: determining the state prediction value and the prediction error covariance matrix according to the prediction model. Determining the Kalman gain according to the prediction error covariance matrix and the observation noise covariance. Using the first filtering processing result of the current eye movement data group as the measurement value, correcting the state prediction value according to the measurement value and the Kalman gain. Correcting the prediction error covariance matrix according to the Kalman gain.
[0084] Step 104 includes:
[0085] Step 104-1: Adjust the weighted moving average algorithm according to the secondary filtering processing result of the current eye movement data group.
[0086] Step 104-2: Adjust the Kalman filter algorithm according to the secondary filtering processing result of the current eye movement data set.
[0087] Step 104-3: Return to step 102.
[0088] Step 104-1 includes:
[0089] Step 104-1-1: Determine the real-time standard deviation of the secondary filtering result of the current eye movement data group.
[0090] Step 104-1-2: Determine whether the real-time standard deviation is greater than the real-time standard deviation threshold, and obtain a first determination result.
[0091] Step 104-1-3: If the first judgment result is yes, reduce the current window length according to the preset window adjustment amount.
[0092] Step 104-1-4: If the first judgment result is no, determine whether the real-time standard deviation is equal to the real-time standard deviation threshold to obtain a second judgment result.
[0093] Step 104-1-5: If the second judgment result is yes, the current window length is not changed.
[0094] Step 104-1-6: If the second judgment result is no, increase the current window length according to the preset window adjustment amount.
[0095] Step 104-2 includes:
[0096] Step 104-2-1: Obtain the secondary filtering processing result of the current eye movement data group and the secondary filtering processing results of the two eye movement data groups before the secondary filtering processing result of the current eye movement data group, and determine the speed change rate.
[0097] Step 104-2-2: Determine whether the speed change rate is greater than the speed change rate threshold, and obtain a third judgment result.
[0098] Step 104-2-3: If the third judgment result is yes, then reduce the process noise covariance according to the preset process noise covariance adjustment amount. The process noise covariance is a parameter of the prediction model.
[0099] Step 104-2-4: If the third judgment result is no, determine whether the speed change rate is equal to the speed change rate threshold to obtain a fourth judgment result.
[0100] Step 104-2-5: If the fourth judgment result is yes, the process noise covariance is not changed.
[0101] Step 104-2-6: If the fourth judgment result is no, the process noise covariance is increased according to the preset process noise covariance adjustment amount.
[0102] Step 104-2-7: Determine the observation residual.
[0103] Step 104-2-8: Determine whether the observed residual is greater than the observed residual threshold, and obtain a fifth determination result.
[0104] Step 104-2-9: If the fifth judgment result is yes, the observation noise covariance is reduced according to the preset observation noise covariance adjustment amount.
[0105] Step 104-2-10: If the fifth judgment result is no, determine whether the observed residual is equal to the observed residual threshold to obtain the sixth judgment result.
[0106] Step 104-2-11: If the sixth judgment result is yes, the observation noise covariance is not changed.
[0107] Step 104-2-12: If the sixth judgment result is no, the observation noise covariance is increased according to the preset observation noise covariance adjustment amount.
[0108] Example 2
[0109] like Figure 8 This embodiment provides a system for smoothing and stabilizing eye movement interaction data in a shaking environment, including:
[0110] The eye movement data acquisition module is used to obtain the eye movement data stream.
[0111] The weighted moving average algorithm filtering module is used to perform a filtering process on the eye movement data stream using the weighted moving average algorithm.
[0112] The Kalman filter algorithm filtering module is used to perform secondary filtering on the eye movement data stream after the primary filtering processing using the Kalman filter algorithm.
[0113] The dynamic feedback adjustment module is used to adjust the weighted moving average algorithm and the Kalman filter algorithm using a dynamic feedback adjustment algorithm according to the eye movement data stream after secondary filtering.
[0114] 1. Eye movement data acquisition module.
[0115] As an emerging human-computer interaction method, eye movement interaction technology relies on accurate and efficient eye movement data acquisition modules to collect, capture and analyze the user's sight behavior. The eye movement data acquisition module is mainly composed of infrared light source, eye movement tracking device unit and data processing and storage unit. Its core function is to monitor and record the movement of the eyeball in real time, including eye movement information such as eye position, movement speed and pupil changes.
[0116] 2. Weighted moving average algorithm filtering module.
[0117] The weighted moving average algorithm filtering module quickly reduces the high-frequency noise of eye movement data, providing a relatively smooth data basis for subsequent more sophisticated processing.
[0118] The weighted moving average algorithm is a method commonly used for smoothing time series data. The key lies in the reasonable selection of the time window size and weight distribution. In the weighted moving average filtering algorithm, the time window is set according to the characteristics of the eye movement data, and each data point in the time window is assigned a weight. The weight distribution usually reflects the importance of the data point to the current estimate.
[0119] (1) Time window design:
[0120] Set a time window with the most recent N data points, and the window size is N. The window size (that is, the number of data points contained in the time window) directly affects the smoothing effect and reaction speed of the filter. A larger window can reduce the volatility of the data and provide a smoother output, while also reducing the sensitivity of the data. The initial value of N is 12, corresponding to a frequency of 120HZ.
[0121] (2) Weight distribution design:
[0122] Gaussian weights distribute weights according to a Gaussian function distribution, with the center point receiving the highest weight and the weights of points farther away from the center gradually decreasing. This distribution method is particularly suitable for processing eye tracking data that needs to be smoothed but not lose too much detail. The Gaussian function form is:
[0123]
[0124] Among them, x is the variable, that is, the distance between the data point and the center point; μ is the mean, which is usually set to the center point of the window; σ is the standard deviation, which controls the width of the weight distribution.
[0125] (3) Weight adaptive adjustment rules, such as Figure 3 .
[0126] Step 1: A window of size N with a center point position of N / 2 (for a window of even length, the center is considered to be the average position of the two points).
[0127] Step 2: Set μ in the Gaussian function to the center point of the window.
[0128] Step 3: Select the σ value according to the window size to control the distribution range of the weights, ensuring that the weights do not drop to 0 too quickly at both ends of the window.
[0129] Step 4: For each point in the window, use its distance x relative to the center point (the index position of the point minus the center point position) as the input of the Gaussian function to calculate the weight of each point.
[0130] Step 5: Normalize the calculated weights (divide each weight by the sum of all weights) to ensure that the sum is 1.
[0131] Step 6: After calculating the normalized Gaussian weights, apply these weights to each data point in the window in turn, and calculate the weighted average as the filtering result. Points with higher weights contribute more to the average, thus achieving a Gaussian smoothing effect.
[0132] 3. Algorithm combination method.
[0133] like Figure 4 The algorithm combination combines the weighted moving average algorithm and the Kalman filter algorithm, which are used together for smoothing and stabilizing eye movement interaction data. By combining the weighted moving average algorithm and the Kalman filter algorithm, the advantages of the weighted moving average algorithm in data preprocessing and fast data smoothing, as well as the powerful functions of the Kalman filter in dynamic eye movement data estimation and noise adaptive processing are utilized. This process utilizes the advantages of the two algorithms to improve the processing effect while maintaining the real-time and accuracy of the algorithm, providing a real-time and comprehensive smoothing and stability optimization solution for eye movement data.
[0134] The key to the combined design is to effectively combine the advantages of weighted moving average filtering and Kalman filtering to achieve better data processing results. The fusion strategy is to use the smoothed data output by the weighted moving average filter as the observation input of the Kalman filter, and use the advantages of the Kalman filter to make more precise adjustments in estimation and prediction.
[0135] 4. Kalman filter algorithm filtering module.
[0136] The Kalman filter algorithm filtering module provides further data smoothing and stability optimization for eye movement data with complex dynamic noise characteristics. The goal of the Kalman filter algorithm filtering module is to accurately estimate the dynamic characteristics of the eye movement data and optimize the state based on the eye movement dynamic model.
[0137] The Kalman filter algorithm is an efficient recursive filter that uses the linear system state equation to optimally estimate the system state through the system input and output observation data. The Kalman filter can minimize the error between the predicted state and the actual measurement. The Kalman filter is very flexible and can handle noisy data, making it suitable for complex systems that require real-time updates and predictions.
[0138] Specific process:
[0139] Step 1. Establish an initial eye movement model: define eye movement state variables and observation model, and use the output of the weighted moving average algorithm filtering module as the observation input of the Kalman filter module.
[0140] Step 2. Parameter estimation and update: Based on the prediction model and actual observations, the estimated values and covariance of the state variables are continuously updated to adapt to changes in eye movement data. Kalman filtering uses the last optimal result to predict the current value; at the same time, it uses the observed value to correct the current value to obtain the optimal estimation result. Therefore, it is mainly divided into two parts: prediction and update. The specific expansion is as follows: Figure 5 :
[0141] (1) Prediction:
[0142] Predict the current state through the previous state quantity and distribution.
[0143] Prior estimation (using the best estimate at the previous moment to derive the predicted value at this moment):
[0144]
[0145] in, represents the state prediction value at time t; F is the state transfer matrix; u t-1 is the control input vector at time t-1, B is the control matrix; W t ∈N(0,Q) is the process noise.
[0146] The prediction error covariance matrix (the covariance of the optimal estimate at the previous moment and the covariance of the predicted value at this moment derived from the hyperparameter Q) is:
[0147]
[0148] in, is the prior estimated covariance, Q is the process noise, P t-1 is the optimal estimate covariance at time t-1, and T represents the transposed matrix.
[0149] (2) Update:
[0150] Use the observed value and the predicted value to update the current state and covariance parameters
[0151] Status Update:
[0152]
[0153] is the optimal estimate of the output at time t, and is also the result of Kalman filtering; z t is the measured value at time t, H is the observation matrix, K t is the Kalman gain at time t.
[0154] Kalman gain:
[0155]
[0156] in, is the covariance of the predicted value at this moment, R t is the variance of the observation noise, and the Kalman gain is equivalent to a weight.
[0157] Error covariance update:
[0158]
[0159] Among them, P t is the optimal estimate covariance at time t; I is the identity matrix.
[0160] 5. Dynamic feedback adjustment module.
[0161] (1) Weighted moving average algorithm dynamically adjusts the time window and weight distribution method:
[0162] like Figure 6 ,According to the result feedback of the dynamic feedback regulation module, the parameters of the weighted moving average algorithm are adjusted: the time window size or weight distribution, and the weight distribution is optimized according to the real-time characteristics of the data, so as to find the best balance between data smoothing and fast response to adapt to the real-time changes of eye movement data.
[0163] Dynamic adjustment methods and rules:
[0164] Calculate the rate of change of the last few consecutive data points, use dynamic feedback to adjust the standard deviation of the data in the window to determine the volatility of the data, and adjust the time window size and weight distribution strategy according to the preset threshold. When rapid eye movement is detected, increase the weight of the latest data to improve the response speed; when the eye movement is slow or lingering, increase the weight of historical data to improve data smoothness. Dynamically adjust the time window size and weight distribution according to the standard deviation of the eye movement data. The minimum window size is min and the maximum window size is max. The threshold sets the standard deviation high threshold and the standard deviation low threshold. The specific steps are as follows.
[0165] Step 1: Detect data characteristics in real time and calculate the real-time standard deviation of the data.
[0166] Standard deviation definition and formula:
[0167] A set of eye movement data points (x i ,y i ), i = 1, 2, ..., n, first calculate the average value of the X and Y coordinates (μ x ,μ y ):
[0168]
[0169]
[0170] Standard deviation calculation formula:
[0171]
[0172] Step 2: Dynamically adjust the time window size and weight distribution.
[0173] When the real-time standard deviation of eye movement data is greater than the high standard deviation threshold, the eye movement data fluctuates greatly. Reduce the window size of the weighted moving average algorithm by a fixed 2 data points each time, with the minimum not less than min. Increase the weight of the latest data and increase the weight ratio between 3% and 10% to improve the response speed.
[0174] When the real-time standard deviation of eye movement data is less than the low standard deviation threshold, the data is relatively stable, and the window size of the weighted moving average algorithm is increased, with a fixed increase of 2 data points each time, and the maximum is no more than max; the weight of historical data is increased, and the weight of the latest data is reduced, and the weight ratio is reduced to between 3% and 10% to improve data smoothness.
[0175] (2) Kalman filter algorithm dynamic feedback adjustment method.
[0176] The dynamic adjustment of noise estimation mechanism mainly involves dynamically adjusting the process noise and observation noise covariance to adapt to the real-time changes of eye movement data and improve the accuracy and adaptability of the Kalman filter algorithm in eye tracking.
[0177] The process noise covariance (Q) reflects the uncertainty in the state prediction model. When significant changes in eye velocity or acceleration are detected, Q is increased to reflect the higher process uncertainty.
[0178] The observation noise covariance (R) reflects the uncertainty in the observation model. R is dynamically adjusted by analyzing the stability of consecutive observations. If the fluctuation observed during the fixation is less than the threshold, R is reduced to increase the filter's trust in the observation.
[0179] Dynamic feedback regulation rules and mechanisms such as Figure 7 :The method to implement the adaptive noise estimation mechanism is to use the sliding window technology to estimate the current noise level by analyzing the changes in continuous multi-point data within the window, and adjust Q and R accordingly. The specific steps are as follows.
[0180] Step 1: Calculate the speed change rate of the most recent consecutive data points, and adjust the weight distribution according to whether the speed change rate is greater than a preset threshold.
[0181] The rate of change of eye movement velocity can be obtained by calculating the change of eye movement velocity in a short time interval. 1 The position coordinates at the time (x 1 ,y 1 ), t 2 The position coordinates at the time (x 2 ,y 2 ),t 3 The position coordinates at the time (x 3 ,y 3 )
[0182] t 1 and t 2 The average velocity vector between points at two times:
[0183]
[0184] t 2 and t 3 The average velocity vector between points at two times:
[0185]
[0186] Velocity change rate component:
[0187]
[0188]
[0189] Speed change rate:
[0190]
[0191] Step 2: Calculate the change in the observation residual (the difference between the actual observation and the model prediction) to estimate the level of observation noise.
[0192] Observation residual e = observation value y 1 -Model predicted value y 2
[0193] Step 3: Dynamic adjustment, the specific method is as follows:
[0194] Dynamically adjust the process noise variance Q based on the speed change rate:
[0195] High speed change rate: When the speed change rate of the eye movement data is greater than the high threshold, the state of the eye movement data changes greatly, and the Q value is gradually increased (10%);
[0196] Low speed change rate: When the speed change rate of the eye movement data is less than the low threshold, the state of the eye movement data changes slightly, and the Q value is gradually reduced (10%).
[0197] Dynamically adjust the observation noise variance R based on the observation residual:
[0198] Large observation residual: The observation residual is continuously higher than the set residual threshold, and the R value is gradually increased (10%).
[0199] Small observed residual: When the observed residual is less than the set residual threshold, the R value is gradually reduced (10%).
[0200] Through the above method, a dynamic feedback adjustment process of adaptively adjusting the process noise covariance and the observation noise covariance according to the dynamic characteristics and real-time characteristics of the eye movement interaction data can be realized, thereby improving the smoothness and stability of the eye movement interaction process.
[0201] The present invention provides a comprehensive smoothing and stability optimization solution for eye movement data by dynamically combining the weighted sliding average algorithm and the Kalman filter algorithm, effectively improving the data smoothness and stability of eye movement interaction and ensuring the precise positioning of eye movements in eye movement interaction.
[0202] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0203] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for smoothing and stabilizing eye movement interaction data in a shaking environment, characterized in that: include: Get eye movement data stream; Using a weighted moving average algorithm, filtering the eye movement data stream; The Kalman filter algorithm is used to perform secondary filtering on the eye movement data stream after the primary filtering; According to the eye movement data stream after secondary filtering, the weighted moving average algorithm and the Kalman filter algorithm are adjusted using a dynamic feedback adjustment algorithm.
2. The method for smoothing and stabilizing eye movement interaction data in a shaking environment according to claim 1, characterized in that: The eye movement data stream is filtered using a weighted moving average algorithm, including: Extracting a current eye movement data group from the eye movement data stream based on the current time window; the number of data in the current eye movement data group is equal to the length of the current time window; According to the center point of the current time window and the standard deviation corresponding to the current time window, input them into the standard Gaussian function to obtain the current Gaussian function; The difference between each point in the current time window and the center point of the current time window is used as a variable and input into the current Gaussian function to obtain the initial weight of each point in the current time window. Normalize the initial point weights corresponding to all points in the current time window to obtain the point weight corresponding to each point in the current time window; According to the point weight corresponding to each point in the current time window, the weighted average value of the current eye movement data group is calculated as the primary filtering result of the current eye movement data group.
3. The method for smoothing and stabilizing eye movement interaction data in a shaking environment according to claim 1, characterized in that: The standard Gaussian function is: Wherein, w(x) is the standard Gaussian function, x is the difference between any point in the current time window and the center point of the current time window, μ is the center point of the current time window, and σ is the standard deviation corresponding to the current time window.
4. The method for smoothing and stabilizing eye movement interaction data in a shaking environment according to claim 1, characterized in that: The Kalman filter algorithm includes: Determine the state prediction value and the prediction error covariance matrix according to the prediction model; Determine the Kalman gain based on the prediction error covariance matrix and the observation noise covariance; Taking the result of a filtering process of the current eye movement data group as a measurement value, and correcting the state prediction value according to the measurement value and the Kalman gain; According to the Kalman gain, the prediction error covariance matrix is modified.
5. The method for smoothing and stabilizing eye movement interaction data in a shaking environment according to claim 2, characterized in that: According to the eye movement data stream after secondary filtering, the weighted moving average algorithm and the Kalman filter algorithm are adjusted by using a dynamic feedback adjustment algorithm, including: According to the secondary filtering processing result of the current eye movement data group, the weighted moving average algorithm is adjusted; Adjust the Kalman filter algorithm according to the secondary filtering processing result of the current eye movement data group; Return to step "using the weighted moving average algorithm to filter the eye movement data stream once".
6. The method for smoothing and stabilizing eye movement interaction data in a shaking environment according to claim 5, characterized in that: According to the secondary filtering processing result of the current eye movement data group, the weighted moving average algorithm is adjusted, including: Determine the real-time standard deviation of the secondary filtering processing result of the current eye movement data group; Determine whether the real-time standard deviation is greater than a real-time standard deviation threshold, and obtain a first determination result; If the first judgment result is yes, reducing the current window length according to the preset window adjustment amount; If the first judgment result is no, determining whether the real-time standard deviation is equal to a real-time standard deviation threshold to obtain a second judgment result; If the second judgment result is yes, then the current window length is not changed; If the second judgment result is no, the current window length is increased according to the preset window adjustment amount.
7. The method for smoothing and stabilizing eye movement interaction data in a shaking environment according to claim 6, characterized in that: According to the secondary filtering processing result of the current eye movement data group, the Kalman filter algorithm is adjusted, including: Obtain the secondary filtering processing result of the current eye movement data group and the secondary filtering processing results of the two eye movement data groups before the secondary filtering processing result of the current eye movement data group, and determine the speed change rate; Determine whether the speed change rate is greater than a speed change rate threshold, and obtain a third determination result; If the third judgment result is yes, then the process noise covariance is reduced according to the preset process noise covariance adjustment amount; the process noise covariance is a parameter of the prediction model; If the third judgment result is no, then judging whether the speed change rate is equal to the speed change rate threshold value, and obtaining a fourth judgment result; If the fourth judgment result is yes, then the process noise covariance is not changed; If the fourth judgment result is no, increasing the process noise covariance according to a preset process noise covariance adjustment amount; Determine observation residuals; Determine whether the observed residual is greater than an observed residual threshold, and obtain a fifth determination result; If the fifth judgment result is yes, reducing the observation noise covariance according to the preset observation noise covariance adjustment amount; If the fifth judgment result is no, then judging whether the observed residual is equal to the observed residual threshold value, and obtaining a sixth judgment result; If the sixth judgment result is yes, then the observation noise covariance is not changed; If the sixth judgment result is no, the observation noise covariance is increased according to a preset observation noise covariance adjustment amount.
8. A system for smoothing and stabilizing eye movement interaction data in a shaking environment, characterized in that: include: An eye movement data acquisition module, used to obtain eye movement data stream; A weighted moving average algorithm filtering module, used for performing a filtering process on the eye movement data stream using a weighted moving average algorithm; A Kalman filter algorithm filtering module is used to perform secondary filtering on the eye movement data stream after the primary filtering using the Kalman filter algorithm; The dynamic feedback adjustment module is used to adjust the weighted moving average algorithm and the Kalman filter algorithm using a dynamic feedback adjustment algorithm according to the eye movement data stream after secondary filtering.
Citation Information
Cited By
Oil and gas field data acquisition and processing method and system
CN118820700A
Operation control method and system for die-cutting machine
CN119458499A
A die-cutting machine operation control method and system
CN119458499B
Underground pipe detection method based on trajectory reconstruction and storage medium
CN119469741A
