A predictive redirection roaming optimization method and terminal based on probability density distribution
By using the probability density distribution method in virtual reality to predict user movement trends and the impact of obstacles, and optimizing the redirection roaming strategy, it solves the problem of virtual space and real space size mapping in traditional technology, and improves the user experience and the versatility of the reset strategy. .
Patent Information
- Application Number
- CN202410237822.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-01
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-03-01
AI Technical Summary
Traditional redirection walking technology has mapping problems when dealing with different sizes of virtual space and real space. It lacks prediction of user roaming movement trends, is not highly optimized, and may cause users to collide again in complex layouts. It has insufficient flexibility and versatility. .
Adopt the prediction of prediction based on probability density distribution to the roaming optimization method. By calculating the potential area energy chart of virtual and real space, fusion energy chart to obtain the optimal resetting direction, consider user intent and obstacles, improve the accuracy and weight of prediction and heavy weight The versatility of the setting strategy.
It effectively reduces physical collisions, increases continuous walking distance, improves the flexibility and applicability of reset strategies, and ensures the robustness of prediction results.
Smart Images

Figure CN118096816B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of virtual reality and human-computer interaction, and in particular relates to a prediction redirection roaming optimization method and a terminal based on probability density distribution. Background Art
[0002] Real walking in virtual reality can enhance the immersion and realism of the virtual roaming user experience, and has become one of the current research hotspots. Although the traditional method can use peer-to-peer mapping to achieve virtual roaming based on real walking, it is difficult to solve the mapping problem when the virtual space and the real space are of different sizes. The current main solution is to use redirected walking technology, which actively adjusts the user's real movement trend without the user noticing by adding a slight offset between the user's virtual and real movements, thereby achieving roaming in a small range of real space in a large range of virtual scenes. Limited by the user's sensitive perception ability, the motion deviation used in redirected walking can only adjust the user's movement to a certain extent, affecting the user's experience. To this end, the redirected walking technology mainly adopts a reset strategy, actively intervenes in the user's roaming when a boundary collision occurs, and directly adjusts the user's forward direction to return to the real space. Although the reset strategy can ensure the smooth progress of the roaming process, it still has the following defects:
[0003] 1. Traditional reset strategies rarely consider changes in user roaming movement trends, lack prediction of future movement status, and have a low degree of optimization;
[0004] 2. The mainstream reset strategy uses inherent patterns or adjusts directions to guide users. When the real space layout is more complex, it may cause users to collide again soon after resetting, and the technical flexibility is low;
[0005] 3. Existing reset strategies are generally designed for specific redirection walking methods. When used in combination with other redirection methods, performance may degrade, and their universality needs to be improved. Summary of the invention
[0006] The present invention provides a prediction redirection roaming optimization method based on probability density distribution, which can optimize the redirection reset strategy in various types of virtual spaces and real spaces and effectively ensure the robustness of the prediction results.
[0007] Methods include:
[0008] Step 1: Calculate the potential area energy map of the virtual space and the real space reflecting the user's future walking probability distribution according to the input static space layout of the virtual space and the real space and the dynamic user state;
[0009] Step 2, creating a space fusion energy map by merging the energy maps of the virtual space and the real space;
[0010] Step 3: Calculate the energy diagram of the real space under different reset directions to obtain the optimal reset direction that provides the maximum spatial fusion energy.
[0011] It should be further explained that, in step 1, the factors affecting the user's decision are modeled as three energy components respectively, and the energy components are combined to generate the final energy map M of each space.
[0012] It should be further explained that the motion state of the user at time τ is defined as χ τ =(p τ ,v τ ), p τ Indicates position, v τ Indicates direction; sets the user's average walking speed to l a , the next position to run is p τ+1 The circular area of user movement distribution is D n , D n The radius is set to 3l a , each p τ+1 ∈D n The correlation energy M(χ τ ,p τ+1 ) is calculated by multiplying the three energy components, defined as follows:
[0013] M(x τ ,p τ+1 )=E lay (p τ+1 )E int (x τ ,p τ+1 )A obs (p τ ,p τ+1 ) (1)
[0014] stp τ+1 ∈D n
[0015] E lay is the energy graph of the static scene layout, E int is the energy distribution function diagram for predicting user motion intention, A obs is the energy attenuation coefficient taking into account the influence of nearby obstacles.
[0016] It should be further explained that in the method, the energy graph E of the static scene layout lay The position energy model is used for calculation, which specifically includes the following calculation process:
[0017] set up It is a free walking area. is the obstacle area, S free ∪S obs =S, the energy E corresponding to the position p∈S lay It is expressed as:
[0018]
[0019] where λ is a scaling weight used to adjust the influence of the distance between p and its nearest obstacle q, and ||·||2 represents the L2 norm function.
[0020] It should be further explained that in the method, the energy distribution function diagram E for predicting the user's motion intention int The probabilistic energy modeling is performed based on the user's forward direction and walking speed, and the final energy result is obtained by combined calculation. The specific steps include the following:
[0021] Assume the user is at position p τ and towards direction v τ , the next position is distributed in D n p τ around;
[0022] The probability of the user choosing the direction of movement is modeled in the form of Gaussian distribution, and the energy function e is defined ori (x τ ,p τ+1 ) describes the user's directional intention, and its formula is as follows:
[0023]
[0024] Among them, θ(·) is a function that calculates the angle between two vectors;
[0025] Energy function e describing the user's intention to walk in a straight line dis (p τ ,p τ+1 ) is expressed as:
[0026]
[0027] By multiplying equation (3) and equation (4) element by element, we can define the equation to reach D without external influence. n Next position p τ+1 The probability energy E of the intention int (x τ ,p τ+1 ), as follows:
[0028]
[0029] It should be further explained that in the method, the energy attenuation coefficient A obsThe calculation is based on the distance and azimuth deviation between each position within the user's expected walking range and obstacles within a certain range around it, and obtains the energy attenuation caused by the surrounding obstacles to the position, thereby modeling the user's movement trend under external influence conditions.
[0030] It should be further explained that the energy attenuation coefficient A obs The calculation also includes the following steps:
[0031] Set up a virtual space S V and obstacle point q, let p τ and p τ+1 Represent the user's current and target locations respectively;
[0032] The directional influence of q is defined as:
[0033]
[0034] When q and p τ The distance between them is less than l a When , equation (6) allows q to have a significant effect;
[0035] Energy attenuation coefficient The formula is defined as:
[0036]
[0037] Through equation (7), a potential region energy map is constructed to predict the user's potential motion region, and energy reflecting the probability of the user's appearance is assigned to each location.
[0038] It should be further explained that in step 2, creating a spatial fusion energy map includes the following steps:
[0039] Given a pair of virtual spaces S V and real space S R , the user's virtual and real states are represented as and
[0040] definition correspond The virtual-to-real projection conversion function applied is based on the following:
[0041]
[0042] Where φ is and The angle between them is obtained by using formula (8) R Mapping area in
[0043] For each location Apply equation (1) to determine the corresponding potential area energy map and
[0044] The fusion energy is defined in the form of a linear equation Its model is:
[0045]
[0046]
[0047] Here, α is a scaling constant.
[0048] It should be further explained that the energy diagram E in step 3 is represented as follows:
[0049]
[0050] When reset is enabled, the user's virtual state will be frozen, select a reset angle δ from the range [-π,π] r To determine the user's true direction after the reset
[0051] Walking area Expressed as δ r The function of When δ r When the energy map E changes, the corresponding energy map E is obtained, revealing different expectations for the user's future movement; the optimization of reset is to find the optimal one that provides the maximum total energy of the two spaces. Defined as:
[0052]
[0053] By utilizing To reset the direction of travel so that the user is guided to the optimal walking area, which provides the maximum fusion energy of the two spaces.
[0054] The present invention also provides a terminal, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the predictive redirection roaming optimization method based on probability density distribution when executing the program.
[0055] It can be seen from the above technical solutions that the present invention has the following advantages:
[0056] The prediction redirection roaming optimization method based on probability density distribution provided by the present invention predicts the movement trend of users in virtual and real spaces through probability density functions, performs prediction modeling for each of the two spaces and generates corresponding probability density distribution energy maps, and then fuses the virtual and real space energy maps, so as to consider the joint influence of virtual and real spaces at the same time during prediction, and finally calculate the reset direction with the highest energy distribution to achieve the optimization of the reset strategy. In addition, the probability density distribution method is used to predict the future movement trend of users, and the probability of users appearing at each position in a certain area is calculated, rather than estimating a single or multiple possible position hypotheses, which effectively ensures the robustness of the prediction results.
[0057] The present invention adopts potential area energy graph to represent the motion prediction results of each space, and evaluates the user's walking trend through user intention reasoning model and obstacle attenuation term, which effectively improves the accuracy of prediction.
[0058] The present invention fuses the potential area energy maps of each space, fully considers the joint effect of the virtual and real space prediction results, and chooses to guide the user to adjust in the reset direction with the best prediction expectation when performing redirection reset, which significantly improves the effectiveness and applicability of the method. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0060] Figure 1 It is the calculation flow chart of potential area energy map;
[0061] Figure 2 This is an example diagram of energy distribution in a space scene;
[0062] Figure 3 Example diagram of the user walking intention inference model;
[0063] Figure 4 This is the schematic diagram of energy attenuation of adjacent obstacles;
[0064] Figure 5 This is an example diagram of fusion energy prediction;
[0065] Figure 6 The flowchart of the roaming optimization method based on prediction redirection of probability density distribution. DETAILED DESCRIPTION
[0066] The predictive redirection roaming optimization method based on probability density distribution provided by the present invention combines the influence of spatial features and walking intentions, predicts the possible position distribution of users, and thus determines the optimal reset direction that leads to the maximum walking expectation. The present invention gives a space and calculates the static layout energy to represent the walking difficulty of all positions. At the same time, the present invention uses the intention inference model to predict the probability distribution of users in adjacent positions, and combines the energy attenuation of obstacles to predict obstacle avoidance behavior. Here, all factors can be combined into a potential area energy map, and the energy maps of virtual space and real space can be integrated into a fusion energy map to achieve prediction of two spaces at the same time. Finally, the optimal reset direction is obtained by maximizing the fusion energy. It effectively solves the problem that traditional reset strategies rarely consider changes in user roaming motion trends, lack prediction of future motion states, and have low optimization levels. The present invention can effectively reduce physical collisions and increase continuous walking distances, and at the same time show excellent applicability when combined with different redirection controllers.
[0067] The predictive redirection roaming optimization method based on probability density distribution provided by the present invention can be based on the optimization of redirection reset strategies in various types of virtual spaces and real spaces, and utilizes machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain theories, methods, technologies and application devices for the best results.
[0068] The predictive redirection roaming optimization method based on probability density distribution involved in the present invention can be applied to one or more terminals, wherein the terminal is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.
[0069] The terminal can be any electronic product that can perform human-computer interaction with the user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), an interactive network television (IPTV), etc.
[0070] The terminal may also include network equipment and / or user equipment, wherein the network equipment includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.
[0071] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0072] See also Figures 1 to 6 FIG. 1 is a flowchart of a method for predictive redirection roaming optimization based on probability density distribution in a specific embodiment, the method comprising:
[0073] S1: Based on the input static spatial layout of the virtual space and real space and the dynamic user state, the potential area energy map of the virtual space and real space reflecting the user's future walking probability distribution is calculated.
[0074] In this embodiment, the factors that affect user decisions are modeled as three energy components, which are combined to generate the final energy map M of each space. In order to achieve effective storage and data calculation of the energy map M, the space plan is discretized using the occupancy grid map method, thereby decomposing the continuous spatial geometric representation into discretized spatial grids, recording the grid containing obstacles as occupied, and recording the grid containing the walkable area as unoccupied. The energy components of the energy map M are respectively calculated by calculating the static space energy map E lay , User walking intention prediction energy graph E int and the adjacent obstacle attenuation term A obs It consists of three parts.
[0075] Specifically, this embodiment first processes the input virtual space and real space to calculate the potential area energy map of each space. Then, the potential area energy map is merged to obtain a fusion energy map to achieve a common prediction based on the virtual and real space. Finally, the real space energy map under different reset directions is calculated to obtain different fusion capability maps, and the reset direction that produces the maximum prediction expectation is selected to adjust the user.
[0076] like Figure 1 As shown, for a potential area energy map of a certain space, the present invention provides a probability density distribution of the user's potential walking area by considering three independent influencing factors. In this embodiment, the user's motion state at time τ is set to x τ =(p τ,v τ ), where p τ Indicates position, v τ represents the direction. Due to the uncertainty of the user's movement, the user's next position p τ+1 Should be distributed in a circular area D n Inside.
[0077] In this embodiment, let l a represents the average walking speed, and D n The radius is set to 3l a , because D n It is necessary to cover the maximum area that the user can move in a single step. a =1.3m. Each p τ+1 ∈D n The correlation energy M(χ τ ,p τ+1 ) can be calculated by element-wise multiplication of the three components, defined as follows:
[0078]
[0079] Among them, E lay is the energy of the static scene layout, E int is the energy distribution function for predicting the user's motion intention, A obs is the energy attenuation coefficient taking into account the effect of nearby obstacles. Each term in this formula is independent and can be effectively modeled separately.
[0080] like Figure 2 As shown, the present invention calculates the static scene energy graph. It is a free walking area. For the obstacle area (S free ∪S obs =S). Therefore, the energy E corresponding to the position p∈S lay It can represent:
[0081]
[0082] Among them, λ is a scaling weight used to adjust the influence of the distance between p and its nearest obstacle q, and ||·||2 represents the L2 norm function. In the method of this embodiment, λ=0.1 is set. It can be found that when the corresponding position is close to the boundary or obstacle, the energy value will be significantly reduced. At the same time, as the distance between p and q increases, formula (2) converges rapidly to 1, which effectively ensures that all positions in the open area have similar energy values. In order to ensure that obstacle positions cannot be assigned energy, this embodiment sets the energy values of these positions to 0.
[0083] According to an embodiment of the present application, the user walking intention prediction energy graph E int Probabilistic energy modeling is performed for the user's forward direction and walking speed respectively, and the final energy result is obtained by combined calculation. The energy distribution of the user's position within the walking range is modeled to predict the user's walking trend without external influence.
[0084] like Figure 3 As shown, the present invention also models the user's intention. Assume that the user is at position p τ and towards direction v τ , the next position is distributed in D n p τ Considering that users tend to maintain their previous walking direction, τ Less deviation from the direction v' τ+1 Should have a ratio with v τ Keep the direction of the larger angle v" τ+1 Therefore, this embodiment models the probability of the user selecting the direction of motion in the form of a Gaussian distribution. In particular, it is assumed that the user's rotation speed is in the range of [-π,π]. Since most points of the Gaussian distribution fall within the range of three times the standard deviation, this embodiment defines the energy function e ori (x τ ,p τ+1 ) to describe the user's directional intention, and the formula is as follows:
[0085]
[0086] where θ(·) is a function that calculates the angle between two vectors. In addition to the direction, the user’s intention to walk in a straight line in a given direction is also a key factor. τ+1 When walking, get closer to p τ Position p' τ+1 It should be farther than the position p that requires the user to change the movement speed drastically. τ+1 Therefore, similar to formula (3), this embodiment uses Gaussian distribution to model the probability of the user deciding the moving speed, and the speed is in [0,3l a ] range.
[0087] To ensure that most points of the Gaussian distribution are contained in D n In this embodiment, the standard deviation is set to l a Therefore, the energy function e used to describe the user's intention to walk in a straight line is dis (p τ ,p τ+1 ) is expressed as:
[0088]
[0089] By multiplying equation (3) and equation (4) element by element, this embodiment defines the equation that represents the time required to reach D without external influence. n Next position p τ+1 The probability energy E of the intention int (x τ ,p τ+1 ), as follows:
[0090]
[0091] According to the embodiment of the present application, the energy attenuation coefficient A obs The method is to calculate the distance and azimuth deviation between each position within the user's expected walking range and obstacles within a certain range around it, so as to obtain the energy attenuation caused by the surrounding obstacles to the position, thereby modeling the user's movement trend under external influence conditions.
[0092] Specifically, if Figure 4 As shown, the adjacent obstacle attenuation term is modeled. Given a virtual space S V , let p τ and p τ+1 Represent the user’s current and target positions respectively. Then, the direction vector v d =p τ+1 -p τ This embodiment considers the influence of obstacle point q, from q to p τ The repulsion vector is denoted as v r =p τ -q. It can be found that when the angle As increases, the user gradually faces q.
[0093] In addition, the distance between the user and the obstacle is also an important factor, because even if the user is facing a distant obstacle, it should have minimal impact on the user's decision. In this case, in order to effectively evaluate the degree of repulsion of q, the embodiment of the present application defines the directional influence of q as:
[0094]
[0095] Therefore, when q and p τ The distance between them is less than l a When the distance exceeds l, equation (6) allows q to have a significant effect. On the contrary, due to the characteristics of the exponential function, when the distance exceeds l a When , the influence of q decreases rapidly. In addition, since all nearby obstacles may affect the user, it is assumed that the obstacle point that causes the most significant attenuation has the greatest impact on the user.
[0096] The main focus of this embodiment is located at p τThe center is l and the radius is a The circular area D o Therefore, for S V , energy attenuation coefficient The formula is defined as:
[0097]
[0098] By applying Equation (7), a potential region energy map can be constructed to predict the user's potential motion region and assign energy to each location that reflects the probability of the user appearing.
[0099] For the real space S R , since the user is completely visually isolated from the external environment, the user cannot observe any real obstacles or boundaries. In this case, the real obstacles nearby will not affect the user's movement behavior. R The attenuation coefficient is defined as
[0100] S2: Create a spatial fusion energy map by merging the energy maps of the virtual space and the real space.
[0101] In this embodiment, based on step S1, the potential area energy map M of the virtual space and the real space is calculated respectively. V and M R , the virtual space energy map is mapped to the real space using the virtual-real space coordinate conversion method, and the virtual-real energy map is merged using the linear equation to obtain the fused energy map M F .
[0102] This embodiment also uses the shortest distance between the user and the forward direction to calculate the forward distance attenuation coefficient. F Further constraints are imposed on M in the event that the user does not act according to the predicted results. F The results are reasonably adjusted to ensure the accuracy of the prediction.
[0103] Specifically, if Figure 5 As shown, the present invention adopts an energy graph fusion method to merge the virtual and real space energy graphs. Given a pair of virtual and real space S V and S R , the user's virtual and real states can be expressed as and User in S V and S R The potential future positions in are calculated as two circular areas and For a specific Its corresponding It can be obtained by applying the virtual-real projection conversion function as follows:
[0104]
[0105] Where φ is and The angle between them. Formula (8) is used to obtain the mapping area In S R Therefore, when considering S V and S R When the constraint is , the actual potential walking area used for motion prediction is the intersection area
[0106] In this case, for each position The corresponding potential area energy map can be determined by applying equation (1): and This means that both energy diagrams are This embodiment uses the form of a linear equation to define the fusion energy Its model is:
[0107]
[0108] Where α is a scaling constant used to adjust the importance of each energy map. V If the ratio is too large, the final energy distribution may ignore S R Therefore, in this embodiment, α is set to 0.2.
[0109] S3: Calculate the energy map of the real space under different reset directions and obtain the optimal reset direction that provides the maximum spatial fusion energy.
[0110] In this embodiment, since M F is calculated under the assumption that the user tends to avoid visible obstacles during exploration. R If the user moves straight without considering the situation ahead, the real obstacles ahead may greatly increase the risk of collision. F In the event that the predictions are not completely consistent with the M F Imposing additional constraints is crucial.
[0111] Specifically, for S R , obstacles too close to the user should cause the entire M F Reduced, and distant obstacles have little effect on M F Therefore, this embodiment uses the distance d between the user and the nearest obstacle ahead fwdTo calculate the energy attenuation term, in order to reflect the risk of unexpected situations. In the method of this embodiment, a ray casting method is used to calculate d fwd The final form of the energy diagram E is expressed as:
[0112]
[0113] When reset is enabled, the user's virtual state will be frozen, and the RDW system needs to choose a specific reset angle δ from the range [-π,π] r To determine the user's true direction after the reset This selection therefore leads to a variety of potential walking areas Because of different Can generate different
[0114] For the convenience of representation, this embodiment will Expressed as δ r The function of When δ r When , changes, various E can be obtained, revealing different expectations for the user's future movement. Here, the optimization of reset is to find the optimal one that provides the maximum total energy of the two spaces. This can be defined as:
[0115]
[0116] By utilizing To reset the direction of travel, users can be guided to the optimal walking area that provides the maximum fusion energy of the two spaces.
[0117] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean 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 embodiment of the present invention.
[0118] The predictive redirection roaming optimization method based on probability density distribution provided by the present invention is a combination of the units and algorithm steps of each example described in the embodiments disclosed herein, and can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0119] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A predictive redirection roaming optimization method based on probability density distribution, characterized in that: Methods include: Step 1: Calculate the potential area energy map of the virtual space and the real space reflecting the user's future walking probability distribution according to the input static space layout of the virtual space and the real space and the dynamic user state; The factors influencing the user's decision are modeled as three energy components respectively, and the energy components are combined to generate a final energy map M for each space; Define the user's motion state at time τ as χ τ =(p τ ,v τ ), p τ Indicates position, v τ Indicates direction; sets the user's average walking speed to l a , the next position to run is p τ+1 The circular area of user movement distribution is D n , D n The radius is set to 3l a , each p τ+1 ∈D n The correlation energy M(χ τ ,p τ+1 ) is calculated by multiplying the three energy components, defined as follows: M(χ τ ,p τ+1 )=E lay (p τ+1 )AND int (χ τ ,p τ+1 )TO obs (p τ ,p τ+1 ) (1)? s.t.p τ+1 ∈D n E lay is the energy graph of the static scene layout, E int is the energy distribution function diagram for predicting user motion intention, A obs is the energy attenuation coefficient considering the influence of nearby obstacles; Energy graph E of static scene layout lay The position energy model is used for calculation, which specifically includes the following calculation process: set up It is a free walking area. is the obstacle area, S free ∪S obs =S, the energy E corresponding to the position p∈S lay It is expressed as: Where λ is a scaling weight used to adjust the distance effect between p and its nearest obstacle q, and ||·||2 represents the L2 norm function; Energy distribution function diagram E for predicting user movement intention int The probabilistic energy modeling is performed based on the user's forward direction and walking speed, and the final energy result is obtained by combined calculation. The specific steps include the following: Assume the user is at position p τ and towards direction v τ , the next position is distributed in D n p τ around; The probability of the user choosing the direction of movement is modeled in the form of Gaussian distribution, and the energy function e is defined ori (x τ ,p τ+1 ) describes the user's directional intention, and its formula is as follows: Among them, θ(·) is a function that calculates the angle between two vectors; Energy function e describing the user's intention to walk in a straight line dis (p τ ,p τ+1 ) is expressed as: s.t.p τ+1 ∈D n By multiplying equation (3) and equation (4) element by element, we define that D is reached without external influence. n Next position p τ+1 The probability energy E of the intention int (x τ ,p τ+1 ), as follows: Energy attenuation coefficient A obs The calculation is based on the distance and azimuth deviation between each position within the user's expected walking range and obstacles within a certain range around it, and obtains the energy attenuation caused by the surrounding obstacles to the position, thereby modeling the user's movement trend under external influence conditions; Energy attenuation coefficient A obs The calculation also includes the following steps: Set up a virtual space S V and obstacle point q, let p τ and p τ+1 Represent the user's current and target locations respectively; The directional influence of q is defined as: When q and p τ The distance between them is less than l a When , equation (6) allows q to have a significant effect; Energy attenuation coefficient The formula is defined as: Through equation (7), a potential area energy map is constructed to predict the user's potential motion area, and energy reflecting the probability of the user's appearance is assigned to each position; Step 2, creating a space fusion energy map by merging the energy maps of the virtual space and the real space; Creating a spatial fusion energy map includes the following steps: Given a pair of virtual spaces S V and real space S R , the user's virtual and real states are represented as and definition correspond The virtual-to-real projection conversion function applied is based on the following: Where φ is and The angle between them is obtained by using formula (8) R Mapping area in For each location Apply equation (1) to determine the corresponding potential area energy map and The fusion energy is defined in the form of a linear equation Its model is: Where α is the scaling constant; Step 3: Calculate the energy diagram of the real space under different reset directions to obtain the best reset direction that provides the maximum spatial fusion energy; The energy diagram E is represented as follows: When reset is enabled, the user's virtual state will be frozen, select a reset angle δ from the range [-π,π] r To determine the user's true direction after the reset Walking area Expressed as δ r The function of When δ r When the energy map E changes, the corresponding energy map E is obtained, revealing different expectations for the user's future movement; the optimization of reset is to find the optimal one that provides the maximum total energy of the two spaces. Defined as: By utilizing To reset the direction of travel so that the user is guided to the optimal walking area, which provides the maximum fusion energy of the two spaces.
2. A terminal 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 program, the steps of the predictive redirection roaming optimization method based on probability density distribution as claimed in claim 1 are implemented.
