VR Remote Control Method and System Based on Gyroscope Data Fusion

By using the error estimation model in the VR remote control control system to dynamically adjust the zero-bias compensation of the gyroscope, and combining multiple sensor data for attitude analysis and fusion correction, the problem of low attitude estimation accuracy in the prior art is solved, and higher attitude estimation accuracy and system reliability are achieved.

CN120048100BActive Publication Date: 2025-06-27WUXI WEIDA INTELLIGENT ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510517858.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-06-27
Estimated Expiration
2045-04-24

AI Technical Summary

Technical Problem

When faced with changes in environmental factors, the existing VR remote control control methods cannot dynamically adjust the zero-bias compensation of the gyroscope, resulting in low accuracy of the posture estimation results.

Method used

By obtaining the current environment data and sensor data, input it into the pre-trained error estimation model, output the error estimation value and predicted confidence, conduct confidence determination to dynamically adjust the zero-bias compensation, and combine gyroscope and accelerometer data for attitude analysis and fusion correction.

Benefits of technology

It improves the accuracy of pose estimation and the reliability of the system, and can obtain stable and accurate pose estimation results in complex and changeable environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120048100B_ABST
    Figure CN120048100B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of VR remote control technology, and discloses a VR remote control method and system based on gyroscope data fusion. The method includes obtaining current environmental data, gyroscope three-axis data, and accelerometer data; inputting the current environmental data into a pre-trained error estimation model to output an error estimation value and a prediction confidence level; performing a confidence level determination based on the error estimation value and the prediction confidence level to obtain a zero bias estimation result; performing an attitude analysis based on the gyroscope three-axis data and the accelerometer data to obtain a preliminary attitude estimation result; performing dynamic compensation based on the zero bias estimation result and the gyroscope three-axis data to obtain corrected gyroscope data; and performing fusion correction based on the preliminary attitude estimation result and the corrected gyroscope data to output a final attitude estimation result. The present method has the following effects: The present method can improve the accuracy of attitude estimation in VR remote control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of VR remote control technology, and particularly to a VR remote control method and system based on gyroscope data fusion. Background Art

[0002] In recent years, virtual reality (VR) technology has made remarkable progress, providing users with immersive experiences. In a VR system, the remote control, as one of the main tools for users to interact with the virtual world, its accuracy and response speed directly affect the quality of the user experience. To improve the control accuracy of the remote control, sensors such as gyroscopes are integrated to sense the changes in the user's movements and postures. By fusing data from different sensors, more accurate attitude estimation can be achieved, thereby improving the accuracy of remote control operations. However, in practical applications, due to the influence of environmental factors such as temperature, humidity, and mechanical vibration, the sensor data will be interfered, resulting in deviations in the attitude estimation results.

[0003] In an existing technology, a method for attitude estimation based on gyroscope data fusion is to use the Extended Kalman Filter (EKF) algorithm. This method first initializes the sensor parameters, including setting a fixed zero bias value to compensate for the inherent drift error of the gyroscope. Then, using the reference information provided by the accelerometer and magnetometer, combined with the angular velocity data output by the gyroscope, the attitude matrix is updated in real time through a filtering algorithm. The specific steps are as follows: First, obtain the initial attitude information, which depends on the gravity direction and geomagnetic field direction measured by the accelerometer and magnetometer. Next, input this information into the filter, while considering the angular velocity measured by the gyroscope, and compensate according to the preset fixed zero bias value. On this basis, the filter continuously iterates and calculates to update the attitude estimation result. This method can effectively integrate multi-source sensing information and provide relatively stable and continuous attitude tracking capabilities.

[0004] Although the above method improves the accuracy of attitude estimation to a certain extent, the method of compensating with a fixed zero bias value has obvious limitations. Especially when the influence of environmental factors is not fully considered, it will lead to low accuracy of attitude estimation results. The derivation process shows that when environmental conditions change, such as the temperature rising or the mechanical structure deforming due to heat, the zero bias of the gyroscope will change accordingly. However, the existing method does not dynamically adjust this parameter, making the originally set zero bias compensation no longer applicable, thus causing a large cumulative error. In addition, the increase in humidity will also affect the working state of electronic components, further exacerbating the measurement error. Mechanical vibration will also interfere with the sensor readings, especially in a high-frequency vibration environment, this interference is particularly significant. Due to not considering these dynamic change factors, the existing compensation mechanism cannot correct the errors caused by external conditions in time, ultimately resulting in the attitude estimation results deviating from the true value, reducing the reliability and accuracy of the entire system, and causing low accuracy of VR remote control. Summary of the Invention

[0005] The present invention provides a VR remote control method and system based on gyroscope data fusion to improve the accuracy of VR remote control.

[0006] In a first aspect, to solve the above technical problems, the present invention provides a VR remote control method based on gyroscope data fusion, including:

[0007] Obtain the current environmental data, gyroscope three-axis data, and accelerometer data;

[0008] Input the current environmental data into a pre-trained error estimation model, and output an error estimation value and a prediction confidence level;

[0009] Perform a confidence determination based on the error estimation value and the prediction confidence level to obtain a zero bias estimation result;

[0010] Perform attitude analysis based on the gyroscope three-axis data and the accelerometer data to obtain a preliminary attitude estimation result;

[0011] Perform dynamic compensation based on the zero bias estimation result and the gyroscope three-axis data to obtain corrected gyroscope data;

[0012] Perform fusion correction based on the preliminary attitude estimation result and the corrected gyroscope data, and output a final attitude estimation result.

[0013] In an optional implementation manner, the training process of the error estimation model includes:

[0014] Construct an error estimation model based on historical environmental data and historical zero bias errors, train the model, and determine that the training is complete when the number of training times reaches the preset upper limit or it is detected that the loss function of the model meets the conditions, obtaining the trained model;

[0015] Input the current environmental data into the trained model to obtain an error estimation value and a prediction confidence level.

[0016] In an alternative embodiment, the confidence level determination based on the error estimation value and the prediction confidence level to obtain a zero bias estimation result includes:

[0017] When the prediction confidence level is greater than a preset confidence level threshold, use the error estimation value as the zero bias estimation result and do not perform subsequent steps;

[0018] When the prediction confidence level is less than the confidence level threshold, obtain supplementary environmental data;

[0019] Standardize the supplementary environmental data to obtain standardized environmental data;

[0020] Retrain the error estimation model based on the standardized environmental data to obtain an optimized model;

[0021] Input the current environmental data into the optimized model, and re - perform the confidence level determination on the output confidence level and zero bias error until the confidence level requirement is met.

[0022] In an alternative embodiment, the attitude analysis based on the gyroscope three - axis data and the accelerometer data to obtain a preliminary attitude estimation result includes:

[0023] Perform low - pass filtering on the gyroscope three - axis data to obtain a noise - reduced angular velocity;

[0024] Perform discrete integration on the noise - reduced angular velocity to obtain an attitude angle change amount;

[0025] Perform gravity vector decomposition on the accelerometer data to obtain the device tilt angle;

[0026] Perform weighted fusion on the attitude angle change amount and the device tilt angle to obtain a stable attitude angle;

[0027] Perform quaternion conversion based on the stable attitude angle to obtain a preliminary attitude estimation result.

[0028] In an alternative embodiment, the dynamic compensation based on the zero bias estimation result and the gyroscope three - axis data to obtain corrected gyroscope data includes:

[0029] Perform mean filtering based on the zero-bias estimation result to obtain a zero-bias correction result;

[0030] Calculate the corrected angular velocity through the following formula:

[0031]

[0032] where represents the corrected angular velocity, represents the original angular velocity, represents the temperature drift coefficient, represents the temperature change, represents the zero-bias correction result;

[0033] Perform outlier detection based on the corrected angular velocity to obtain corrected gyroscope data.

[0034] In an alternative embodiment, the performing fusion correction based on the preliminary attitude estimation result and the corrected gyroscope data and outputting a final attitude estimation result includes:

[0035] Calculate an attitude residual based on the preliminary attitude estimation result and the corrected gyroscope data to obtain a rotation difference;

[0036] Perform weight allocation based on the rotation difference to obtain a dynamic fusion coefficient;

[0037] Perform linear interpolation on the preliminary attitude estimation result based on the dynamic fusion coefficient to obtain a final attitude estimation result.

[0038] In an alternative embodiment, the decomposing the gravity vector based on the accelerometer data to obtain the device tilt angle includes:

[0039] Perform mean filtering on the accelerometer data to obtain a low-frequency gravity component;

[0040] Perform state analysis on the low-frequency gravity component to obtain a motion state;

[0041] When the motion state is a moving state, perform motion acceleration compensation on the low-frequency gravity component to obtain a dynamic gravity projection vector;

[0042] When the motion state is a static state, calculate the tilt angle based on the low-frequency gravity component to obtain a static tilt angle;

[0043] Perform weighted fusion on the dynamic gravity projection vector and the static tilt angle to obtain the device tilt angle.

[0044] In a second aspect, the present invention provides a VR remote control system based on gyroscope data fusion, including:

[0045] A data acquisition module for acquiring current environmental data, three-axis gyroscope data, and accelerometer data;

[0046] An error estimation module for inputting the current environmental data into a pre-trained error estimation model to output an error estimation value and a prediction confidence level;

[0047] A zero bias result module for performing confidence determination based on the error estimation value and the prediction confidence level to obtain a zero bias estimation result;

[0048] An attitude analysis module for performing attitude analysis based on the three-axis gyroscope data and the accelerometer data to obtain a preliminary attitude estimation result;

[0049] A dynamic compensation module for performing dynamic compensation based on the zero bias estimation result and the three-axis gyroscope data to obtain corrected gyroscope data;

[0050] A fusion correction module for performing fusion correction based on the preliminary attitude estimation result and the corrected gyroscope data and outputting a final attitude estimation result.

[0051] In a third aspect, the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the VR remote control method based on gyroscope data fusion described in any one of the above is implemented.

[0052] In a fourth aspect, the present invention further provides a computer-readable storage medium. The computer-readable storage medium includes a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute the VR remote control method based on gyroscope data fusion described in any one of the above.

[0053] Compared with the prior art, the present invention has the following beneficial effects:

[0054] (1) The process of acquiring current environmental data, three-axis gyroscope data, and accelerometer data ensures a comprehensive understanding of the device's operating environment and its own motion state. High-quality data acquisition provides a reliable basis for subsequent analysis and helps improve the accuracy and reliability of the final attitude estimation result.

[0055] (2) Inputting the current environmental data into a pre-trained error estimation model to output an error estimation value and a prediction confidence level. By using a pre-trained model to process environmental data, factors affecting the accuracy of sensor readings can be effectively identified, and corresponding error estimation values and confidence levels can be given. This process not only improves the understanding of potential errors but also provides an important basis for subsequent confidence determination.

[0056] (3)Perform confidence determination based on the error estimation value and the prediction confidence level to obtain a zero-bias estimation result. This step realizes the effective estimation of the sensor zero-bias through the comprehensive analysis of the error estimation value and its confidence level. Accurate zero-bias estimation is crucial for eliminating systematic biases in sensor measurements and can significantly improve the accuracy of attitude estimation.

[0057] (4)Perform attitude analysis based on the gyroscope three-axis data and the accelerometer data to obtain a preliminary attitude estimation result. Combining multiple sensor data for attitude analysis can make full use of their respective advantages and provide more comprehensive attitude information. This method not only improves the accuracy of attitude estimation but also enhances the robustness of the system, enabling it to operate stably in different working environments.

[0058] (5)Perform dynamic compensation based on the zero-bias estimation result and the gyroscope three-axis data to obtain corrected gyroscope data. Using dynamic compensation technology to correct gyroscope data can effectively eliminate the influence of error sources such as zero-bias, thereby improving the reliability of gyroscope data. The gyroscope data after dynamic compensation is closer to the true value and provides high-quality input for subsequent attitude fusion correction.

[0059] (6)Perform fusion correction based on the preliminary attitude estimation result and the corrected gyroscope data, and output the final attitude estimation result. By fusing the preliminary attitude estimation result with the corrected gyroscope data, the accuracy of attitude estimation can be further optimized. This method makes full use of information from different sources, improves the accuracy and stability of attitude estimation, and ensures reliable attitude estimation results in complex and changing working environments. Description of the Drawings

[0060] Figure 1 is a schematic flowchart of a VR remote control method based on gyroscope data fusion provided by the first embodiment of the present invention;

[0061] Figure 2 is a schematic structural diagram of a VR remote control system based on gyroscope data fusion provided by the second embodiment of the present invention. Detailed Embodiments

[0062] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0063] Refer toFigure 1 , the first embodiment of the present invention provides a VR remote control method based on gyroscope data fusion, including the following steps:

[0064] S11, obtain the current environmental data, gyroscope three-axis data, and accelerometer data;

[0065] S12, input the current environmental data into a pre-trained error estimation model, and output an error estimation value and a prediction confidence level;

[0066] S13, perform a confidence level determination based on the error estimation value and the prediction confidence level to obtain a zero bias estimation result;

[0067] S14, perform an attitude analysis based on the gyroscope three-axis data and the accelerometer data to obtain a preliminary attitude estimation result;

[0068] S15, perform dynamic compensation based on the zero bias estimation result and the gyroscope three-axis data to obtain corrected gyroscope data;

[0069] S16, perform fusion correction based on the preliminary attitude estimation result and the corrected gyroscope data, and output a final attitude estimation result.

[0070] In step S11, the current environmental data, gyroscope three-axis data, and accelerometer data are obtained.

[0071] In one implementation, the current environmental data is collected by the temperature and humidity sensors and the barometric pressure sensor built in the device, transmitted in the form of I2C digital signals, and stored as a 32-bit floating-point array containing timestamps (for example, [25.5, 45.2, 1013] corresponding to temperature in °C, humidity in %, and barometric pressure in hPa respectively), which is mainly used to compensate for the zero-point drift of the sensors caused by environmental factors; the gyroscope three-axis data is output by the MEMS gyroscope at a sampling rate of 200 Hz through the SPI interface and stored in the original value in the 16-bit binary complement format (when the range is ±2000 dps, it corresponds to 0.065 ° / s / LSB), and these data are used to calculate the angular velocity change of the device and update the attitude quaternion; the accelerometer data is collected by the on-board ADC with a 16-bit resolution to convert the analog signal into a three-dimensional floating-point array in standard gravity unit g (such as [0.12, 0.98, 0.15]), which is used for both the direct calculation of the tilt angle under static conditions and the fusion with the gyroscope data to form the input source for the 9-axis attitude solution of the IMU. After the three types of data are aligned with the time reference through the hardware time synchronization module, they are written into a circular buffer with a length of 50 frames to provide a time-domain continuous multi-modal input for the subsequent dynamic / static state classifier.

[0072] In one implementation, the current environmental data includes data in two dimensions of environmental temperature and magnetic field strength. The environmental temperature is measured by a PT100 platinum resistance temperature sensor with a resolution of 0.1 °C, and the magnetic field strength is collected by a three-axis magnetometer with an accuracy of ±0.15 μT. According to the time-varying characteristics of the environmental parameters (for example, when the temperature drift rate ≤ 0.5 °C / min, a sampling rate of 1 Hz is set; when a step change of 500 μT occurs in the magnetic field at the moment of motor start and stop, 100 Hz transient capture is enabled), the storage efficiency and the requirement for feature retention are balanced through a dynamic adjustment mechanism (in a steady-state environment, 4:1 lossy compression is enabled to reduce the storage volume by 50%, and 24-bit raw data records are maintained during the transient stage). When recording data, a timestamp with μs-level accuracy, the device azimuth angle, and the sensor health status flag bit are appended, and finally, the environmental dataset including metadata is stored in the HDF5 hierarchical format. This dataset will be used as the reference input source for subsequent sensor error compensation and joint criterion for motion state determination.

[0073] In step S12, the current environmental data is input into a pre-trained error estimation model to output an error estimation value and a prediction confidence level.

[0074] In one implementation, the training process of the error estimation model includes: constructing an error estimation model based on historical environmental data and historical bias errors, training the model, and determining that the training is completed when the number of training times reaches the preset upper limit or it is detected that the loss function of the model meets the conditions, obtaining the trained model; inputting the current environmental data into the trained model to obtain an error estimation value and a prediction confidence level.

[0075] It should be noted that the bias error estimation value refers to the system inherent deviation amount of the sensor under static reference conditions (such as when there is no external acceleration or angular velocity input). For example, the bias of a gyroscope is manifested as non-zero constant values in the three-axis outputs (such as [0.03, -0.12, 0.08] ° / s). Its function is to eliminate the cumulative error of the sensor inherent deviation on dynamic measurements (such as attitude angle integration) through a compensation algorithm. The prediction confidence level is a probabilistic evaluation index output by the model (ranging from 0 to 1), which characterizes the credibility of the current error estimation value. For example, a confidence level of 0.95 means that the model believes that the probability that the estimated error falls within the range of ±0.1 ° / s is 95%. This parameter is used to dynamically adjust the weight allocation of the sensor fusion algorithm (such as enabling redundant sensor cross-validation at low confidence levels).

[0076] In one implementation, the error estimation model is constructed by combining a double-layer bidirectional LSTM network with an attention mechanism. The input layer is the time-series data of environmental parameters (a 60-second sliding window of temperature and magnetic field intensity), and the output layer is the parameters of the Gaussian mixture model (the mean corresponds to the zero-bias error, and the variance is related to the confidence level). During training, the batch size is set to 64, the initial learning rate is 0.001 (using the cosine annealing decay strategy), the weighted mean square error loss function is used (the confidence weight coefficient is set to 2.0), and a regularization layer with a Dropout rate of 0.3 is added. The training termination condition is that the loss decrease amplitude of the validation set is less than 1e-5 for 10 consecutive epochs, or the total number of training times reaches 500 times (whichever is triggered first). The final model achieves performance indicators of an average absolute error of 0.05° / s and a confidence calibration error of less than 0.02 on the test set.

[0077] It should be noted that the historical data is collected from the multi-device calibration experiment environment, including the original output of sensors under a temperature cycling chamber (-40°C to 85°C stepped by 5°C) and a magnetically controllable chamber. The true zero-bias value is recorded by a high-precision turntable (the reference accuracy reaches 0.001° / s). The following steps are performed during data processing: outlier removal (filtering transient interference by the 3σ principle, where σ represents the data standard deviation); time-series alignment of environmental parameters and zero-bias error (interpolating to fill in missing points); sliding window segmentation (window length of 60 seconds, step size of 10 seconds); data augmentation (adding ±5% temperature noise and time-domain random jitter); 5) normalization processing (scaling environmental parameters to [-1, 1], and normalizing the zero-bias error according to the range). The final dataset is divided into a training set, a validation set, and a test set in a ratio of 8:1:1.

[0078] In step S13, a confidence determination is made based on the error estimation value and the prediction confidence level to obtain a zero-bias estimation result.

[0079] In one implementation, when the prediction confidence level is greater than a preset confidence threshold, the error estimation value is used as the zero-bias estimation result, and no subsequent steps are performed; when the prediction confidence level is less than the confidence threshold, supplementary environmental data is obtained; the supplementary environmental data is standardized to obtain standardized environmental data; the error estimation model is retrained based on the standardized environmental data to obtain an optimized model; the current environmental data is input into the optimized model, and a confidence determination is made again on the output confidence level and zero-bias error until the confidence requirement is met.

[0080] It should be noted that the core purpose of setting the confidence threshold is to balance the reliability requirements of the estimation results and the consumption of computing resources. When the predicted confidence is higher than the threshold, it indicates that the current environmental conditions are within the coverage of model training, and the error estimation value can be directly adopted; if it is lower than the threshold, it indicates that environmental mutations or sensor anomalies lead to insufficient model generalization ability, and the supplementary data acquisition process needs to be triggered. The confidence threshold is set to 0.85, that is, when the confidence is greater than 0.85, the zero-bias estimation result is directly output to avoid redundant calculations.

[0081] In one implementation, the supplementary environmental data is limited to two categories: environmental temperature and magnetic field intensity, and its acquisition method is based on a precise sensing device and specific data association logic. The environmental temperature data is collected in real time by A-class precision thermocouples deployed distributively. The measurement error of this device is controlled within ±0.3°C. When deploying, multiple sets of monitoring points are set within a radius of 1 meter centered on the device, and finally the average temperature of each point is taken as the environmental characterization value. The magnetic field intensity data is captured by a three-axis fluxgate magnetometer. This device has a resolution of 0.1 μT and records the transient magnetic field disturbance waveform at a high sampling rate of 10 kHz. At the same time, through timestamp alignment technology, the magnetic field data is associated with the motor start-stop events in the device operation log. All the collected data is strictly screened during the storage process, and the humidity parameter interference is clearly excluded, and only the triple sequence composed of temperature, magnetic field intensity, and precise timestamp is retained as the effective data set.

[0082] It should be noted that the standardization processing process realizes the standardized expression of environmental parameters through multi-stage data conversion. First, the data cleaning operation is performed, and hard filtering rules are set according to the physical measurement range of the sensor, including removing abnormal data points where the temperature exceeds 150°C or the magnetic field intensity breaks through 2000 μT. Subsequently, the baseline alignment process is carried out. The original temperature data is converted into the offset relative to the standard laboratory environment of 25°C, and at the same time, the magnetic field intensity data is mapped to the geomagnetic reference system to eliminate the influence of geographical differences. Next, the normalization mapping is implemented. The temperature parameter is linearly scaled to the range of 0 to 1 according to its working temperature range from -40°C to 85°C, and the magnetic field intensity is dynamically proportionally adjusted according to the maximum fluctuation range of ±800 μT in the historical record. Finally, through the time series alignment technology, a sliding average filter is applied to the temperature and magnetic field data using a 1-millisecond time window to effectively suppress the interference of high-frequency noise on the data quality.

[0083] It should be noted that the model retraining adopts an incremental learning framework to achieve dynamic optimization, and its complete process includes five key links. In the initial stage, the newly obtained supplementary environmental data is fused and amplified with the original training set, with the focus on maintaining the continuity and integrity of the time series. In the parameter adjustment link, by freezing the weight parameters of the underlying feature extraction layer of the neural network, only the fully connected parameters of the output layer are fine-tuned to retain the existing knowledge structure. The learning rate setting adopts a dynamic regulation strategy, reducing the initial learning rate to one-tenth of the original value (such as 0.0001), and introducing an early stopping mechanism to automatically terminate the training when the validation loss has not improved for 3 consecutive training cycles. In the validation stage, 20% of the supplementary data is randomly selected to construct a temporary validation set, which is used to evaluate the generalization ability and stability of the model on unknown data. In the final update decision link, a clear performance improvement threshold is set. When the average confidence improvement of the optimized model on the validation set exceeds 0.15 (for example, from 0.72 to above 0.88), the model replacement program is triggered and the threshold judgment logic of the system is updated synchronously.

[0084] In step S14, attitude analysis is performed based on the three-axis gyroscope data and the accelerometer data to obtain a preliminary attitude estimation result.

[0085] In one implementation, low-pass filtering is performed on the three-axis gyroscope data to obtain a noise-reduced angular velocity; discrete integration is performed on the noise-reduced angular velocity to obtain an attitude angle change amount; gravity vector decomposition is performed on the accelerometer data to obtain a device tilt angle; weighted fusion is performed on the attitude angle change amount and the device tilt angle to obtain a stable attitude angle; and quaternion conversion is performed on the stable attitude angle to obtain a preliminary attitude estimation result.

[0086] It should be noted that low-pass filtering realizes data purification by filtering out high-frequency noise components in the gyroscope signal. Its core process is to set a specific frequency threshold and use a classic filter for signal processing. Taking an industrial-grade gyroscope as an example, after selecting the cut-off frequency parameter in the design stage, the original angular velocity sequence is calculated point by point through a multi-order difference equation, and the smoothed noise-reduced angular velocity is output. For example, for the interference signal generated by the high-frequency vibration of the drone motor, the fluctuation amplitude of the angular velocity after filtering can be reduced from plus or minus 3 degrees per second of the original data to plus or minus 0.5 degrees per second, effectively retaining the low-frequency component of the actual rotation of the device. The noise-reduced angular velocity specifically refers to the angular velocity data that can more accurately reflect the actual motion state of the device after this processing.

[0087] It should be noted that the discrete integral obtains the change in the rotation angle of the device by multiplying the noise-reduced angular velocity by the time interval and then accumulating. Specifically, during implementation, with a fixed sampling period as the time reference, continuous accumulation operations are performed on the three-axis angular velocity data in the time dimension. For example, when the device rotates continuously around a certain axis, the angular velocity data collected every 20 milliseconds can be integrated to calculate the actual rotation angle within this time period. It should be noted that due to the existence of the inherent error of the sensor, long-term integration will cause the angular deviation to gradually accumulate. Therefore, it is necessary to periodically correct the error through the accelerometer data. In a typical scenario, an angular velocity of 0.5 degrees per second around a certain axis will generate an angular offset of 1 degree after 2 seconds of integration.

[0088] It should be noted that weighted fusion realizes data optimization by dynamically allocating the credibility weights of the gyroscope integration result and the accelerometer tilt angle. The core of this strategy is to automatically adjust the contribution ratio of the two types of sensors according to the motion state of the device. For example, when rotating at high speed, a higher weight is given to the gyroscope to maintain dynamic response, while when stationary or moving at low speed, the weight ratio of the accelerometer is increased to improve static accuracy.

[0089] It should be noted that quaternion conversion maps the fused stable attitude angle into a four-dimensional hypercomplex number form, which effectively avoids the dimensional locking defect of traditional Euler angles. The conversion process is based on the spatial geometric relationship between the rotation angle and the rotation axis, and the four components of the quaternion are constructed through trigonometric function operations. For example, when the device detects a 30-degree rotation around the X axis, the generated quaternion will reflect the relationship between the rotation angle and the axis direction through the proportional coefficient. The preliminary attitude estimation result, in this mathematical representation form, provides singularity-free and high-precision input data for the subsequent attitude resolution algorithm, and its physical meaning is to completely describe the instantaneous azimuth state of the device in three-dimensional space.

[0090] In one implementation, mean filtering is performed on the accelerometer data to obtain the low-frequency gravity component; state analysis is performed on the low-frequency gravity component to obtain the motion state; when the motion state is the motion state, motion acceleration compensation is performed on the low-frequency gravity component to obtain the dynamic gravity projection vector; when the motion state is the stationary state, tilt angle calculation is performed on the low-frequency gravity component to obtain the static tilt angle; the dynamic gravity projection vector and the static tilt angle are weighted and fused to obtain the device tilt angle.

[0091] It should be noted that by calculating the average value of the accelerometer data within a specific time window, the low-frequency component of the gravitational acceleration is effectively separated. For example, the original acceleration data collected by VR contains high-frequency vibration interference (such as handheld shaking). After performing mean filtering using a sliding window of 10 sampling points, the gravitational component representing the overall attitude of the device can be obtained. This process can eliminate instantaneous impact noise (such as the generated spike signals) and ensure the stability of the gravitational vector.

[0092] It should be noted that based on the fluctuation characteristics of the low-frequency gravitational component, it is determined whether the device is in a stationary or moving state. The specific method is as follows: Calculate the variance value of the gravitational component within a 3-second time window. If the variance continuously remains below a preset threshold (such as 0.05g², where g represents the gravitational acceleration), it is determined to be in a stationary state; conversely, if the variance exceeds the threshold and lasts for more than 0.5 seconds, it is determined to be in a moving state. For example, when the user is walking with a VR device, the gravitational component will show periodic fluctuations, triggering the recognition of the moving state.

[0093] It should be noted that when the device is in a moving state, the accelerometer data will be mixed with linear motion acceleration (such as the inertial force generated by a sudden brake of a car). At this time, high-pass filtering technology is used to strip the dynamic interference and retain the gravitational projection vector. The compensation process estimates the direction of the motion acceleration in real time and reversely cancels the interference component from the original data. For example, when a drone makes a sharp turn, the system reduces the dynamic error of the gravitational vector from ±15° to ±3° through the compensation algorithm.

[0094] It should be noted that in a stationary state, the gravitational component can be directly decomposed into the axes of the device coordinate system, and the tilt angle is calculated through trigonometric functions. For example, when the gyroscope is placed flat on the table, the gravitational component of the Z-axis is 1g, and the components of the XY-axis are 0. At this time, the tilt angle is 0°; if the component of the X-axis is detected to be 0.5g, the device is tilted 30° around the Y-axis. Here, g represents the gravitational acceleration.

[0095] It should be noted that in the moving state, the dynamic gravitational projection vector accounts for 70% of the weight, and the static tilt angle accounts for 30%, ensuring the continuity of attitude tracking during the maneuvering process. The static tilt angle accounts for 90% of the weight, and the dynamic data only serves as a smoothing aid.

[0096] In step S15, dynamic compensation is performed according to the zero-bias estimation result and the three-axis data of the gyroscope to obtain corrected gyroscope data.

[0097] In one implementation, mean filtering is performed according to the zero-bias estimation result to obtain a zero-bias correction result;

[0098] The corrected angular velocity is calculated by the following formula:

[0099]

[0100] where Indicates the corrected angular velocity, Indicates the original angular velocity, Indicates the temperature drift coefficient, Indicates the temperature change amount, Indicates the zero-bias correction result;

[0101] Perform outlier detection based on the corrected angular velocity to obtain corrected gyroscope data.

[0102] It should be noted that mean filtering eliminates the influence of random fluctuations on the systematic error by calculating the average value of the zero-bias estimation result within a set time window. The selection of the window size directly affects the filtering effect and response speed, and is configured according to the dynamic characteristics of the device. For example, in an industrial-grade inertial measurement unit, if a window of 50 sampling points (corresponding to a time span of 0.5 seconds) is set, the fluctuation amplitude of the zero-bias estimation in a vibrating environment can be reduced from the original plus or minus 0.5 degrees per second to plus or minus 0.1 degrees per second. If the window is too small, noise suppression will be insufficient, and if it is too large, the system's response to the actual change of the zero-bias will be delayed.

[0103] It should be noted that the original angular velocity involved in the formula refers to the measured value directly output by the gyroscope, which includes the superposition of the true rotation signal and the systematic error. The temperature drift coefficient characterizes the rate of change of the sensor error with temperature and is obtained through experimental calibration of the temperature compensation module, with a value of 0.8. The temperature drift coefficient represents the relative change rate of the gyroscope zero-bias per 1°C change in temperature, with the unit of 1 / °C. The temperature change amount is the temperature difference between two effective measurements, and its value is collected by the temperature sensor, with the unit of °C. The corrected angular velocity formula dynamically compensates for the angular velocity drift caused by temperature through the product of the temperature drift coefficient and the temperature change amount. The product of the two represents the relative change rate of the angular velocity caused by temperature change, which is a dimensionless quantity. The zero-bias correction result is the estimated value of the systematic error processed by mean filtering and is used to offset the inherent bias of the gyroscope, with the unit consistent with the angular velocity unit. For example, when the ambient temperature rises and causes the zero-bias to increase by 0.2 degrees per second, the correction term will accurately deduct this deviation amount to ensure that the output angular velocity only reflects the actual motion.

[0104] In one implementation, outlier detection first calculates the statistical mean and standard deviation of the corrected angular velocity within a sliding time window, and then identifies the outlier data based on the three - standard - deviation principle. The specific process includes: taking the corrected angular velocity of the last 30 sampling points to form a detection window; calculating the arithmetic mean of the window data as the reference value; calculating the absolute deviation of each data point from the reference value and obtaining the standard deviation; marking all data points with deviations exceeding three standard deviations as outliers; and using the forward recursive interpolation method to replace the outliers with data. For example, when the VR device encounters electromagnetic interference and a data spike of the angular velocity of a certain axis suddenly appears 10 times beyond the normal range, the detection system will identify it as an anomaly and replace it with the linear interpolation result of the adjacent data before and after to ensure the stability of attitude calculation.

[0105] In step S16, based on the preliminary attitude estimation result and the corrected gyroscope data, fusion correction is performed to output the final attitude estimation result.

[0106] In one implementation, attitude residual calculation is performed based on the preliminary attitude estimation result and the corrected gyroscope data to obtain the rotation difference; weight distribution is performed according to the rotation difference to obtain the dynamic fusion coefficient; and linear interpolation is performed on the preliminary attitude estimation result according to the dynamic fusion coefficient to obtain the final attitude estimation result.

[0107] It should be noted that the rotation difference is used to quantify the deviation between the preliminary attitude estimation result and the attitude calculated from the gyroscope data. The specific process is as follows: First, the preliminary attitude estimation result is aligned with the real - time calculated attitude obtained by integrating the corrected gyroscope data, and then the Euler angle difference in three - dimensional space or the modulus of the quaternion product of the two is calculated. For example, in the attitude control of an unmanned aerial vehicle, if the preliminary attitude provided by the visual SLAM system is 30° around the Z - axis, and the result calculated by gyroscope integration is 28.5°, then the rotation difference is 1.5°. The key parameters include the time alignment window (such as 200 ms) and the difference normalization threshold (such as setting the maximum tolerance deviation to 5°), and when the threshold is exceeded, the recalibration mechanism will be triggered.

[0108] It should be noted that the dynamic fusion coefficient dynamically adjusts the credibility weight of the data source according to the magnitude of the rotation difference. The distribution strategy uses a piece - wise function: when the difference is less than 2°, 80% weight is given to the preliminary attitude estimation; when the difference is in the range of 2° to 8°, the weight decreases linearly from 80% to 30%; when the difference exceeds 8°, it completely depends on the gyroscope data. For example, when the VR device is rapidly turned by the user and the difference reaches 6° due to visual tracking delay, the system will adjust the fusion coefficient to 45% and give priority to the high - frequency response characteristics of the gyroscope. The core parameters include the weight turning - point threshold, the attenuation slope coefficient (such as reducing the weight by 8% per degree of difference), and the minimum guaranteed weight (not less than 20% to prevent the data source from completely failing).

[0109] It should be noted that linear interpolation weights and synthesizes two-way attitude data based on dynamic fusion coefficients. For attitude data in quaternion form, spherical linear interpolation is used to ensure the shortest rotation path; for Euler angles, axial weighting is directly performed. In specific implementation, the system updates the interpolation result at a period of 10 ms. For example, when the fusion coefficient is 0.6, the final attitude = 0.6 × visual attitude + 0.4 × gyroscope attitude. If the visual system fails briefly due to occlusion, the interpolation algorithm will smoothly transition the weight from 0.8 to 0.2 within 50 ms to avoid sudden changes in the attitude of the robotic arm. The key parameters include the interpolation period (which needs to match the sensor sampling rate), the type of interpolation curve (such as linear / exponential smoothing), and the tolerance range for attitude data format conversion (less than 0.01 radians).

[0110] In summary, the present invention discloses a VR remote control method based on gyroscope data fusion, aiming to improve the accuracy of attitude estimation through a series of steps. First, the method involves obtaining current environmental data, gyroscope three-axis data, and accelerometer data to ensure a comprehensive understanding of the device's operating environment and its own motion state. Subsequently, the current environmental data is input into a pre-trained error estimation model, and an error estimation value and a prediction confidence level are output. This process utilizes a model constructed from historical environmental data and zero-bias error, providing a basis for identifying factors that affect the accuracy of sensor readings and giving corresponding error estimation values and confidence levels.

[0111] Next, confidence determination is performed based on the error estimation value and the prediction confidence level to obtain a zero-bias estimation result. This step realizes the effective estimation of the sensor zero-bias through the comprehensive analysis of the error estimation value and its confidence level, which is crucial for eliminating systematic biases in sensor measurements. After obtaining the zero-bias estimation result, the next step is to perform attitude analysis based on the gyroscope three-axis data and the accelerometer data to obtain a preliminary attitude estimation result. This step combines the data of multiple sensors, making full use of their respective advantages to provide more comprehensive attitude information, not only improving the accuracy of attitude estimation but also enhancing the robustness of the system, enabling it to operate stably in different working environments.

[0112] To further optimize the attitude estimation results, this method adopts a dynamic compensation technique to correct the gyroscope data, eliminate the influence of error sources such as zero bias, and improve the reliability of the gyroscope data. Specifically, this process includes performing mean filtering based on the zero bias estimation result to obtain a zero bias correction result, and calculating the corrected angular velocity using a specific formula. After dynamic compensation, the gyroscope data is closer to the true value, providing high-quality input for subsequent attitude fusion correction. Finally, fusion correction is performed based on the preliminary attitude estimation result and the corrected gyroscope data to output the final attitude estimation result. By fusing information from different sources, this method further improves the accuracy and stability of attitude estimation, and reliable attitude estimation results can be obtained even in complex and changing working environments.

[0113] Referring to Figure 2 , the second embodiment of the present invention provides a VR remote control system based on gyroscope data fusion, including:

[0114] A data acquisition module for acquiring current environmental data, gyroscope three-axis data, and accelerometer data;

[0115] An error estimation module for inputting the current environmental data into a pre-trained error estimation model to output an error estimation value and a prediction confidence level;

[0116] A zero bias result module for performing confidence determination based on the error estimation value and the prediction confidence level to obtain a zero bias estimation result;

[0117] An attitude analysis module for performing attitude analysis based on the gyroscope three-axis data and the accelerometer data to obtain a preliminary attitude estimation result;

[0118] A dynamic compensation module for performing dynamic compensation based on the zero bias estimation result and the gyroscope three-axis data to obtain corrected gyroscope data;

[0119] A fusion correction module for performing fusion correction based on the preliminary attitude estimation result and the corrected gyroscope data to output the final attitude estimation result.

[0120] It should be noted that the VR remote control system based on gyroscope data fusion provided in the embodiment of the present invention is used to execute all the process steps of the VR remote control method based on gyroscope data fusion in the above embodiment, and the working principles and beneficial effects of the two correspond one by one, so they will not be elaborated here.

[0121] An embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a data acquisition program. When the processor executes the computer program, the steps in the above embodiments of each VR remote control method based on gyroscope data fusion are implemented, such as Figure 1 the step S11 shown. Alternatively, when the processor executes the computer program, the functions of each module / unit in the above device embodiments are implemented, such as the data acquisition module.

[0122] Exemplarily, the computer program may be divided into one or more modules / units. The one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0123] The electronic device may be a computing device such as a desktop computer, a notebook, a palm computer, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the above components are only examples of the electronic device and do not constitute a limitation on the electronic device. It may include more or fewer components than the above, or combine certain components, or different components. For example, the electronic device may further include input / output devices, network access devices, a bus, etc.

[0124] The so-called processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The processor is the control center of the electronic device and connects various parts of the entire electronic device through various interfaces and lines.

[0125] The memory can be used to store the computer program and / or module. By running or executing the computer program and / or module stored in the memory, and by invoking the data stored in the memory, the processor implements various functions of the electronic device. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0126] Among them, if the modules / units integrated in the electronic device are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-described embodiment methods of the present invention, it can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, an executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disc, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0127] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0128] The specific embodiments described above further elaborate on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. In particular, for those skilled in the art, any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A VR remote control method based on gyroscope data fusion, characterized in that: include: Get current environment data, gyroscope three-axis data and accelerometer data; Inputting the current environment data into a pre-trained error estimation model, and outputting an error estimation value and a prediction confidence; Performing a confidence determination based on the error estimate and the prediction confidence to obtain a zero bias estimation result; Performing attitude analysis based on the gyroscope three-axis data and the accelerometer data to obtain a preliminary attitude estimation result; Perform dynamic compensation according to the zero bias estimation result and the gyroscope three-axis data to obtain corrected gyroscope data; According to the preliminary attitude estimation result and the corrected gyroscope data, a fusion correction is performed to output a final attitude estimation result, specifically including: Performing attitude residual calculation based on the preliminary attitude estimation result and the corrected gyroscope data to obtain a rotation difference; Performing weight allocation according to the rotation difference to obtain a dynamic fusion coefficient; The preliminary posture estimation result is linearly interpolated according to the dynamic fusion coefficient to obtain a final posture estimation result.

2. The VR remote control method based on gyroscope data fusion according to claim 1 is characterized in that: The training process of the error estimation model includes: An error estimation model is constructed based on historical environmental data and historical zero bias errors, and the model is trained. When the number of training times reaches a preset upper limit or the loss function of the model is detected to meet the conditions, the training is considered complete, and a trained model is obtained. The current environment data is input into the trained model to obtain an error estimate and a prediction confidence.

3. The VR remote control method based on gyroscope data fusion according to claim 1 is characterized in that: The performing confidence determination according to the error estimate value and the prediction confidence to obtain a zero bias estimation result includes: When the prediction confidence is greater than a preset confidence threshold, the error estimate is used as a zero bias estimation result, and subsequent steps are not performed; When the prediction confidence is less than the confidence threshold, acquiring supplementary environmental data; Standardizing the supplementary environmental data to obtain standardized environmental data; Retraining the error estimation model according to the standardized environmental data to obtain an optimized model; The current environmental data is input into the optimization model, and the confidence level of the output confidence level and zero bias error are re-determined until the confidence level requirement is met.

4. The VR remote control method based on gyroscope data fusion according to claim 1, characterized in that: The performing posture analysis according to the gyroscope three-axis data and the accelerometer data to obtain a preliminary posture estimation result includes: Perform low-pass filtering on the three-axis data of the gyroscope to obtain a noise-reduced angular velocity; Perform discrete integration according to the noise reduction angular velocity to obtain a change in attitude angle; Decomposing the gravity vector according to the accelerometer data to obtain the device tilt angle; Perform weighted fusion according to the attitude angle change amount and the device tilt angle to obtain a stable attitude angle; Quaternion conversion is performed according to the stable attitude angle to obtain the preliminary attitude estimation result.

5. The VR remote control method based on gyroscope data fusion according to claim 1, characterized in that: The step of performing dynamic compensation according to the zero bias estimation result and the gyroscope three-axis data to obtain corrected gyroscope data includes: Perform mean filtering according to the zero bias estimation result to obtain a zero bias correction result; The corrected angular velocity is calculated using the following formula: in, represents the corrected angular velocity, represents the original angular velocity, represents the temperature drift coefficient, represents the temperature change, Indicates the zero bias correction result; An abnormal value detection is performed according to the corrected angular velocity to obtain corrected gyroscope data.

6. The VR remote control method based on gyroscope data fusion according to claim 4 is characterized in that: Decomposing the gravity vector according to the accelerometer data to obtain the device tilt angle includes: Performing mean filtering on the accelerometer data to obtain a low-frequency gravity component; Performing state analysis according to the low-frequency gravity component to obtain a motion state; When the motion state is a motion state, motion acceleration compensation is performed according to the low-frequency gravity component to obtain a dynamic gravity projection vector; When the motion state is a static state, calculating the tilt angle according to the low-frequency gravity component to obtain a static tilt angle; The dynamic gravity projection vector and the static tilt angle are weightedly fused to obtain the device tilt angle.

7. A VR remote control system based on gyroscope data fusion, characterized in that: include: A data acquisition module is used to obtain current environment data, gyroscope three-axis data and accelerometer data; An error estimation module, used to input the current environment data into a pre-trained error estimation model, and output an error estimation value and a prediction confidence; A zero bias result module, used to perform confidence determination according to the error estimate value and the prediction confidence to obtain a zero bias estimation result; A posture analysis module, used to perform posture analysis based on the gyroscope three-axis data and the accelerometer data to obtain a preliminary posture estimation result; A dynamic compensation module, used for performing dynamic compensation according to the zero bias estimation result and the gyroscope three-axis data to obtain corrected gyroscope data; A fusion correction module is used to perform fusion correction according to the preliminary attitude estimation result and the corrected gyroscope data, and output a final attitude estimation result, specifically used for: Performing attitude residual calculation based on the preliminary attitude estimation result and the corrected gyroscope data to obtain a rotation difference; Performing weight allocation according to the rotation difference to obtain a dynamic fusion coefficient; The preliminary posture estimation result is linearly interpolated according to the dynamic fusion coefficient to obtain a final posture estimation result.

8. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the VR remote control method based on gyroscope data fusion as claimed in any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the VR remote control method based on gyroscope data fusion as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • MEMS gyroscope zero offset temperature compensation method and system based on WDO-LSSVM

    CN116481528A

  • Gyroscope temperature drift compensation method for agricultural machinery inertial navigation equipment

    CN116608852A