Virtual reality device control method, device, and storage medium
By monitoring user body data in real time to collect motion precursor signals, predicting head movement intentions and calculating posture compensation amounts, and adjusting the rendering pose of the virtual camera, the problem of delayed compensation movements in VR motion sickness is solved. Phase alignment between visual and vestibular signals is achieved, improving the usability and safety of VR devices.
Patent Information
- Application Number
- CN202611431004.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-15
- Publication Date
- 2026-11-27
AI Technical Summary
Existing VR motion sickness relief solutions are mostly passive responses, compensating for delayed movements. They cannot eliminate the phase inconsistency between visual and vestibular signals before sensory conflicts occur, thus affecting the usability of VR devices.
By monitoring user body data in real time to collect motion precursor signals, predicting user head movement intentions and conditions based on motion precursor signals, calculating posture compensation, and adjusting the rendering pose of the virtual camera in advance, pre-compensation rendering of the virtual scene is achieved, so that the visual motion signal and the vestibular system motion perception signal are aligned in phase.
It effectively alleviates VR motion sickness, improves the usability of the device, meets the needs of real-time rendering and natural interaction, and at the same time reduces hardware costs and enhances immersion and safety.
Smart Images

Figure CN123181572A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of virtual reality technology, and in particular to a virtual reality device control method, device, and storage medium. Background Technology
[0002] Virtual Reality (VR) technology generates three-dimensional virtual environments using computers and provides users with an immersive visual experience through head-mounted displays. It is currently widely used in entertainment, education, and healthcare. However, VR motion sickness is a key bottleneck restricting its widespread adoption, with approximately 40% to 80% of users experiencing nausea and dizziness when using VR devices. The core cause of VR motion sickness is sensory conflict: when a user moves in the virtual environment, the visual system receives virtual motion signals, while the vestibular system, due to physical stillness, cannot perceive the virtual motion and reports physical stillness. This discrepancy causes the brain to produce prediction errors, thus triggering motion sickness.
[0003] Existing solutions for alleviating VR motion sickness mainly include: hardware optimization solutions such as increasing the display frame rate and reducing motion-to-photon latency; software intervention solutions such as dynamic field of view limitation, static reference frame, and asynchronous time warp; motion sickness detection and response using multimodal sensors, physical motion synchronization of motion platforms, and vestibular electrical stimulation.
[0004] However, most of the above solutions are passive response modes that intervene only after sensory conflict has occurred. They can only alleviate or correct the sensory conflict that has already occurred. The compensatory actions lag behind the actual head movements, so VR motion sickness still exists, the compensation effect is not good, and it affects the use of VR devices. Summary of the Invention
[0005] This application provides a virtual reality device control method, device, and storage medium to solve the problem that the compensation action of VR motion sickness relief schemes lags behind the actual head movement, resulting in poor compensation effect and affecting the use effect of VR devices.
[0006] In a first aspect, embodiments of this application provide a virtual reality device control method, including: Real-time monitoring of body data of users wearing virtual reality devices to collect motion precursor signals that can characterize the user's head movement intentions; Based on the premonitory signals of movement, the user's head movement intention and movement status are predicted to obtain head movement prediction parameters; Motion perception prediction of the vestibular system is performed based on head motion prediction parameters to calculate the posture compensation amount required by the virtual reality device when the user's head moves. The posture compensation amount is used to align the visual motion signal of the virtual reality device with the motion perception signal of the user's vestibular system in phase. The rendering pose of the virtual camera in the virtual reality device is pre-adjusted based on the pose compensation amount, and the virtual scene is rendered based on the adjusted rendering pose when the user's head movement is detected, thus realizing the pre-compensated rendering of the virtual scene.
[0007] Secondly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method.
[0008] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method.
[0009] In one scheme provided by the aforementioned virtual reality device control method, device, and storage medium, motion precursor signals that characterize head movement intentions are collected by real-time monitoring of the user's body data wearing the virtual reality device. Based on these motion precursor signals, head movement prediction parameters are obtained by predicting the user's head movement intentions and movement patterns. This allows the trend of the user's head movement to be grasped before the actual head movement occurs, ensuring that subsequent compensation does not rely on the already occurred head movement. Then, based on the head movement prediction parameters, motion perception prediction of the vestibular system is performed, and the required posture compensation amount for the virtual reality device during the user's head movement is calculated accordingly, ensuring that the visual motion signal of the virtual reality device matches the user's posture. The motion sensing signals of the vestibular system are aligned in phase, eliminating the phase mismatch between visual motion signals and vestibular motion sensing signals at the source. Then, based on the posture compensation amount, the rendering pose of the virtual camera is pre-adjusted, and when user head movement is detected, the virtual scene is rendered based on the adjusted rendering pose. This achieves pre-compensation rendering of the virtual scene, ensuring that the compensation action no longer lags behind the actual head movement, but rather completes before or simultaneously with it. This fundamentally reduces the phase inconsistency between visual motion signals and vestibular motion sensing signals, improving the compensation effect and effectively alleviating motion sickness, thereby enhancing the user experience of virtual reality devices. Attached Figure Description
[0010] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 This is a schematic diagram of the structure of a virtual reality device control system according to an embodiment of this application; Figure 2This is a flowchart illustrating a virtual reality device control method according to an embodiment of this application; Figure 3 yes Figure 2 A schematic diagram of the implementation process of step S10; Figure 4 yes Figure 2 A schematic diagram of the implementation process of step S20; Figure 5 yes Figure 2 A schematic diagram of the implementation process of step S30; Figure 6 yes Figure 2 A schematic diagram of the implementation process of step S40; Figure 7 This is another schematic flowchart of a virtual reality device control method in one embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device in one embodiment of this application. Detailed Implementation
[0012] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0013] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of a described feature, integral, step, operation, element, and / or component, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or collections thereof. It should also be understood that, as used in this specification and the appended claims, the term "and / or" refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0014] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0015] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0016] To illustrate the technical solution of this application, specific embodiments are described below.
[0017] It's important to understand that the vestibular-ocular reflex is a crucial physiological mechanism for maintaining visual stability: when the head moves, the vestibular system detects the head movement signal and drives the eyeballs to move in the opposite direction via neural pathways, thus stabilizing the retinal image. In a real environment, the vestibular-ocular reflex gain is approximately 1.0, meaning that eye movements can effectively compensate for head movements. However, in a VR environment, due to the mismatch between visual motion and vestibular motion signals, the normal function of the vestibular-ocular reflex is disrupted, further exacerbating sensory conflict.
[0018] Existing technologies for alleviating VR motion sickness mainly fall into the following categories: (1) Hardware optimization and latency reduction methods. Sensory conflict can be reduced by increasing the display frame rate and reducing motion-to-photon latency. Related head-mounted displays reduce latency by optimizing the tracking system and display pipeline. However, hardware optimization can only reduce temporal inconsistencies, but cannot solve inconsistencies in motion content, that is, the fundamental mismatch in direction and amplitude between the motion displayed in the virtual scene and the actual head movement.
[0019] (2) Passive software intervention methods. For example, dynamic field of view limitation, which dynamically narrows the field of view during virtual motion to reduce the optical flow stimulation of the surrounding vision; static reference frames, which introduce visual reference objects fixed in the real world into the virtual environment to provide stable visual anchor points; asynchronous time warp and asynchronous space warp, which perform geometric deformation on the previous frame based on the latest head tracking data when there is a frame rendering delay, to compensate for the time difference between head movement and image update. The essence of these methods is ex-post compensation, that is, correction is only made after the delay or discomfort is detected, and they cannot fundamentally prevent the generation of sensory conflict.
[0020] (3) Multi-sensor fusion detection and response methods. Recent studies have employed multi-modal sensor data fusion, including head movement, eye movement, heart rate, and EEG, to detect motion sickness precursors in real time and trigger interventions using machine learning models. For example, based on Transformer, eye movement, head movement, and physiological signals are fused to predict the severity of motion sickness; two-stage detection based on EEG signals is performed to identify triggers and adaptively adjust VR content parameters; and motion sickness levels are predicted based on eye-tracking data, adaptively applying field-of-view limitations and image blurring. The common feature of these methods is a detection-response closed loop: motion sickness symptoms are detected first, and then intervention is implemented, which is a passive relief rather than an active prevention.
[0021] (4) Motion platform synchronization method. In VR motion simulators, a six-degree-of-freedom motion platform provides physical motion that matches the virtual scene, enabling the vestibular system to receive motion signals consistent with vision. However, motion platforms are bulky and expensive, and are only suitable for professional simulator scenarios, not for consumer-grade VR headsets. They also suffer from phase delay and false cues, and classic washout algorithms require complex parameter tuning.
[0022] (5) Vestibular electrical stimulation method. A weak current is sent through electrodes behind the ear to directly activate the vestibular receptors, simulating the acceleration signal of head movement. However, this method requires additional hardware and is an invasive or semi-invasive solution, raising safety concerns and making it unsuitable for routine use in consumer products.
[0023] (6) Immersive Virtual Display Solution. This solution addresses motion sickness in passengers using VR headsets in moving vehicles by dynamically adjusting the synchronization between the virtual imagery and vehicle movement. Its core principle is to synchronize the virtual imagery with real external movement, rather than resolving sensory conflicts caused by the VR content itself.
[0024] The aforementioned prior art has the following common defects: First, all of these are passive response modes with delayed compensation actions. All existing technologies intervene only after sensory conflicts have occurred or are about to occur, which is a post-event remedy rather than a pre-event prevention. Whether it is field of vision adjustment, frame rate enhancement, or multi-sensor detection response, none of them can eliminate the root cause before the conflict occurs; the compensation action lags behind the actual movement, has an inherent time delay, and it is difficult to avoid the inconsistency between visual signals and vestibular signals.
[0025] Second, intervention methods impair immersion. While passive interventions can alleviate symptoms, they directly reduce the immersion and visual quality of the VR experience, creating a zero-sum game between relief and experience.
[0026] Third, some solutions rely on external hardware. External hardware such as motion platforms and electrical stimulation devices are costly, bulky, or pose safety concerns, making them difficult to popularize in consumer-grade VR devices.
[0027] Fourth, existing technologies fail to reduce visual-vestibular signal inconsistency at its source before sensory conflicts occur, making it difficult to meet the needs of real-time VR rendering and natural interaction.
[0028] To address the aforementioned issues, this application provides a virtual reality device control method, device, and storage medium. This method can pre-calculate the required posture compensation (i.e., phase compensation) for the virtual scene based on motion intention prediction before the user's head movement actually occurs. This allows for advance adjustment of the virtual camera's pose, and compensation rendering is completed based on the adjusted rendering pose at the moment head movement begins. This pre-aligns the visual motion signal with the vestibular expected motion signal in phase, fundamentally preventing sensory conflicts, improving device compensation effectiveness, effectively alleviating motion sickness, and enhancing the user experience of the virtual reality device. Furthermore, this solution can pre-adjust the rendering pose of the virtual camera and render the scene using motion data without affecting the immersion and visual quality of the VR experience. It also meets the needs of real-time VR rendering and natural interaction, further improving the user experience of the virtual reality device. In addition, this solution only optimizes compensation at the algorithm level, without relying on additional hardware, reducing VR device costs and improving the safety of the VR experience, thereby increasing the accessibility of consumer-grade VR devices.
[0029] The virtual reality device control method provided in this application embodiment can be applied to, for example, Figure 1 The virtual reality device control system (hereinafter referred to as the system) shown includes virtual reality devices and a control device; the virtual reality devices include virtual cameras, virtual displays, and other equipment. The virtual reality devices communicate with the control device via cables or networks. The control device may be a controller with certain computing capabilities integrated into the virtual reality devices; in other embodiments, the control device may also be a terminal device or server independent of the virtual reality devices.
[0030] During the actual operation of the virtual reality device, the control device monitors the user's body data in real time through various sensors carried by the virtual reality device itself, in order to collect motion precursor signals that can characterize the user's head movement intentions. At the same time, based on the motion precursor signals, the device predicts the user's head movement intentions and movement status, obtaining head movement prediction parameters. Then, based on the head movement prediction parameters, the device predicts the motion perception of the vestibular system to calculate the posture compensation amount required by the virtual reality device when the user's head moves. The posture compensation amount is used to align the visual motion signal of the virtual reality device with the motion perception signal of the user's vestibular system in phase. Then, based on the posture compensation amount, the rendering pose of the virtual camera in the virtual reality device is pre-adjusted, and when the user's head movement is detected, the virtual scene is rendered based on the adjusted rendering pose, realizing pre-compensated rendering of the virtual scene.
[0031] In this solution, real-time monitoring of the user's body data while wearing the virtual reality device (VRDD) is used to collect motion precursor signals that characterize head movement intentions. Based on these signals, head movement prediction parameters are derived to predict the user's head movement intentions and actual movement patterns. This allows for the understanding of head movement trends before they actually occur, providing a basis for early compensation and ensuring that subsequent compensation is not dependent on already performed head movements. Furthermore, based on these head movement prediction parameters, motion perception prediction of the vestibular system is performed, and the required posture compensation for the VRDD during user head movements is calculated. This ensures that the visual motion signal of the VRDDD is aligned in phase with the motion perception signal of the user's vestibular system, thereby enabling early detection and compensation before sensory conflicts arise. The necessary compensation is identified and applied to eliminate the phase mismatch between visual motion signals and vestibular motion perception signals at the source. Then, the rendering pose of the virtual camera is pre-adjusted based on the posture compensation amount. When user head movement is detected, the virtual scene is rendered based on the adjusted rendering pose. This achieves pre-compensated rendering of the virtual scene, so that the compensation action no longer lags behind the actual head movement, but the rendering pose is pre-adjusted before the head movement occurs. When the head movement occurs, the virtual scene is presented directly with the adjusted pose. This reduces the phase inconsistency between visual motion signals and vestibular motion perception signals at the source, improves the device compensation effect, effectively alleviates motion sickness in users, and thus improves the user experience of virtual reality devices.
[0032] In one embodiment, such as Figure 2 As shown, a virtual reality device control method is provided, which is applied to... Figure 1 Taking the control device in the middle as an example, the following steps are included: S10: Real-time monitoring of the body data of users wearing virtual reality devices to collect motion precursor signals that can characterize the user's head movement intentions.
[0033] Among them, the premonitory motion signal refers to the physiological or behavioral signal generated within a preset prediction window before the user's head movement actually occurs, which can reflect the user's intention to turn their head. It is different from the motion state signal that represents the head movement that has already occurred.
[0034] The control device can monitor the user's body data in real time through the sensing components configured on the virtual reality device. Specifically, the sensing components operate continuously at a set sampling frequency, and the collected raw body data undergoes preprocessing such as filtering, noise reduction, and normalization. The data is then aggregated by signal channel under a unified time reference. Subsequently, signal components that appear before head movements and are related to the user's intention to move are selected and output as motion precursor signals characterizing the user's head movement intention to the subsequent prediction stage. Since these motion precursor signals carry information about the upcoming movement rather than the movement that has already occurred, they provide a data foundation for understanding the user's head movement trend before the actual movement, making subsequent compensation independent of the already occurred head movement.
[0035] The aura signal for movement includes at least the user's pre-sagging eye signals (i.e., eye movements as the eyes scan the surrounding environment) and neck electromyography (EMG) signals. Specifically, the control device can collect micro-movement signals of the user's facial and neck muscles through a pressure sensor array located inside the virtual reality device's mask, obtaining eye movement signals and neck EMG signals, and using these signals as the source of the aura signal for movement. The corresponding direction of movement is determined through a pre-established mapping relationship, thus enabling this step to be implemented even on devices without eye tracking or EMG acquisition hardware.
[0036] In other embodiments, the aura signal can also be other types of signals, such as turning voice commands issued by the user collected through the device microphone; the pressure distribution change output by the pressure sensor array and the semantic recognition result of the voice command can be regarded as aura signals that can characterize the intention of head movement.
[0037] S20: Based on the motion precursor signals, predict the user's head movement intention and movement status to obtain head movement prediction parameters.
[0038] Among them, head motion prediction parameters refer to the set of parameters used to characterize the kinematic information such as the direction, speed and amplitude of the user's upcoming head movement.
[0039] The control device can organize motion precursor signals into a time-series input, call a pre-established motion intention prediction model to process the time-series input, and enable the motion intention prediction model to output an estimate of the user's head movement intention (i.e., the direction the user intends to turn their head) and the movement (i.e., how fast and how large the turn will be), and then organize the estimate into head movement prediction parameters for output. The motion intention prediction model can either run online, updating the prediction results as new precursor signals arrive, or perform a complete inference on the entire precursor signal in each prediction cycle; thus, a quantitative description of the movement trend can be obtained before the actual head movement occurs.
[0040] For example, when a user wears a head-mounted display with eye-tracking capabilities, the system receives eye-tracking signals within a prediction window before the user's head turns. After processing by the aforementioned motion intention prediction model, the system obtains prediction parameters for the head movement that is about to turn to the right, with a rotation speed in the medium speed range and a moderate to large amplitude.
[0041] In other embodiments, state estimation algorithms can be directly used to process the precursor signals. For example, the head rotation angle and angular velocity can be constructed as state vectors, and the eye movement pre-saccade signal and neck electromyography signal can be used as observation inputs. The state at the next moment can be estimated recursively through Kalman filtering or particle filtering, thereby directly obtaining the head motion prediction parameters. This method does not require the construction of a neural network, has a small computational load, and is suitable for devices with limited computing power.
[0042] S30: Based on head motion prediction parameters, perform motion perception prediction of the vestibular system to calculate the posture compensation amount required by the virtual reality device when the user's head moves. The posture compensation amount is used to align the visual motion signal of the virtual reality device with the motion perception signal of the user's vestibular system in phase.
[0043] The vestibular system, located in the inner ear, is a sensory system used to perceive angular and linear acceleration of the head. The vestibular system's motion perception signal refers to the motion sensation signal generated by the vestibular system during head movement. The visual-motor signal refers to the motion information formed in the user's field of vision by the image presented by the virtual reality device. Phase alignment means that the visual-motor signal and the motion perception signal are synchronized in time and maintain a consistent trend of change, rather than being simply equal.
[0044] Specifically, the control device uses the predicted head motion parameters as input. Following a pre-established mapping describing the correspondence between head motion and human motion perception, it calculates the motion perception signal that the vestibular system will generate during the user's upcoming head movement. Using this motion perception signal as a reference, it calculates the posture compensation amount that the virtual reality device needs to apply during the user's head movement to ensure phase alignment between the two. This posture compensation amount is then output to the rendering stage. Because the posture compensation amount is derived in advance based on the prediction results, it enables phase alignment between the visual motion signal of the virtual reality device and the motion perception signal of the user's vestibular system, determining the necessary compensation before sensory conflict occurs.
[0045] In this method, a lookup table or empirical transfer function can be directly constructed based on the empirical relationships obtained through offline experiments. The direction of motion, angular velocity, and amplitude in the head motion prediction parameters can be used as indexes to directly look up the table to obtain the corresponding vestibular motion perception estimate. Then, the posture compensation amount is determined based on the difference between the estimate and the visual presentation. This implementation method does not require real-time solution of physiological dynamic equations, making it simple and responsive.
[0046] For example, if a user's head motion prediction parameters indicate that they will turn to the right, the system infers that the vestibular system will generate an angular velocity perception pointing to the right, and calculates the posture compensation amount that the virtual reality device needs to pre-apply, in the opposite direction to the head rotation. In other embodiments, the posture compensation amount can be obtained in other ways, as described below, and will not be repeated here.
[0047] S40: Based on the pose compensation amount, the rendering pose of the virtual camera in the virtual reality device is pre-adjusted, and when the user's head movement is detected, the virtual scene is rendered based on the adjusted rendering pose, thus realizing the pre-compensation rendering of the virtual scene.
[0048] In this context, a virtual camera refers to a virtual viewpoint used by a virtual reality device to determine the viewing angle and position when rendering a virtual scene. Rendering pose refers to the position and orientation (i.e., facing) of the virtual camera in the virtual scene coordinate system. Pre-compensated rendering refers to adjusting the rendering pose based on pose compensation before the user's head movement actually occurs, so that the scene is rendered directly with the adjusted pose when the head movement occurs.
[0049] The control device superimposes the predicted pose compensation onto the original rendered pose of the virtual camera, completing this adjustment before the user's head movement actually occurs. This ensures that the virtual camera's pose is already in the target compensation state before the head movement even begins. Simultaneously, sensors such as an inertial measurement unit detect whether the user's head movement has occurred. Once head movement is detected, the virtual scene is rendered and presented based on the currently adjusted rendered pose. Therefore, the compensation action no longer lags behind the actual head movement; instead, the pre-adjustment of the rendered pose is completed before the head movement occurs, and the virtual scene is presented directly with the adjusted pose when the head movement happens.
[0050] For example, when a user is about to turn their head to observe a target in a virtual scene, the system has already pre-tilted the virtual camera's orientation according to the posture compensation amount before detecting the user's head movement. When the user's head actually turns, the picture is presented directly from the pre-tilted perspective, and the user will not see the compensation action itself.
[0051] In other embodiments, instead of applying pre-compensation uniformly to the entire virtual scene, high-precision pre-compensation can be applied only to the user's gaze area, while low-precision compensation or standard rendering is used for surrounding areas to reduce the computational load on the graphics processor. Alternatively, while adjusting the virtual camera's rendering pose based on the pose compensation amount, content resources for the corresponding viewpoint can be pre-loaded based on predicted head movements, lighting can be pre-calculated, and details in non-gaze areas can be simplified to reduce rendering pressure during movement at the content level. Alternatively, different pre-compensation intensities can be applied according to the frequency of head movements: full pre-compensation for slow glances, standard pre-compensation for normal head turns, and only eye-tracking prediction combined with minimum compensation for rapid scans, to avoid over-compensation causing adverse discomfort.
[0052] In this embodiment, real-time monitoring of the user's body data while wearing the virtual reality device collects motion precursor signals that characterize head movement intentions. Based on these motion precursor signals, head movement prediction parameters are obtained to predict the user's head movement intentions and movements. This allows for the understanding of head movement trends before actual head movements occur, ensuring that subsequent compensation is not dependent on already occurring head movements. Furthermore, based on these head movement prediction parameters, the vestibular system's motion perception is predicted, and posture compensation is calculated. This aligns the visual motion signal of the virtual reality device with the vestibular system's motion perception signal in phase, thus pre-determining and applying the necessary compensation before sensory conflicts arise, eliminating the phase mismatch between visual motion signals and vestibular motion perception signals at its source. Subsequently, the rendering pose of the virtual camera is pre-adjusted based on the posture compensation, and the virtual scene is rendered using the adjusted rendering pose when head movement is detected. This pre-compensated rendering of the virtual scene ensures that the compensation action no longer lags behind the actual head movement.
[0053] Because pre-compensation is achieved by adjusting the presentation of the virtual scene, it does not reduce the field of view, lower the image quality, or introduce stationary reference objects throughout the process, thus alleviating motion sickness without causing a loss of immersion. Since the calculation of compensation amount and pose adjustment are completed in the preprocessing stage of the rendering pipeline, the calculation only needs to be completed within the prediction window before the head movement occurs, thus meeting the real-time rendering requirements of virtual reality devices and can work in conjunction with existing post-processing technologies such as time warp and space warp. Since the motion intention prediction model and vestibular system response parameters can be continuously learned and updated as the user uses the device, it can adapt to the different motion habits and motion sickness sensitivities of different users.
[0054] In summary, this solution reduces the phase inconsistency between visual motion signals and vestibular motion perception signals at the source, improves the device compensation effect, effectively alleviates motion sickness in users, and thus improves the user experience of virtual reality devices.
[0055] In one embodiment, such as Figure 3 As shown, step S10 involves real-time monitoring of the user's body data while wearing the virtual reality device to collect motion precursor signals that can characterize the user's head movement intentions. This specifically includes the following steps: S11: Real-time signal acquisition of the user's eyes to obtain the user's real-time eye movement pre-sacrifice signal, which includes the direction and amplitude of the eye movement.
[0056] Among them, the eye movement pre-sagging signal refers to the signal that appears before the user's voluntary head rotation and corresponds to the preparatory sagging action of the eyes in the target direction. It appears physiologically before the head movement and thus constitutes the earliest clue of the intention to move the head.
[0057] The control device uses eye-tracking components configured on the virtual reality equipment, such as an eye-tracking module consisting of an infrared light source and an infrared camera, to collect real-time signals from the user's eyes: the infrared light source illuminates the eyeball, the camera captures corneal reflection spots and pupil images, the image processing unit locates the pupil center and corneal reflection point based on this, calculates the optical axis and visual axis direction of the eyeball, and identifies pre-sagging movements that occur before head movements by detecting changes in the eyeball direction sequence. It then determines the direction (left, right, up, down, etc.) and amplitude (angle of the saccade) of this pre-sagging movement, outputting both as eye-tracking pre-sagging signals. The collected eye-tracking pre-sagging signals are timestamped at a fixed sampling frequency and stored in association with concurrently collected head movement data to accumulate and form a mapping library representing the correspondence between eye movements and head movements, which can be retrieved and called upon in subsequent motion intention prediction stages.
[0058] For example, eye-tracking pre-sacrifice usually precedes head movement by an observable time interval, such as about 80 to 150 milliseconds. When a user intends to turn their head to the right, their eyes first perform a pre-sacrifice to the right. The eye-tracking module detects this rightward saccade and measures its amplitude, outputting an eye-tracking pre-sacrifice signal that includes both direction and amplitude information. At the same time, this record is stored in its mapping library.
[0059] S12: Real-time electromyography (EMG) signal acquisition is performed on the surface of the user's neck muscles to obtain the user's real-time neck EMG signal.
[0060] Among them, neck electromyography (EMG) signals refer to signals reflecting the electrical activity of neck muscles collected by electrodes attached to the surface of neck muscles. Neck muscles exhibit pre-activation before head movement, meaning that the pre-motor potential of neck muscles appears before head movement. Therefore, the pre-activation component in neck EMG signals can serve as a precursor to head movement intentions.
[0061] The control device uses flexible surface electromyography (EMG) electrodes integrated into the inside of the headband or mask of the virtual reality device to collect real-time EMG signals from the user's neck muscles (such as the sternocleidomastoid and trapezius muscles). After the electrodes pick up the weak potential difference on the muscle surface, the signals are processed sequentially through differential amplification, bandpass filtering, power frequency notch filtering, rectification, and envelope extraction to suppress motion artifacts and interference, resulting in a neck EMG signal that varies over time and has a stable amplitude. This signal is then output with a timestamp at a fixed sampling frequency. Because the neck EMG signal contains pre-activation components of the muscles prior to head movement, it can provide muscle-level precursors for predicting head movement intentions.
[0062] For example, pre-activation of neck muscles usually occurs about 50 to 100 milliseconds before head movement; when a user is about to turn their head to the left, the electrical activity of the right neck muscles increases before the head movement, and the electromyography acquisition channel outputs a neck electromyography signal with gradually increasing amplitude.
[0063] S13: Monitor and record changes in the user's head movements to obtain the user's historical head movement data.
[0064] Historical head movement data refers to a data set formed by continuously monitoring and recording a user's head movements over a period of time, which is used to reflect the user's individual head movement habits.
[0065] The control device uses a six-axis inertial measurement unit (composed of a three-axis gyroscope and a three-axis accelerometer) installed in the virtual reality device to monitor the user's head movements in real time at a sampling frequency higher than the rate of change of head movement. The gyroscope outputs the angular velocity of head rotation, and the accelerometer outputs the linear acceleration of the head. The attitude calculation unit calculates the head's attitude angle and trajectory at different times based on this data. The monitored data is continuously written to local memory and collected in segments to form a head movement pattern library for that individual user, which serves as historical head movement data. Because different users have different head turning speeds, acceleration curves, and movement initiation and termination methods, the obtained data can be used to characterize the individual user's head movement patterns.
[0066] For example, the inertial measurement unit collects head movement data at 1000Hz; a user's long-term records show that his habitual head turning amplitude is mostly concentrated in the medium range and the head turning process is relatively smooth, based on which a head movement pattern library reflecting his individual movement habits is formed.
[0067] S14: Output the user's real-time eye-tracking pre-sagging signal, neck electromyography signal, and historical head movement data as a motion precursor signal that can characterize the user's head movement intention.
[0068] The control device aligns and integrates the obtained eye-tracking pre-sacrifice signals, neck electromyography signals, and historical head movement data under a unified time reference: using the sampling timestamps of each signal as a reference, the real-time eye-tracking pre-sacrifice signals and neck electromyography signals are aligned to the same time axis, and historical head movement data is included as a reference for the corresponding individual movement patterns; then, the three are encapsulated into a multi-channel signal group according to a preset data format to form a unified motion precursor signal output.
[0069] For example, the system encapsulates a right-eye pre-saccade signal, a neck electromyography enhancement signal, and the user's historical head movement data collected at the same time into the same set of multi-channel signals, which are then used as inputs for subsequent prediction steps.
[0070] When one of the signals is temporarily unavailable (e.g., the eye is blocked, resulting in the absence of eye movement signals, or poor electrode contact, resulting in the absence of electromyography signals), the remaining channels are still used to form a motion precursor signal and retain the missing marker. Accordingly, in the subsequent prediction stage, the predictor corresponding to the missing signal judges its input signal quality as unsatisfactory, its confidence level decreases, its fusion weight decreases accordingly, and its weight share is borne by the remaining predictors, so that the prediction can still continue.
[0071] In addition, on devices without eye-tracking or electromyography (EMG) acquisition hardware, the aforementioned eye-tracking pre-saccade signal and neck EMG signal can be replaced by alternative signal sources such as facial and neck pressure signals and turning voice commands. In this case, the alternative signal sources occupy the same signal channel position after being mapped accordingly, and are still integrated with historical head movement data in the same way as in this step to output a movement precursor signal.
[0072] In this embodiment, eye-tracking pre-sagging signals, neck electromyography signals, and historical head movement data are collected separately and integrated to output a motor aura signal. The resulting motor aura signal simultaneously possesses the earlyness of eye-tracking aura, the reliability of electromyography aura, and the correlation between individual historical patterns. This provides multi-source, complementary, and individualized input for predicting head movement intentions, effectively improving the representation ability and robustness of motor aura signals for head movement intentions.
[0073] In one embodiment, such as Figure 4 As shown, step S20, which involves predicting the user's head movement intention and movement based on the motion precursor signal to obtain head movement prediction parameters, specifically includes the following steps: S21: Obtain the pre-trained motion intention prediction model, which is a neural network model trained or updated based on the user's historical motion data.
[0074] The motion intent prediction model refers to a neural network model used to establish a mapping relationship between motion precursor signals and head movement prediction parameters. An initial model containing multiple layers of neural networks can be pre-built and trained using the user's historical motion data as training samples: motion precursor signals recorded synchronously during historical use are used as model input, and the corresponding actual head movement parameters obtained post-hoclystically are used as supervision labels. The model parameters are iteratively optimized by minimizing the error between the model's prediction results and the labels. Once the error converges, the trained motion intent prediction model is obtained and stored in the device. During subsequent use, newly collected samples can be continuously added to the training set to incrementally update the model, allowing it to continuously adapt to the user's movement habits. Therefore, the obtained motion intent prediction model is a personalized neural network model trained or updated based on the user's historical motion data.
[0075] For example, before a user uses the system for the first time, the system first completes a training process using the user's historical motion data to obtain an initial motion intention prediction model; during the user's subsequent use, the system continues to update the model with new samples at regular intervals.
[0076] S22: Based on the motion precursor signal, call the motion intention prediction model to predict the user's head motion intention and motion status, so as to generate head motion prediction parameters corresponding to the head motion intention.
[0077] The head motion prediction parameters include three items: predicted motion direction (which direction the user will turn their head), predicted motion angular velocity (how fast the user turns their head), and predicted motion amplitude (the size of the angle at which the user turns their head).
[0078] The control device can construct the collected motion precursor signals into a model input sequence in chronological order, call the motion intention prediction model to perform forward inference operations on it, and the model's output layer provides the direction probability distribution corresponding to the motion direction, the angular velocity estimate corresponding to the motion speed, and the amplitude estimate corresponding to the motion amplitude. The above outputs are parsed and organized, that is, the direction corresponding to the highest probability is taken as the predicted motion direction, and the angular velocity and amplitude estimate output by the model are taken as the predicted motion angular velocity and predicted motion amplitude, respectively, thereby generating head motion prediction parameters corresponding to the head motion intention.
[0079] For example, when a user intends to turn their head to the right, the motion intention prediction model outputs the results based on the motion precursor signal, showing that the probability of turning to the right is significantly higher than that of other directions. At the same time, it provides the corresponding angular velocity and amplitude estimates. Based on this, the system generates head motion prediction parameters that include direction, angular velocity, and amplitude.
[0080] In this embodiment, a motion intention prediction model in the form of a neural network trained or updated based on the user's historical motion data is obtained, and the model is called to perform forward inference on the motion precursor signal to generate head motion prediction parameters including predicted motion direction, predicted motion angular velocity, and predicted motion amplitude. This makes the head motion prediction results both individual adaptability and quantitative integrity, which can be continuously optimized as the user uses the device, and can provide clear and usable kinematic parameters for subsequent vestibular perception prediction and compensation calculation, thereby improving the prediction accuracy and feasibility of the entire pre-compensation process.
[0081] In one embodiment, the motion aura signal includes the user's eye movement pre-sagging signal, neck electromyography signal, and historical head movement data. Step S22 involves using the motion aura signal to call a motion intention prediction model to predict the user's head movement intention and movement status, thereby generating head movement prediction parameters corresponding to the head movement intention. This specifically includes the following steps: S221: Extract features from the eye movement pre-sacrifice signal to obtain eye movement pre-sacrifice features.
[0082] Among them, eye-tracking pre-sacrifice features refer to the feature quantities obtained after numerical processing of eye-tracking pre-sacrifice signals, which can be directly used by the prediction model. Eye-tracking pre-sacrifice features include pre-sacrifice direction vector, pre-sacrifice amplitude, pre-sacrifice velocity, and the correlation between pre-sacrifice and historical head movements.
[0083] The control device converts the direction and amplitude information in the eye-tracking pre-sacrifice signal into a direction vector with the eyeball as the origin, obtaining the pre-sacrifice direction vector. It then calculates the first-order rate of change of this direction vector over time to obtain the pre-sacrifice velocity. Finally, it aligns the current pre-sacrifice action with head movements before and after the same moment in historical head movement data and calculates the correlation between the two, obtaining the correlation between the pre-sacrifice and historical head movements. These features are normalized and arranged by channel, forming the eye-tracking pre-sacrifice feature output to the subsequent prediction stage.
[0084] For example, if a user performs a pre-scan to the right, the system obtains the pre-scan direction vector pointing to the right, the corresponding pre-scan amplitude and pre-scan speed, and calculates the correlation value between this pre-scan and its historical records of turning the head to the right.
[0085] S222: Extract features from the neck electromyography signals to obtain neck electromyography features.
[0086] Among them, neck electromyography (EMG) characteristics refer to the feature quantities obtained after numerical processing of neck EMG signals, which can be used to indicate head movement intentions. Neck EMG characteristics include EMG signal amplitude, distribution of activated muscle groups, and muscle activation timing.
[0087] The control device can calculate the root mean square value or average absolute value of the rectified and enveloped neck electromyography (EMG) signal within a sliding time window to obtain the EMG signal amplitude. Based on the signal strength measured by multiple electrodes at different muscle locations in the neck, it determines which muscle groups are activated and their spatial distribution, thus obtaining the activated muscle group distribution. It sets activation thresholds for each signal and detects the moment when the threshold is first reached, comparing the order of these moments to obtain the muscle activation sequence. These features, after normalization, constitute the neck EMG feature output.
[0088] For example, when a user is about to turn their head to the left, the system detects that the amplitude of the left neck muscle group increases first, and records the corresponding muscle activation sequence according to the order in which each electrode reaches the threshold.
[0089] S223: Extract features from historical head movement data to obtain the user's head movement pattern features.
[0090] Among them, head movement pattern features refer to the feature quantities summarized from historical head movement data to characterize the head movement patterns of an individual user. Head movement pattern features include head turning angle distribution, angular velocity curve, acceleration curve, movement initiation / termination features, and eye-head movement coordination time sequence features.
[0091] The control device can statistically analyze historical head movement data to obtain the distribution of head turning angles, i.e., the head turning angle distribution; it can aggregate the curves of angular velocity and acceleration over time from multiple head movement processes into curve templates to obtain angular velocity curves and acceleration curves; by setting start and stop conditions for angular velocity or acceleration, it can identify the start and stop times of each head movement and the steepness of their changes, obtaining movement start / stop characteristics; it can align eye movement records and head movement records in historical data in time, and statistically analyze their relative sequence and time interval patterns to obtain eye-head movement coordination temporal characteristics. These features collectively constitute the user's head movement pattern characteristics.
[0092] For example, by summarizing a user's historical records, the system can identify that the user's head turning angles are mostly concentrated in the medium range, the rising segment of the angular velocity curve is relatively flat, and the timing pattern of eye pre-saccades usually precedes the start of head movement.
[0093] S224: Based on eye-tracking pre-sagging features, neck electromyography features, and head movement pattern features, a motion intention prediction model is used to predict the user's head movement intention and movement status.
[0094] In this embodiment, the obtained eye-tracking pre-sagging features, neck electromyography features, and head movement pattern features are aligned and combined according to a unified time reference to form a multi-source feature input. This multi-source feature input is then fed into a motion intention prediction model, which jointly predicts the user's head movement intention (direction) and movement status (angular velocity and amplitude), outputting prediction results used to generate head movement prediction parameters. Since the three types of features originate from eye-tracking auras, muscle auras, and individual historical patterns, respectively, their reliability varies in different scenarios. The model can integrate information from all three during prediction, thus maintaining high prediction stability even when some features are disturbed.
[0095] In this approach, eye-tracking pre-sagging features, neck electromyography features, and head movement pattern features can be directly concatenated into a joint feature vector, which is then input into a single neural network (such as a long short-term memory network or an attention network). This network then outputs the predicted head movement direction, angular velocity, and amplitude in a single, end-to-end manner. This implementation method has a simple structure and low training and deployment costs.
[0096] For example, if a user's eye movement presaccade features and neck electromyography features both point to rightward rotation, and their head movement pattern features show that they habitually turn their head to the right relatively gently, the motion intention prediction model will give a prediction result of rightward rotation with moderate angular velocity after integrating the three features.
[0097] In this embodiment, targeted features are extracted from eye-tracking pre-sagging signals, neck electromyography signals, and historical head movement data. Based on these three types of features, a motion intention prediction model is invoked for joint prediction. This allows the prediction of head movement intention and movement status to be based on multi-source complementary feature information. This not only preserves the unique information of various aura signals but also improves the accuracy and anti-interference ability of the prediction through model fusion, providing more reliable head movement prediction parameters for subsequent vestibular perception prediction.
[0098] In one embodiment, the motion intention prediction model includes an eye-tracking predictor, an electromyography (EMG) predictor, and a historical pattern predictor. Step S224, which involves using the motion intention prediction model to predict the user's head movement intention and movement based on eye-tracking pre-sagging features, neck EMG features, and head movement pattern features, specifically includes the following steps: S2241: Using eye-tracking pre-saccade features, neck electromyography features, and head movement pattern features as inputs to the corresponding predictors, each predictor performs single-source prediction of the user's head movement to obtain the prediction data output by each predictor.
[0099] Among them, the eye-tracking predictor, electromyography predictor, and historical pattern predictor are functional modules that perform prediction operations separately for a certain type of feature. Single-source prediction means that each predictor makes a prediction based only on its own corresponding feature.
[0100] The control device can input eye-tracking pre-sagging features into an eye-tracking predictor. The predictor, based on the pre-sagging direction vector and amplitude, retrieves the corresponding head movement prediction from a pre-trained eye-head movement mapping library trained on user historical data using a lookup table. It can also input neck electromyography (EMG) features into an EMG predictor. Based on the distribution of activated muscle groups and EMG signal amplitude, the predictor uses a support vector machine classifier to classify and determine the head movement direction, simultaneously providing estimates of the corresponding head movement angular velocity and amplitude. Finally, it can input head movement pattern features into a historical pattern predictor. Based on the user's current head posture and angular velocity, and combined with a historical head movement pattern library, the predictor uses a hidden Markov model to infer the most likely head movement trajectory for the next moment. Based on the inferred head movement trajectory, it determines the head movement angular velocity, head movement amplitude, and probability values for different movement directions. Each predictor outputs predicted data for head movement angular velocity, head movement amplitude, and probability values for different movement directions for subsequent fusion.
[0101] For example, the eye-tracking predictor uses a lookup table to give the probability distribution of the rightward direction and estimates the angular velocity, the electromyography predictor uses classification to give the probability of the rightward direction being higher and estimates the angular velocity, and the historical pattern predictor uses trajectory deduction to give the amplitude estimate. Each of the three outputs independent prediction data.
[0102] S2242: Determine the fusion weights of each predictor based on the confidence level of its current prediction and the accuracy of its historical predictions.
[0103] Here, confidence level refers to the reliability of a predictor's current prediction result, historical prediction accuracy refers to the proportion of correct predictions made by the predictor in the past, and fusion weight refers to the proportion of each predictor in the subsequent weighted fusion.
[0104] The control device can first determine the confidence level of each predictor's current prediction, and then calculate the historical prediction accuracy by statistically analyzing the proportion of prediction results that match the actual head movements in the historical predictions of each predictor. Subsequently, the current confidence level of each predictor and its historical prediction accuracy are weighted and combined according to a preset balance coefficient (i.e., the confidence level is assigned the balance coefficient, the historical prediction accuracy is assigned the residual coefficient, and then the sum is obtained) to obtain the fusion weight of the predictor. The fusion weights of each predictor are then normalized so that their sum is a constant value.
[0105] The historical prediction accuracy is not fixed, but is updated with each subsequent head movement of the user: after each head movement, the accuracy of the corresponding predictor is incrementally adjusted based on whether the prediction was correct. For example, an exponentially weighted moving average is used to make the proportion of recent prediction performance higher than that of long-term performance, so that the historical prediction accuracy can reflect the latest reliability of the predictor.
[0106] In this approach, the information entropy of the predictor's output can be directly used as its current confidence level: the more concentrated the directional probability distribution of the predictor's output, the smaller its entropy and the higher its confidence level. The confidence level and historical prediction accuracy are then weighted using a balance coefficient to obtain the fusion weight. This implementation method eliminates the need for additional evaluation of input signal quality and consistency, making the calculation simpler. In other embodiments, the confidence level can also be calculated in other ways, which will not be elaborated here.
[0107] For example, in a certain prediction, the eye-tracking predictor has a low confidence level because the eyes are partially obscured, but it still receives a certain weight because of its historically high accuracy. The electromyography predictor has a high current confidence level, so it receives a relatively larger weight. After a predictor makes several consecutive predictions that match the actual situation, its historical prediction accuracy increases, and its fusion weight increases accordingly.
[0108] S2243: Based on the fusion weights of each predictor, the prediction data of each predictor are weighted and fused to obtain the head motion prediction parameters.
[0109] The control device performs weighted fusion of the predicted data output by each predictor according to the determined fusion weights: for the probability value of the motion direction, the probability values given by each predictor in the same direction are weighted and summed, and the direction with the highest weighted probability is taken as the predicted motion direction; for the head motion angular velocity and head motion amplitude, the estimated values of each predictor are weighted and summed separately to obtain the predicted motion angular velocity and predicted motion amplitude; the above results are summarized to obtain the head motion prediction parameters. Thus, the fusion result not only absorbs the advantages of each predictor under different conditions, but also suppresses any abnormal output from a particular predictor due to its lower weight.
[0110] For example, in a certain prediction, after the probability values of the three predictors for the direction of movement are weighted and summed, the probability of the right direction is the highest, and the weighted results of angular velocity and amplitude are the corresponding estimated values. Based on this, the system obtains the head movement prediction parameters of turning to the right, medium angular velocity, and medium amplitude.
[0111] In this embodiment, corresponding predictors are set for three types of features: eye movement, electromyography, and historical patterns, to perform single-source prediction. The fusion weights are dynamically determined based on the current prediction confidence and historical prediction accuracy of each predictor. The prediction data is then weighted and fused to obtain head motion prediction parameters. This allows prediction results from different sources to complement each other within a unified framework. This avoids the problem of prediction failure when a single signal source is interfered with, and allows the weight allocation to be adaptively adjusted according to the performance of the predictors, thereby significantly improving the accuracy and robustness of head motion prediction parameters.
[0112] In one embodiment, the current confidence level of the predictor is determined as follows: S22421: Determine the quality of the input signal to the predictor.
[0113] The input signal quality refers to the reliability of the input signal on which the predictor is based in terms of integrity, stability, and signal-to-noise level.
[0114] Specifically, for an eye-tracking predictor, the quality of its input signal is determined by comprehensively detecting the extent to which the user's pupil is obstructed (e.g., statistically analyzing the proportion of the pupil area covered by eyelids or obstructions), the clarity and stability of the corneal reflection (e.g., statistically analyzing the positional jitter of the corneal reflection spot and its brightness consistency), and the signal-to-noise ratio of the eye-tracking signal (the ratio of effective eye-tracking components to noise components).
[0115] For electromyography (EMG) predictors, the quality of their input signal is determined by detecting the effective range of EMG amplitude (whether the signal falls within the available amplitude range, whether saturation or weakness occurs), electrode contact performance (e.g., judging whether the contact is good based on the impedance between the electrode and the skin), and the signal-to-noise ratio of the EMG signal.
[0116] For historical pattern predictors, the quality of their input signal is determined by detecting the continuity of head motion pattern features (whether historical data is continuous and without gaps, and whether the features are stable) and the stability of the current head pose estimation (whether the pose calculation results show any abnormal jumps). The input signal quality of the corresponding predictor is obtained by normalizing and weighting these indicators.
[0117] For example, if a user blinks frequently at a certain moment, causing intermittent obstruction of eye signals, the system will determine that the input signal quality of the eye movement predictor is low; while at the same moment, if the neck electromyography signal is stable and the electrode contact is good, the system will determine that the input signal quality of the electromyography predictor is high.
[0118] S22422: Determine the consistency of the predictor's forecast data with other predictors.
[0119] Among them, prediction data consistency refers to the degree of agreement between the prediction data currently output by one predictor and the prediction data currently output by other predictors.
[0120] For each predictor, the control device compares its output probability distribution of motion direction, head motion angular velocity, and head motion amplitude with the corresponding outputs of other predictors: for motion direction, it compares the similarity between the probability distributions given by each predictor (e.g., calculating the distance or consistency measure between distributions); for angular velocity and amplitude, it calculates the difference or deviation between them; and it combines the above comparison results in a preset manner (e.g., taking the average or the worst-case scenario) to obtain the consistency of the predictor's prediction data with other predictors. The higher the consistency, the more likely the current output of the predictor is to reflect the true motion intention.
[0121] For example, in a certain prediction, both the eye-tracking predictor and the electromyography predictor gave the judgment of turning to the right, and their direction judgments were consistent, so the consistency was high; while the historical pattern predictor gave the opposite direction, and its consistency was correspondingly low.
[0122] S22423: Determine the confidence level of the current prediction of the predictor based on the quality of the predictor's input signal and the consistency of the prediction data.
[0123] The control device integrates the determined input signal quality with the consistency of the prediction data from each predictor according to a preset combination method. For example, it assigns weights to both and performs weighted summation or weighted product, then normalizes the result to ensure the confidence level falls within a preset range, thus obtaining the confidence level of the current prediction of that predictor. This confidence level reflects both the reliability of the signal itself and whether the prediction result matches other information sources, providing a basis for determining subsequent fusion weights. A high confidence level is assigned when the input signal quality is high and highly consistent with other predictors; a low confidence level is assigned when the signal quality is poor or significantly inconsistent with other predictors.
[0124] For example, if a predictor has a high-quality input signal and its judgment is consistent with that of other predictors, its confidence level is set to high; if another predictor has a decent signal quality but its direction judgment is opposite to that of other predictors, its confidence level is adjusted accordingly to lower.
[0125] In this embodiment, the reliability of the current prediction of the predictor is evaluated from two dimensions: the quality of the input signal and the consistency of the prediction data, and the confidence level is determined accordingly. This allows the confidence level to reflect both the reliability of the signal acquisition layer and the consistency between multi-source predictions, avoiding misjudgments caused by single-dimensional evaluation. This provides an accurate basis for the reasonable allocation of fusion weights and improves the overall reliability of head motion prediction parameters.
[0126] In one embodiment, after step S20 or step S2243, i.e. after obtaining the head motion prediction parameters, the following steps are specifically included: S201: Measure the uncertainty of the head motion prediction parameters to obtain the uncertainty index of the head motion prediction parameters.
[0127] The uncertainty index is a quantitative indicator used to measure the reliability of head movement prediction parameters; a higher value indicates greater uncertainty in the prediction. This uncertainty index is determined based on the predicted probability of the head movement direction.
[0128] After obtaining the head motion prediction parameters, the maximum probability value in the probability distribution of the motion direction is taken as the certainty of the direction prediction. An uncertainty index is constructed based on the deviation of this maximum probability value from a completely certain state; for example, the uncertainty index is obtained by subtracting the maximum probability value from 1. When the probability distribution of the motion direction is more dispersed (i.e., the probabilities of each direction are similar), the maximum probability value is smaller, and the uncertainty index is larger, indicating that the prediction is more uncertain. When the probability distribution is more concentrated, the maximum probability value is larger, and the uncertainty index is smaller. This uncertainty index is then used to determine the current pre-compensation mode.
[0129] For example, in one prediction, the probability of predicting the right direction is significantly higher than that of other directions, resulting in a smaller uncertainty index; in another prediction, the probability values of multiple directions are relatively close, resulting in a larger uncertainty index.
[0130] S202: When the uncertainty index is greater than the preset threshold, the current pre-compensation mode is determined to be the conservative compensation mode.
[0131] The control device compares the uncertainty index with a preset threshold. When the uncertainty index exceeds the preset threshold, the reliability of the current head movement prediction is deemed insufficient, and the current pre-compensation mode is set to conservative compensation mode. This preset threshold can be pre-set and stored in the device based on the device's prediction accuracy statistics and the user's sensitivity to motion sickness. In conservative compensation mode, the compensation intensity applied during subsequent pre-compensation is correspondingly reduced to avoid applying excessive compensation when the prediction direction may be incorrect, which could cause adverse discomfort.
[0132] For example, the preset threshold can be 0.4; if the directional probability distribution is scattered in a certain prediction and the uncertainty index exceeds the preset threshold, the system will switch the current pre-compensation mode to the conservative compensation mode so as to apply compensation with a smaller intensity.
[0133] S203: When the uncertainty index is less than or equal to the preset threshold, the current pre-compensation mode is determined to be the normal compensation mode.
[0134] When the uncertainty index is less than or equal to a preset threshold, the reliability of the current head motion prediction is deemed to meet the requirements, and the current pre-compensation mode is determined to be the normal compensation mode. The difference between the normal compensation mode and the conservative compensation mode lies in the pre-compensation intensity: the pre-compensation intensity of the conservative compensation mode is lower than that of the normal compensation mode. That is, in the normal compensation mode, compensation is applied in full according to the attitude compensation amount, while in the conservative compensation mode, compensation is applied according to the reduced intensity. The switching between the two modes is performed immediately after each prediction result is generated, allowing the pre-compensation intensity to adaptively change with the prediction reliability.
[0135] For example, if the directional probability distribution is concentrated in a certain prediction and the uncertainty index does not exceed the preset threshold, the system determines it to be a normal compensation mode and pre-compensates for the head movement with a relatively greater compensation intensity.
[0136] In this embodiment, the uncertainty of the head motion prediction parameters is measured, and the system adaptively switches between conservative compensation mode and normal compensation mode based on the comparison between the uncertainty index and the preset threshold. The pre-compensation intensity of the conservative compensation mode is lower than that of the normal compensation mode, so that the pre-compensation intensity matches the prediction reliability. When the prediction is reliable, phase mismatch is fully eliminated, and when the prediction is uncertain, the adverse discomfort caused by overcompensation is avoided, thus balancing the compensation effect and the user comfort.
[0137] In one embodiment, after determining the normal compensation mode, step S40, which involves pre-adjusting the rendering pose of the virtual camera in the virtual reality device based on the pose compensation amount, specifically includes the following steps: S400: Based on the determined current pre-compensation mode and pose compensation amount, pre-adjust the rendering pose of the virtual camera in the virtual reality device to adjust the pre-compensation intensity of the virtual scene.
[0138] After determining the current pre-compensation mode and obtaining the pose compensation amount, the corresponding compensation intensity coefficient is first determined based on the current pre-compensation mode (a smaller compensation intensity coefficient corresponds to the conservative compensation mode, and a larger compensation intensity coefficient corresponds to the normal compensation mode). Then, the pose compensation amount is scaled using this compensation intensity coefficient to obtain the actual compensation amount applied. Subsequently, this actual compensation amount is superimposed on the rendering pose of the virtual camera, completing the pre-adjustment of the rendering pose before the user's head movement occurs. Thus, regardless of whether the current mode is normal or conservative, the pre-adjustment is performed according to the compensation intensity coefficient corresponding to that mode, causing the pre-compensation intensity obtained by the virtual scene to change with the current pre-compensation mode, thereby achieving adaptive adjustment of the pre-compensation intensity.
[0139] For example, if a prediction is determined to be in a conservative compensation mode, the attitude compensation amount is scaled down with a smaller compensation intensity coefficient before being applied; while if it is determined to be in a normal compensation mode, a larger compensation intensity coefficient is applied to give the virtual scene stronger pre-compensation.
[0140] In this embodiment, the rendering pose of the virtual camera is pre-adjusted according to the determined current pre-compensation mode and pose compensation amount, so that the pre-compensation intensity can be adjusted as needed according to the prediction reliability. This ensures sufficient phase alignment under reliable prediction conditions and avoids visual anomalies caused by over-compensation under unreliable prediction conditions, thereby improving the rationality of pre-compensation control and user experience.
[0141] In one embodiment, such as Figure 5 As shown, step S30, which involves predicting the motion perception of the vestibular system based on head motion prediction parameters to calculate the posture compensation amount required by the virtual reality device when the user's head moves, specifically includes the following steps: S31: Based on the head motion prediction parameters, the user's current head posture and angular velocity, and the user's head motion pattern characteristics, predict the user's head motion trajectory at the next moment to obtain the head motion prediction trajectory.
[0142] Among them, the head motion prediction trajectory refers to the predictive description of the change of the user's head angle (which may include angular velocity and angular acceleration) over a period of time from the current moment.
[0143] The control device uses the predicted direction, angular velocity, and amplitude of head motion prediction parameters as target constraints for the trajectory. It uses the user's current head posture and angular velocity, acquired in real-time by the inertial measurement unit, as the initial conditions for the trajectory. Furthermore, it uses head motion pattern characteristics as prior constraints for the trajectory shape (e.g., calling the user's usual angular velocity curve template). Through trajectory generation calculations, it predicts the change in the user's head rotation angle over time from the current moment, thus obtaining the predicted head motion trajectory. This trajectory is based on the current actual state and conforms to the user's individual movement habits, therefore it can accurately describe the entire process of the impending head motion.
[0144] For example, starting with the user's current head posture and angular velocity, and combining it with their usual angular velocity curve template, the process of the head turning angle changing from small to large and then stabilizing over a period of time can be predicted, thus obtaining the predicted trajectory of the head movement.
[0145] S32: Based on the head motion prediction trajectory, predict the vestibular system perception of the user when making head movements, and generate a motion perception prediction signal of the vestibular system.
[0146] Among them, motion perception prediction signal refers to a predictive description of the motion sensory signal that the vestibular system will generate during an upcoming head movement, and it includes at least the angular velocity sensing component of the vestibular system.
[0147] The control device takes the predicted head movement trajectory as input and extrapolates the vestibular system's response during head movement according to a pre-established mapping describing the correspondence between head movement and motion perception. This results in a time-varying vestibular system motion perception signal, which is then output as the vestibular system's motion perception prediction signal. Since this signal is derived in advance based on the predicted trajectory, the expected motion sensation from the vestibular system can be known before the actual head movement, thus providing a benchmark for calculating the phase compensation amount.
[0148] For example, based on the predicted head rotation process, it can be deduced that the vestibular system will have a time-varying angular velocity perception during head rotation, and a motion perception prediction signal can be generated accordingly.
[0149] S33: Based on motion perception prediction signals, calculate the amount of posture compensation required by the virtual reality device when the user's head moves.
[0150] The posture compensation amount is used to align the visual motion signal of the virtual reality device with the motion perception prediction signal in phase.
[0151] The control device calculates the required posture compensation for the virtual reality device based on the generated motion perception prediction signal. The calculation is based on the following: In a real-world scene, the image changes naturally with head movement, and the visual motion signal corresponds to the direction and magnitude of the head turn. However, in a virtual reality environment, because the virtual camera moves synchronously with the head, the screen image remains essentially stationary in the screen coordinate system, meaning the visual motion signal is approximately zero. This results in a phase mismatch between the visual motion signal and the motion perception signal generated by the vestibular system, leading to sensory conflict. Therefore, this step uses the constraint that the compensated visual motion signal matches the motion perception prediction signal in both phase and amplitude. It then solves for the required compensation amount to achieve this equality. Specifically, during head movement, the virtual scene is pre-generated to produce a motion corresponding in phase and amplitude to the expected vestibular motion. This compensation amount is then output to the rendering stage as the required posture compensation for the virtual reality device during user head movement. Since this compensation amount is pre-calculated based on the predicted vestibular motion perception signal, the visual motion signal and the vestibular system's motion perception signal can be aligned in phase, thus providing compensation conditions before sensory conflict occurs. In other embodiments, other methods may be used to calculate the attitude compensation amount, as described below, and will not be repeated here.
[0152] In this embodiment, a head motion prediction trajectory is obtained by combining head motion prediction parameters, current head posture and angular velocity, and user head motion pattern characteristics. Then, a motion perception prediction signal is generated based on the vestibular system perception based on the trajectory. The posture compensation amount required to align the visual motion signal with the motion perception prediction signal in phase is calculated accordingly. The calculation of the compensation amount is based on a complete, continuous head motion trajectory that conforms to the individual's movement habits, thereby making the visual presentation and vestibular expectation accurately aligned in phase, significantly improving the accuracy and effectiveness of pre-compensation.
[0153] In one embodiment, step S32, which involves predicting the vestibular system's perception during head movements based on the head movement prediction trajectory and generating a vestibular system motion perception prediction signal, specifically includes the following steps: S321: Obtain a vestibular system response model that has been pre-built or updated based on the user's historical motion data.
[0154] Among them, the vestibular system response model describes the relationship between the user's head movements and the vestibular system's motion-sensing signals; for example, the vestibular system response model can refer to a mathematical description of the correspondence between the user's head movement input and the vestibular system's motion-sensing output. The semicircular canal model is a sub-model characterizing the relationship between lymphatic flow within the semicircular canals and the deflection of the ampulla of Vater. The otolith organ model is a sub-model characterizing the otolith organs' perception of linear acceleration and the direction of gravity.
[0155] Specifically, a vestibular system response model can be pre-constructed or updated based on the user's historical motion data. For the semicircular canal model, a second-order linear system is used as the input and the output as the output. Essentially, it is a second-order linear differential equation, where the zeroth, first, and second derivative terms of the head angle, weighted by their respective coefficients, are summed to equal the head angle input. The first and second-order terms are preceded by the product of one time constant and the sum of two time constants, respectively, thus characterizing the perception lag caused by endolymphatic fluid flow lag. For the otolith organ model, its output is represented as the result of a composite vector formed by the user's linear head acceleration and the direction of gravity, processed accordingly, to reflect the otolith organ's perception characteristics of the combined effect of linear acceleration and the direction of gravity. The constructed or updated vestibular system response model is stored in the device for subsequent prediction.
[0156] The constructed or updated vestibular system response model includes at least one of the semicircular canal model and the otolith model: when both are included, the angular velocity sensing component and the linear acceleration sensing component of the vestibular system can be generated respectively; when only one is included, only the sensing component corresponding to the model is generated, and the motion sensing prediction signal is formed by the single component, or the corresponding channel of the component is set to zero and then output.
[0157] For example, a vestibular system response model can be established based on a user's historical motion data. The vestibular system response model includes the semicircular canals and the otoliths. The semicircular canals are expressed as a second-order linear system with two time constants, one of which is used to characterize the slow recovery process of endolymph flow and the other is used to characterize its rapid response process. The output of the otoliths is expressed as a function of the composite vector of the linear acceleration of the user's head and the direction of gravity.
[0158] S322: Obtain the pre-calibrated vestibular system response parameters of the user, and update the parameters of the vestibular system response model based on the vestibular system response parameters.
[0159] Among them, the vestibular system response parameters refer to the specific values assigned to the undetermined parameters in the vestibular system response model (such as the time constant representing the hysteresis of endolymph flow in the semicircular canal model) that reflect the vestibular characteristics of the individual user.
[0160] The control device can first acquire pre-calibrated vestibular system response parameters of the user. These parameters are obtained by simultaneously collecting head motion data and fitting vestibular system response data during a standardized head rotation process performed by the user in a standard head rotation scenario. The acquired vestibular system response parameters then replace the default values of the corresponding parameters in the vestibular system response model, thereby updating the model parameters so that the updated model reflects the individual user's vestibular response characteristics. If the user is using the device for the first time or their vestibular system response parameters are not yet stored in the device, the vestibular system response parameter acquisition process is executed first, followed by the model parameter update.
[0161] For example, after a user completes a standardized head rotation test, the system obtains their personalized vestibular system response parameters and writes these parameters into their vestibular system response model, updating the model from a general state to an individualized state.
[0162] S323: Based on the head movement prediction trajectory, call the updated vestibular system response model to predict the vestibular system motion perception signal when the user performs head movements, and generate the vestibular system motion perception prediction signal.
[0163] The control device can use the obtained head motion prediction trajectory as input to the updated vestibular system response model, driving the corresponding sub-models in the model to perform response deduction, thereby obtaining the change of motion perception signal generated by the vestibular system over time during the user's upcoming head movement. At least the angular velocity perception component of the vestibular system is provided, and a linear acceleration perception component is provided when the vestibular system response model includes an otolith model. When the motion perception prediction signal contains both angular velocity and linear acceleration perception components, they together constitute the input for subsequent compensation calculations. The angular velocity perception component is used to determine the compensation attitude offset of the virtual camera, and the linear acceleration perception component is used to determine the translation compensation and / or tilt compensation of the virtual scene. When only the angular velocity perception component is included, only compensation for the rotational attitude direction is performed.
[0164] In this embodiment, a vestibular system response model constructed or updated based on the user's historical motion data is obtained, and the model parameters are updated with pre-calibrated user vestibular system response parameters. Then, the updated model is called based on the head motion prediction trajectory to generate a motion perception prediction signal of the vestibular system. This upgrades the vestibular perception prediction from a general model to an individualized model, which can accurately reflect the individual differences in vestibular responses of different users, thereby significantly improving the accuracy of the motion perception prediction signal and laying the foundation for subsequent accurate calculation of posture compensation.
[0165] In one embodiment, before step S321, the user needs to be prompted to perform a standard head rotation movement to collect head movement and eye movement data during this movement. Based on this data, the user's vestibular system response parameters are analyzed to obtain personalized vestibular system response parameters. These parameters are then used to personalize the virtual reality device during actual use. Specifically, the vestibular system response parameters can be acquired according to a preset parameter acquisition process when the user first uses the virtual reality device or during the initial use and activation of the device.
[0166] The preset response parameter acquisition process specifically includes the following steps: S01: Prompt the user to perform a preset standard head rotation action. The standard head rotation action includes at least sinusoidal oscillation, step rotation, and random scanning.
[0167] When a user first uses the virtual reality device or wears and starts the device, the system prompts the user to perform preset standard head rotation movements through a virtual scene prompt interface or voice guidance. The guidance content includes at least three types of movements: sinusoidal oscillation (i.e., the head rotates left and right or up and down in an approximately sinusoidal pattern), step rotation (i.e., the head quickly turns from a stationary position to a certain angle and holds), and random saccade (i.e., the head turns in random directions and amplitudes). When prompting the user to perform the movements, the system provides corresponding movement demonstrations and rhythm guidance to ensure that the user's movement amplitude and speed fall within the preset data collection range, thereby ensuring the validity of subsequent calibration data.
[0168] For example, after the user starts the device, a guide screen is displayed in the virtual scene, prompting the user to complete actions such as swinging left and right, quickly turning the head and holding, and turning the head in random directions.
[0169] S02: Collect head movement data and eye movement data when the user performs a standard head rotation action to obtain standard head movement data of the user in a standard head rotation scenario.
[0170] The control device synchronously collects the user's head motion data, including head rotation angle, angular velocity, and linear acceleration, through an inertial measurement unit, and synchronously collects the user's eye movement data through an eye-tracking component. This eye movement data includes information on the reverse eye movement caused by the vestibular-ocular reflex. The collected data is aligned under a unified time reference and motion artifacts and abnormal segments are removed to form standard head motion data for the user in a standard head rotation scenario. Because this data is collected under standardized and reproducible movements, it can serve as a reliable input for calibrating the vestibular system response parameters.
[0171] For example, during the process of a user completing a standard head rotation movement, the changes in their head rotation angle and angular velocity over time, as well as the corresponding eye movements, are recorded simultaneously to form standard head movement data.
[0172] S03: Based on standard head movement data, the least squares method is used to fit the user's vestibular system response data to generate personalized vestibular system response parameters for the user.
[0173] Among them, the vestibular system response parameters are used to characterize the mapping relationship between the user's head movement input and the vestibular system response output.
[0174] The control device uses head motion input (e.g., changes in head angle over time) from standard head motion data as the independent variable in the fitting model, and the vestibular system response output indirectly reflected by eye-tracking data as the fitting target. It employs the least squares method to fit each undetermined parameter: constructing a sum of squared errors function with each undetermined parameter as an unknown, and finding the optimal value for each parameter by minimizing this sum of squared errors, thereby generating personalized vestibular system response parameters for the user. The obtained vestibular system response parameters characterize the mapping relationship between the user's head motion input and vestibular system response output, and are organized into a mapping table indexed by motion input intervals and corresponding vestibular output results. This table is stored along with the parameters for use in updating the vestibular system response model and subsequent prediction calculations.
[0175] For example, when a user uses the device for the first time, the calibration process can be completed in a few minutes. The head turning angle data under a user's standard movement is used as input, and the vestibular response observation data is used as the target. A set of parameters reflecting the vestibular response characteristics of the individual user is obtained through least squares fitting, and a "motor input-vestibular output" mapping table is established and saved accordingly.
[0176] In this embodiment, before use, the user is prompted to complete standard head rotation movements such as sinusoidal oscillation, step rotation, and random saccades. During the movement, head motion data and eye movement data are collected simultaneously to form standard head motion data. Then, the least squares method is used to fit and generate personalized vestibular system response parameters for the user. These parameters obtain and accurately represent the user's "motor input-vestibular output" mapping relationship under standardized and reproducible conditions, thereby providing a reliable basis for the individualized updating of the vestibular system response model and enabling subsequent pre-compensation to adapt to the vestibular characteristics of different users.
[0177] In one embodiment, the vestibular system response model includes a semicircular canal model and an otolithic organ model. Step S323, which involves predicting the vestibular system's perception during head movements based on the head movement prediction trajectory and generating a vestibular system motion perception prediction signal, specifically includes the following steps: S3231: Based on the trajectory of head turning angle changing with time in the head movement prediction trajectory, an updated semicircular canal model is used to predict the ampullary crest deflection angle when the user performs head movements, which is used as the angular velocity sensing component of the vestibular system.
[0178] The ampullary crest deflection angle refers to the angle at which the ampullary crest deflects when lymph flows through the semicircular canals under the influence of head angular acceleration. Its magnitude reflects the intensity of the angular acceleration stimulus received by the semicircular canals and is the direct source of angular velocity perception in the vestibular system. The angular velocity sensing component refers to the sensory signal component perceived by the vestibular system that corresponds to the head rotation angular velocity.
[0179] The control device can extract the trajectory data of the head turning angle changing with time from the head movement prediction trajectory, and use it as the input of the updated semicircular canal model. The second-order linear system can deduce the ampullary crest deflection process caused by endolymph flow according to its response characteristics to the head turning angle, that is, obtain the change of the ampullary crest deflection angle with time, and output the ampullary crest deflection angle as the angular velocity sensing component of the vestibular system to the subsequent links.
[0180] For example, the predicted head rotation process is input into the updated semicircular canal model to obtain the corresponding ampullary crest deflection process, which is then used as the angular velocity sensing component corresponding to this head rotation.
[0181] S3232: Based on the head movement prediction trajectory, the updated otolith model is used to predict the otolith membrane displacement when the user performs head movements, which is used as the linear acceleration sensing component of the vestibular system.
[0182] Among them, otolithic membrane displacement refers to the displacement of the otolithic membrane in the otolith apparatus relative to its equilibrium position under the combined action of linear acceleration of the head and gravity. The linear acceleration sensing component refers to the sensory signal component perceived by the vestibular system that corresponds to the linear acceleration of the head.
[0183] The control device calculates the linear acceleration of the head at each moment based on the predicted trajectory of head movement, and combines it with the direction of gravity determined by the accelerometer to form a composite vector of linear acceleration and gravity direction. This composite vector is input into the updated otolith organ model, and the model deduces the displacement process of the otolith membrane according to its response characteristics to the composite vector, that is, the change of otolith membrane displacement over time is obtained, and the otolith membrane displacement is output as the linear acceleration sensing component of the vestibular system.
[0184] S3233: Outputs the angular velocity sensing component and the linear acceleration sensing component as a motion sensing prediction signal.
[0185] In this step, the obtained angular velocity sensing component and the obtained linear acceleration sensing component are aligned and combined along the time axis under a unified time reference. If necessary, the two components are subjected to dimension unification and normalization. Then, they are encapsulated into a multi-component signal that varies with time according to a preset data format, thus obtaining the vestibular system's motion perception prediction signal, which is output to the posture compensation calculation stage. Therefore, the output motion perception prediction signal simultaneously contains the vestibular system's perception information of angular velocity and linear acceleration, and can relatively completely reflect the motion sensations that the vestibular system may generate during the user's upcoming head movements.
[0186] In this embodiment, the ampullary crest deflection angle is predicted using an updated semicircular canal model, and the otolithic membrane displacement is predicted using an updated otolithic organ model. These two are then output as angular velocity sensing components and linear acceleration sensing components, respectively, as motion sensing prediction signals. The generated motion sensing prediction signals correspond to the two types of receptors in the vestibular system in terms of physical origin, thus possessing a clear physiological correspondence and high reliability. They can more completely and accurately reflect the user's impending motion sensation, providing a reliable benchmark for the accurate calculation of subsequent compensation amounts.
[0187] In one embodiment, step S33, which involves calculating the pose compensation amount required by the virtual reality device when the user's head moves based on the motion perception prediction signal, specifically includes the following steps: S331: Based on the head movement prediction trajectory, determine the prediction start time and prediction end time of the user's head movement, and determine the pre-adjustment time period based on the prediction start time and prediction end time.
[0188] The prediction start time refers to the moment when the predicted head movement is about to begin; the prediction end time refers to the moment when the predicted head movement is about to end. The pre-adjustment period is the processing time reserved for applying pre-compensation. The start time of the pre-adjustment period is earlier than the prediction start time.
[0189] The control device analyzes the predicted trajectory of head movement, taking the moment when the head angle or angular velocity first shows a significant change as the prediction start time and the moment when the head angle or angular velocity returns to a stable state as the prediction end time. Then, based on the prediction start time, it traces forward by a preset lead amount to obtain the start time of the pre-adjustment period, and uses the prediction end time (or an additional release period thereafter) as the end time of the pre-adjustment period, thus determining the pre-adjustment period. Because the start time of the pre-adjustment period is earlier than the prediction start time, the compensation action can be initiated before the actual head movement occurs.
[0190] S332: Integrate the angular velocity sensing component in the motion sensing prediction signal over the pre-adjustment time interval to obtain the compensation attitude offset that the virtual camera needs to be pre-adjusted.
[0191] Within a defined pre-adjustment period, the angular velocity sensing component in the motion perception prediction signal is integrated over time, that is, its values at each time point in the pre-adjustment period are summed to obtain the cumulative angle, thereby obtaining the compensation attitude offset amount that the virtual camera needs to pre-adjust.
[0192] The portion of the pre-adjustment time period earlier than the prediction start time corresponds to the introduction of compensation. The vestibular angular velocity sensing component corresponding to this portion has a value close to zero, thus mainly playing a smoothing role. The portion from the prediction start time constitutes the main body of the compensation. This compensation attitude offset is used to adjust the rotation attitude of the virtual camera. Its offset direction is opposite to the head rotation direction represented by the angular velocity sensing component, so that the image produces corresponding visual motion in the opposite direction to the head rotation, thereby matching the angular velocity perception of the user's vestibular system.
[0193] S333: Outputs the compensated pose offset of the virtual camera as the pose compensation amount required by the virtual reality device.
[0194] The control device encapsulates the calculated virtual camera's compensated pose offset according to a preset data format and adds its corresponding pre-adjustment time period information. This information is then output to the rendering stage as the required pose compensation for the virtual reality device, for use in subsequent pre-adjustments of the virtual camera's rendering pose. The output pose compensation includes both the magnitude and direction of the offset angle to be applied, as well as the time information that it should be applied, thus enabling direct execution by the rendering stage.
[0195] In this embodiment, the prediction start time and prediction end time are determined based on the head motion prediction trajectory, and a pre-adjustment time period is determined based on the start time being earlier than the prediction start time. Then, the angular velocity sensing component is integrated over this time period to obtain a compensation posture offset in the opposite direction to the head rotation direction, which is then output as the posture compensation amount. This ensures that the pre-compensation has an advance in time and corresponds to the vestibular angular velocity sensing in direction and amplitude, thereby making the visual motion signal and the vestibular motion sensing signal precisely aligned in phase, effectively avoiding compensation lag and direction mismatch.
[0196] In one embodiment, step S333, namely the compensation pose offset of the virtual camera, outputs the pose compensation amount required by the virtual reality device, specifically including the following steps: S3331: Determine the translation compensation amount and / or tilt compensation amount of the virtual scene based on the linear acceleration sensing component in the motion sensing prediction signal.
[0197] Translation compensation and tilt compensation are used to adjust the translational motion and tilt angle of the virtual scene, respectively. Translation compensation refers to the amount of compensation applied to make the virtual scene produce translational motion that is compatible with the perception of linear acceleration; tilt compensation refers to the amount of compensation applied to make the tilt angle of the virtual scene compatible with the direction of gravity perception.
[0198] The control device integrates the linear acceleration sensing component in the motion sensing prediction signal over a pre-adjustment time period to obtain the corresponding displacement, thereby determining the translation compensation amount of the virtual scene. At the same time, based on the component in the linear acceleration sensing signal that reflects the change in the direction of gravity, the device determines the required tilt degree of the virtual scene.
[0199] S3332: Outputs the translation compensation and / or tilt compensation of the virtual scene, as well as the compensation posture offset of the virtual camera, as the posture compensation amount required by the virtual reality device.
[0200] The control device aggregates the determined translation and / or tilt compensation amounts of the virtual scene along with the compensated posture offset of the virtual camera. These are then organized according to a pre-adjusted time period under a unified time base and encapsulated into a single set of posture compensation values in a preset data format. This ensures that the posture compensation amounts required by the virtual reality device simultaneously include three types of information: the virtual camera's rotation offset, the virtual scene's translation compensation, and tilt compensation. Upon receiving these posture compensation values, the rendering process can adjust the virtual camera's rotation, position, and the virtual scene's tilt angle accordingly based on each type of compensation information.
[0201] For example, the compensation for pose offset, translation compensation, and tilt compensation can be encapsulated and output together, so that during subsequent rendering, the orientation of the virtual camera can be adjusted, and the virtual scene can be translated and tilted accordingly.
[0202] In this embodiment, the translation compensation amount and / or tilt compensation amount of the virtual scene are determined based on the linear acceleration sensing component, and output together with the compensation attitude offset amount of the virtual camera as the attitude compensation amount. This allows the pre-compensation to not only cover the rotational motion caused by angular velocity sensing, but also the translational and tilting motion caused by linear acceleration sensing. As a result, the visual motion of the virtual scene matches the vestibular perception in both rotational and translational dimensions, significantly improving the integrity of phase alignment and the user's comfort in mobile scenes.
[0203] In one embodiment, such as Figure 6 As shown, step S40, which involves pre-adjusting the rendering pose of the virtual camera in the virtual reality device based on the pose compensation amount, specifically includes the following steps: S41: Divide the pre-adjustment process into three phases: the pre-adjustment initiation phase, the pre-adjustment execution phase, and the pre-adjustment release phase.
[0204] The pre-adjustment initiation phase is the time period from the pre-adjustment initiation time to the prediction start time; the pre-adjustment execution phase is the time period from the prediction start time to the prediction end time; and the pre-adjustment release phase is the preset time period after the prediction end time.
[0205] In other words, based on the predicted start and end times determined by the head movement prediction trajectory, and the lead time required for pre-compensation, the entire pre-adjustment process is divided into three stages in chronological order: the period from the pre-adjustment start time to the prediction start time is the pre-adjustment start stage, which smoothly introduces the compensation amount from zero; the period from the prediction start time to the prediction end time is the pre-adjustment execution stage, which corresponds to the actual occurrence of the user's head movement; and the preset period after the prediction end time is the pre-adjustment release stage, which smoothly removes the compensation amount. This stage division allows pre-compensation to employ different mechanisms at different stages, avoiding abrupt changes in the compensation amount.
[0206] S42: In the pre-adjustment start-up phase, a preset activation function is used to smoothly transition the attitude compensation amount from zero to the target compensation amount, which is the value of the attitude compensation amount at the start of the prediction.
[0207] The preset activation function refers to a function whose value increases smoothly over time, exhibiting a low rate of change at both ends. The preset activation function can be the Sigmoid function.
[0208] During the pre-adjustment initiation phase, the time progress within this phase is used as the independent variable of the preset activation function. The attitude compensation amount is multiplied by the value of the preset activation function, causing the attitude compensation amount to gradually increase from zero and reach the target compensation amount at the start of prediction. The target compensation amount is the value of the attitude compensation amount at the start of prediction. Since the change of the activation function at the start and end is relatively gradual, the introduction of the compensation amount will not produce visual abrupt changes.
[0209] S43: During the pre-adjustment execution phase, the rendering posture of the virtual camera is dynamically adjusted based on the changes in the motion perception prediction signal over time.
[0210] During the pre-adjustment execution phase, the required compensation amount is updated hourly based on the real-time changes (or predicted changes) of the motion perception prediction signal over time. This updates the rendering pose of the virtual camera dynamically, ensuring that the visual motion of the virtual scene remains in phase with the vestibular motion perception throughout the head movement process. Because the compensation amount changes continuously over time in this phase, the image motion corresponds point-by-point with the head movement process, rather than applying only a fixed offset.
[0211] S44: During the pre-adjustment release phase, a preset exponential decay function is used to smoothly decay the attitude compensation amount from the current value to zero, so as to avoid visual jumps at the end of the pre-compensation.
[0212] The preset exponential decay function refers to a function whose value decreases gradually over time, with the decay rate slowing down. During the pre-adjustment release phase, the time progress within this phase is used as the independent variable of the preset exponential decay function. The current posture compensation amount is multiplied by the value of the decay function, causing the posture compensation amount to smoothly decay from the current value to zero. This allows the compensation to gradually exit after the head movement ends, avoiding screen jumps caused by the compensation amount suddenly returning to zero.
[0213] For example, before the head movement begins, the posture compensation amount is gradually increased from zero according to a preset activation function until the target compensation amount is reached when the head movement begins; during the head movement, the virtual camera rendering posture is continuously adjusted according to the values of the motion perception prediction signal at different times, so that the image movement and the user's vestibular perception are always consistent; after the head movement ends, the system gradually reduces the posture compensation amount to zero according to a preset exponential decay function, and the image smoothly returns to the uncompensated state.
[0214] In this embodiment, the pre-adjustment process is divided into stages. In the pre-adjustment initiation stage, a preset activation function is used to introduce compensation. In the pre-adjustment execution stage, dynamic adjustment is made based on motion perception prediction signals. In the pre-adjustment release stage, a preset exponential decay function is used to remove compensation. This ensures that the introduction, execution and removal of pre-compensation are smooth and continuous. It not only guarantees the phase alignment effect of the entire compensation process, but also avoids visual jumps caused by sudden changes in compensation amount at the beginning and end of compensation. Thus, the visual naturalness of pre-compensation is improved without compromising immersion.
[0215] In one embodiment, the pose compensation amount includes the compensated pose offset of the virtual camera, and the translation compensation amount and / or tilt compensation amount of the virtual scene. Step S40 or steps S41-S44, which involves pre-adjusting the rendering pose of the virtual camera in the virtual reality device based on the pose compensation amount, specifically includes the following steps: S401: Based on the compensation posture offset, pre-adjust the rendering pose of the virtual camera in the virtual reality device so that the virtual camera is pre-offset by a corresponding angle in the head movement prediction direction.
[0216] The control device can pre-adjust the rendering pose of the virtual camera based on the compensated pose offset in the pose compensation amount: first, convert the compensated pose offset into the corresponding rotation matrix (or rotation quaternion), and then multiply it with the original pose matrix of the virtual camera, that is, multiply the original pose matrix by the compensated rotation matrix to obtain the compensated pose matrix, so that the virtual camera is pre-offset by a corresponding angle in the head movement prediction direction, and the offset direction is opposite to the predicted head rotation direction.
[0217] The multiplication of the aforementioned pose matrix is completed before the virtual scene enters the rendering process and before the graphics processor performs vertex shading operations. It belongs to the preprocessing stage of the rendering pipeline and therefore does not occupy additional rendering latency. The compensated pose matrix is then sent to the subsequent normal rendering process, including foveated rendering, lighting calculation, etc., all based on the compensated camera pose. This achieves pre-compensation without changing the existing rendering process, reducing the field of view, or reducing image quality.
[0218] For example, before each frame starts rendering, the compensated rotation matrix is multiplied by the original pose matrix of the virtual camera to obtain the compensated pose matrix. Then, the scene rendering for that frame is completed according to the normal process, so the user will not notice any change in the rendering process.
[0219] S402: Based on the tilt compensation amount, pre-adjust the tilt component in the orientation of the virtual camera to align the horizon of the virtual scene in the subsequent rendered image with the gravity sensing direction of the vestibular system.
[0220] Based on the tilt compensation amount in the posture compensation amount, the tilt component of the virtual camera orientation around the observation direction axis (i.e. the roll component that determines the tilt of the horizon in the picture) is pre-adjusted so that the tilt direction of the horizon of the virtual scene in the subsequent rendered picture corresponds to the gravity direction perceived by the user's vestibular system, thereby avoiding discomfort caused by the inconsistency between the horizon in the picture and the vestibular gravity perception when the head is tilted.
[0221] For example, when a user makes a head movement with a tilt component, the roll component of the virtual camera is adjusted accordingly based on the tilt compensation amount, so that the tilt of the horizon in the picture is consistent with the direction of their gravity perception.
[0222] S403: The position of the virtual camera is pre-adjusted based on the translation compensation amount, so that the virtual scene in the subsequent rendered image will produce a translation corresponding to the linear acceleration sensing component in the motion perception prediction signal.
[0223] Based on the translation compensation amount in the attitude compensation, the position of the virtual camera in the virtual scene coordinate system is pre-adjusted. That is, the position of the virtual camera is changed by the displacement corresponding to the translation compensation amount, so that the virtual scene in the subsequently rendered image produces a translational motion corresponding to the linear acceleration perception component in the motion perception prediction signal. Since the change in the position of the virtual camera directly causes the displacement of the scene in the image, the pre-adjustment of the virtual camera position can make the image produce a translation that matches the linear acceleration perception.
[0224] For example, the position of the virtual camera can be moved accordingly based on the translation compensation amount, so that the virtual scene in the picture produces a translational motion corresponding to the linear acceleration perceived by the user.
[0225] In this embodiment, the rotation component, tilt component, and position in the rendering posture of the virtual camera are pre-adjusted according to the compensation posture offset, tilt compensation, and translation compensation, so that the three degrees of freedom of the virtual camera—rotation, roll, and translation—can be in place in advance according to the vestibular perception requirements. This ensures that the visual motion of the virtual scene is in phase with the vestibular perception in all dimensions of rotation, tilt, and translation, thereby improving the completeness of pre-compensation and visual consistency.
[0226] In one embodiment, such as Figure 7 As shown, after step S40, that is, after rendering the virtual scene based on the adjusted rendering pose, the specific steps include the following: S50: Collects actual head movement parameters during the user's head rotation process.
[0227] After the user rotates their head as predicted, the inertial measurement unit in the virtual reality device continuously collects actual head motion data during the rotation, including the actual direction of rotation, angular velocity, and amplitude. This data is then processed through attitude calculation and data processing to form actual head motion parameters. This step corresponds to the aforementioned prediction process in time, ensuring that both predicted and measured head motion parameters are available within the same time window, thus providing a data basis for comparison.
[0228] For example, during a user's head-turning action, the actual direction of rotation, angular velocity, and amplitude are continuously recorded to obtain the actual head movement parameters for that head movement.
[0229] S60: When the parameter error between the actual head motion parameters and the head motion prediction parameters is greater than the corresponding preset error threshold, the motion intention prediction model used to predict the head motion prediction parameters is updated based on the actual head motion parameters.
[0230] Among them, the preset error threshold refers to the upper limit of the deviation between the predicted result and the actual result that is set in advance, and it can be set for the direction of motion, angular velocity and amplitude respectively.
[0231] The control device can compare the obtained actual head motion parameters with the corresponding predicted head motion parameters one by one, and calculate three types of parameter errors: motion direction error, motion angular velocity error, and motion amplitude error (where the direction error is measured by the difference between the actual direction and the predicted direction, and the angular velocity error and amplitude error are measured by the relative value of their differences), and compare them with their respective preset error thresholds. When any parameter error is greater than its corresponding preset error threshold, it is determined that the prediction deviation exceeds the allowable range. Then, the actual head motion parameters are used as new supervision labels, and combined with the motion precursor signals on which the prediction is based, an update sample is formed to update the parameters of the motion intention prediction model. For example, the model parameters are iteratively adjusted according to the error backpropagation direction. The updated model is stored and used for subsequent predictions.
[0232] Building upon this, the vestibular system response model can be indirectly calibrated using eye-tracking data during head movements. During head movements, a normal vestibular-ocular reflex should drive the eyeball to rotate in the opposite direction of the head movement to maintain retinal image stability. If pre-compensation is effective, the compensation requirement of the vestibular-ocular reflex decreases, and the amplitude of eye movement correspondingly diminishes. Based on this, the vestibular-visual phase alignment effect can be evaluated by monitoring eye movement stability indicators such as the number of eye saccades and fixation drift, and the vestibular system response parameters can be corrected accordingly. Simultaneously, incremental learning can be used to continuously update individualized parameters. For example, after each preset number of head movements, newly added motion pattern features are clustered to update the head movement pattern library, and the historical prediction accuracy and fusion weights of each predictor are updated using an exponentially weighted moving average. Furthermore, the vestibular system response parameters are recalibrated at preset intervals.
[0233] For example, after a head movement is completed, the system finds that the deviation between the actual angular velocity and the predicted angular velocity exceeds a preset error threshold (e.g., the angular velocity error exceeds 20%). Therefore, the actual head movement parameters and the corresponding motion precursor signals are used as update samples to update the parameters of the motion intention prediction model. At the same time, the system detects that the user's gaze drift decreases during the head movement, and determines that the vestibular-visual phase alignment effect is good, thereby maintaining the current vestibular system response parameters.
[0234] In this embodiment, actual head motion parameters are collected during the user's head rotation. When the parameter error between the actual head motion parameters and the predicted head motion parameters exceeds a preset error threshold, the motion intention prediction model is updated based on the actual head motion parameters. This allows the prediction model to continuously correct itself based on each actual motion result, forming a closed-loop calibration mechanism. As the user's movement progresses, the model gradually approaches the user's actual movement patterns, improving prediction accuracy and pre-compensation effects, and enhancing the adaptability of the solution to different users and different usage stages.
[0235] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0236] This application also provides an electronic device, which may be the aforementioned virtual reality device or control device. For example... Figure 8 As shown, the electronic device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor. When the processor executes the computer program, it implements the steps in any of the above method embodiments, or when the processor executes the computer program, it implements the functions of each module / unit in the above device embodiments.
[0237] For example, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device.
[0238] Those skilled in the art will understand that Figure 8 The electronic device described is merely an example and does not constitute a limitation on the electronic device. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.
[0239] The aforementioned processor can be a Central Processing Unit (CPU), or 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. A general-purpose processor can be a microprocessor or any conventional processor.
[0240] The memory can be an internal storage unit of the electronic device, such as a hard drive or RAM. The memory can also be an external storage device of the electronic device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory can include both internal and external storage units of the electronic device.
[0241] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0242] This application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the steps described in the various method embodiments above.
[0243] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a corresponding device, a recording medium, 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. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0244] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0245] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0246] In the embodiments provided in this application, it should be understood that the disclosed apparatus / devices and methods can be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0247] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0248] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for controlling a virtual reality device, characterized in that, include: Real-time monitoring of body data of users wearing virtual reality devices to collect motion precursor signals that can characterize the user's head movement intentions; Based on the motion precursor signals, the user's head movement intention and movement status are predicted to obtain head movement prediction parameters; Based on the head motion prediction parameters, motion perception prediction of the vestibular system is performed to calculate the posture compensation amount required by the virtual reality device when the user's head moves. The posture compensation amount is used to align the visual motion signal of the virtual reality device with the motion perception signal of the user's vestibular system in phase. The rendering pose of the virtual camera in the virtual reality device is pre-adjusted based on the posture compensation amount, and when the user's head movement is detected, the virtual scene is rendered based on the adjusted rendering pose, thereby realizing the pre-compensated rendering of the virtual scene.
2. The method according to claim 1, characterized in that, The prediction of the user's head movement intention and movement based on the motion precursor signals, to obtain head movement prediction parameters, includes: Obtain a pre-trained motion intention prediction model, wherein the motion intention prediction model is a neural network model trained or updated based on the user's historical motion data; Based on the motion precursor signal, the motion intention prediction model is invoked to predict the user's head movement intention and movement status, so as to generate head movement prediction parameters corresponding to the head movement intention; the head movement prediction parameters include predicted movement direction, predicted movement angular velocity, and predicted movement amplitude.
3. The method according to claim 2, characterized in that, The aura signals include the user's eye-tracking pre-sagging signals, neck electromyography signals, and historical head movement data; based on the aura signals, the motion intention prediction model is invoked to predict the user's head movement intention and movement status, generating head movement prediction parameters corresponding to the head movement intention, including: Feature extraction is performed on the eye movement pre-sacrifice signal to obtain eye movement pre-sacrifice features, which include pre-sacrifice direction vector, pre-sacrifice amplitude, pre-sacrifice speed, and correlation between pre-sacrifice and historical head movements. Feature extraction is performed on the neck electromyography (EMG) signal to obtain neck EMG features, which include EMG signal amplitude, distribution of activated muscle groups, and muscle activation sequence. Feature extraction is performed on the historical head movement data to obtain the user's head movement pattern features, which include head turning angle distribution, angular velocity curve, acceleration curve, movement initiation / stop features, and eye-head movement coordination time sequence features. Based on the eye-tracking pre-sagging features, the neck electromyography features, and the head movement pattern features, the motion intention prediction model is used to predict the user's head movement intention and movement status.
4. The method according to claim 1, characterized in that, The step of performing motion perception prediction of the vestibular system based on the head motion prediction parameters, to calculate the posture compensation amount required by the virtual reality device when the user's head moves, includes: Based on the head motion prediction parameters, the user's current head posture and angular velocity, and the user's head motion pattern characteristics, the user's head motion trajectory at the next moment is predicted to obtain the head motion prediction trajectory. Based on the head movement prediction trajectory, the vestibular system perception of the user during head movement is predicted, and the motion perception prediction signal of the vestibular system is generated. Based on the motion perception prediction signal, the posture compensation amount required by the virtual reality device when the user's head moves is calculated. The posture compensation amount is used to align the visual motion signal of the virtual reality device with the motion perception prediction signal in phase.
5. The method according to claim 4, characterized in that, The step of predicting the vestibular system's perception during head movements based on the predicted head movement trajectory, and generating a motion perception prediction signal for the vestibular system, includes: Obtain a vestibular system response model pre-constructed or updated based on the user's historical motion data, the vestibular system response model being used to describe the relationship between the user's head movements and the motion perception signals of the vestibular system; Obtain the pre-calibrated vestibular system response parameters of the user, and update the parameters of the vestibular system response model based on the vestibular system response parameters, wherein the vestibular system response parameters are calibrated based on head motion data collected by the user in a standard head rotation scenario; Based on the head movement prediction trajectory, the updated vestibular system response model is invoked to predict the motion perception signal of the vestibular system when the user performs head movements, and the motion perception prediction signal of the vestibular system is generated. The motion perception prediction signal includes at least the angular velocity perception component of the vestibular system.
6. The method according to claim 1, characterized in that, The pre-adjustment of the rendering pose of the virtual camera in the virtual reality device based on the pose compensation amount includes: The pre-adjustment process is divided into three phases: the pre-adjustment initiation phase, the pre-adjustment execution phase, and the pre-adjustment release phase. In the pre-adjustment start-up phase, a preset activation function is used to smoothly transition the attitude compensation amount from zero to the target compensation amount, where the target compensation amount is the value of the attitude compensation amount at the prediction start time. During the pre-adjustment execution phase, the rendering posture of the virtual camera is dynamically adjusted based on the change of the motion perception prediction signal over time. During the pre-adjustment release phase, a preset exponential decay function is used to smoothly decay the attitude compensation amount from the current value to zero, so as to avoid visual abrupt changes at the end of the pre-compensation.
7. The method according to claim 1, characterized in that, After obtaining the head motion prediction parameters, the method includes: The uncertainty of the head motion prediction parameters is measured to obtain the uncertainty index of the head motion prediction parameters; the uncertainty index is determined based on the prediction probability of the head motion direction. When the uncertainty index is greater than the preset threshold, the current pre-compensation mode is determined to be the conservative compensation mode. When the uncertainty index is less than or equal to the preset threshold, the current pre-compensation mode is determined to be the normal compensation mode, and the pre-compensation intensity of the conservative compensation mode is lower than that of the normal compensation mode. The step of pre-adjusting the rendering pose of the virtual camera in the virtual reality device based on the pose compensation amount includes: According to the determined current pre-compensation mode and the posture compensation amount, the rendering pose of the virtual camera in the virtual reality device is pre-adjusted to adjust the pre-compensation intensity of the virtual scene.
8. The method according to any one of claims 1 to 7, characterized in that, After rendering the virtual scene based on the adjusted rendering pose, the method further includes: Collect the actual head movement parameters during the user's head rotation process; When the parameter error between the actual head motion parameters and the head motion prediction parameters is greater than the corresponding preset error threshold, the motion intention prediction model used to predict the head motion prediction parameters is updated based on the actual head motion parameters.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the virtual reality device control method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the virtual reality device control method according to any one of claims 1 to 8.
