A trajectory planning method, system, medium and device based on metaverse space
By using a three-dimensional convolutional neural network and a spatiotemporal attention mechanism for path planning in the metaverse space, combined with a two-way long short-term memory network and blockchain technology, the problem of path planning complexity and personalized needs is solved, and an efficient, Secure, personalized digital human tours.
Patent Information
- Application Number
- CN202410930930.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Path planning in the metaverse space is complex, the traditional path standardization method has low marking efficiency, cannot dynamically change paths according to user needs, and lacks personalization and security.
A three-dimensional convolutional neural network is used to extract spatial features, combined with a spatiotemporal attention mechanism to achieve real-time path planning, a two-way long short-term memory network is used to capture the long-term dependencies of action sequences, the optimal path is generated through an action prediction model, and is ensured through blockchain technology Data authenticity and reliability.
It realizes efficient, safe, and personalized digital human autonomous path-finding and node navigation in the metaverse space, improving user experience and system reliability.
Smart Images

Figure CN118470269B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of trajectory planning technology, and in particular to a trajectory planning method, system, medium and device based on metaverse space. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] The metaverse space is usually very complex, containing a large number of nodes and paths. The traditional path specification method uses manual marking. Due to the complexity of the metaverse space, there are many marking points and low marking efficiency. At the same time, the manual marking method can only fix the path route and lacks technical problems such as strategies for dynamically changing the path according to different needs and preferences of users. Summary of the invention
[0004] In order to solve the technical problems such as the complexity of path planning in the metaverse space, the personalization of user experience, and the reliability and security of the system, the present invention provides a trajectory planning method, system, medium and device based on the metaverse space. The present invention designs a three-dimensional space real-time planning layer, uses a three-dimensional convolutional neural network to extract spatial features, and uses the spatiotemporal attention mechanism to take the output of 3D-CNN as input to achieve real-time spatiotemporal feature extraction and path dynamic planning. At the same time, the temporal attention mechanism is used to provide a personalized navigation experience, and blockchain technology is used to ensure the authenticity and reliability of data. The present invention realizes an efficient, safe and personalized digital human autonomous path finding and node navigation method in the metaverse space.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] The first aspect of the present invention provides a trajectory planning method based on metaverse space.
[0007] A trajectory planning method based on metaverse space, comprising:
[0008] Based on the 3D scene components and 2D scene components of the Metaverse space, a 3D space model of the Metaverse is constructed, and the state space, action space and reward function of the digital human are defined;
[0009] Perform spatial feature extraction on three-dimensional scene components and two-dimensional scene components, and perform temporal feature extraction on spatial features at different time nodes to obtain spatiotemporal features;
[0010] Based on the action information at the previous time point, the spatial features at the previous time point, the action information at the current time point, and the action information at the previous time point, a bidirectional long short-term memory network is used to capture the long-term dependency characteristics of the action sequence;
[0011] Based on the spatiotemporal features, the long-term dependency features of the action sequence and the acquired walking status of the digital human, the action prediction model is used to predict the action at the next time point. The action at the next time point and the actual feedback of the environment are input into the feedback loop layer, and the optimal action at the next time point is output according to the reward function, thereby generating a path from the current time point to the next time point.
[0012] Furthermore, the process of extracting spatial features from three-dimensional scene components and two-dimensional scene components includes: using a three-dimensional convolutional neural network to extract three-dimensional spatial features of the three-dimensional scene components, using a two-dimensional convolutional neural network to extract two-dimensional spatial features of the two-dimensional scene components, and splicing the three-dimensional spatial features and the two-dimensional spatial features to obtain spatial features.
[0013] Furthermore, the process of generating a path from the current time point to the next time point includes: according to the optimal action at the next time point, using a differential drive method or an integral drive method to generate a path from the current time point to the next time point, and using a Bezier curve interpolation method to smooth the path.
[0014] Furthermore, after trajectory planning, it also includes: obtaining the action of the digital human at the current time point, the optimal action of the digital human at the next time point, and the node navigation display form, vectorizing and encoding the action of the digital human at the current time point, the optimal action of the digital human at the next time point, and the node navigation display form, and then inputting them into the bidirectional temporal attention network model to predict the optimal navigation form of the current node, thereby retrieving corresponding resources from a pre-defined media library, and displaying them to the user through the digital human interface, so that the user can interact with the navigation information provided by the interface.
[0015] Furthermore, the state space includes: the three-dimensional coordinates, orientation and speed of the digital human, and key features of the surrounding environment.
[0016] Furthermore, the action space includes: relevant actions of the digital human, including forward, backward, left turn, right turn and jump.
[0017] Furthermore, the reward function is: a reward of +1 is given according to the degree to which the digital human approaches the target node, a penalty of -10 is given for colliding with an obstacle, and each action consumes a reward of -0.1.
[0018] The second aspect of the present invention provides a trajectory planning system based on metaverse space.
[0019] A trajectory planning system based on metaverse space, comprising:
[0020] A model building module, which is configured to: build a three-dimensional space model of the metaverse based on the three-dimensional scene components and the two-dimensional scene components of the metaverse space, and define the state space, action space and reward function of the digital human;
[0021] A spatiotemporal feature extraction module is configured to: extract spatial features from the three-dimensional scene component and the two-dimensional scene component, and extract temporal features from the spatial features at different time nodes to obtain spatiotemporal features;
[0022] A relation feature extraction module is configured to: capture long-term dependency relation features of the action sequence using a bidirectional long short-term memory network based on the action information at the previous time point, the spatial features at the previous time point, the action information at the current time point, and the action information at the previous time point;
[0023] The trajectory planning module is configured as follows: based on the spatiotemporal features, the long-term dependency features of the action sequence and the acquired walking state of the digital human, the action prediction model is used to predict the action at the next time point; the action at the next time point and the actual feedback of the environment are input into the feedback loop layer, and the optimal action at the next time point is output according to the reward function, so as to generate a path from the current time point to the next time point.
[0024] A third aspect of the present invention provides a computer-readable storage medium.
[0025] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the trajectory planning method based on metaverse space as described in the first aspect above.
[0026] A fourth aspect of the present invention provides a computer device.
[0027] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the trajectory planning method based on the metaverse space as described in the first aspect above are implemented.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The present invention aims to solve technical problems such as the complexity of path planning in the metaverse space, the personalization of user experience, and system reliability and security. The present invention designs a three-dimensional space real-time planning layer, uses a three-dimensional convolutional neural network to extract spatial features, and uses the spatiotemporal attention mechanism to take the output of 3D-CNN as input to achieve real-time spatiotemporal feature extraction and path dynamic planning. At the same time, the temporal attention mechanism is used to provide a personalized navigation experience, and blockchain technology is used to ensure the authenticity and reliability of data. The present invention realizes an efficient, safe, and personalized digital human autonomous path finding and node navigation method in the metaverse space.
[0030] The present invention adopts a dynamic neural network based on the combination of three-dimensional and two-dimensional convolutional neural networks, and introduces a bidirectional spatiotemporal attention mechanism, namely the Gym three-dimensional space real-time planning layer model design, which solves the problems of insufficient 3D scene spatial feature extraction, low efficiency, and inability to take into account temporal and spatial features in traditional 3D path planning. By adopting this model structure, the spatiotemporal characteristics of the 3D metaverse space are fully utilized, allowing the model to learn the optimal strategy output through iteration.
[0031] The present invention effectively solves the difficulties of traditional navigation systems in capturing temporal relationships, understanding user status, diversity of navigation forms and user interactivity by adopting innovative methods such as a bidirectional temporal attention mechanism, parallel processing of user status and path history sequences, prediction and display of multiple navigation forms, and navigation adjustment based on user feedback, thereby providing a more comprehensive, accurate, personalized and efficient navigation service. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0033] Figure 1 It is a flow chart of the trajectory planning method based on metaverse space shown in the present invention. DETAILED DESCRIPTION
[0034] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0035] Embodiment 1
[0036] This embodiment provides a trajectory planning method based on metaverse space, including:
[0037] Based on the 3D scene components and 2D scene components of the metaverse space, a 3D space model of the metaverse is constructed, and the state space, action space and reward function of the digital human are defined;
[0038] Perform spatial feature extraction on three-dimensional scene components and two-dimensional scene components, and perform temporal feature extraction on spatial features at different time nodes to obtain spatiotemporal features;
[0039] Based on the action information at the previous time point, the spatial features at the previous time point, the action information at the current time point, and the action information at the previous time point, a bidirectional long short-term memory network is used to capture the long-term dependency characteristics of the action sequence;
[0040] Based on the spatiotemporal features, the long-term dependency features of the action sequence and the acquired walking status of the digital human, the action prediction model is used to predict the action at the next time point. The action at the next time point and the actual feedback of the environment are input into the feedback loop layer, and the optimal action at the next time point is output according to the reward function, thereby generating a path from the current time point to the next time point.
[0041] The present invention adopts a dynamic neural network based on the combination of three-dimensional and two-dimensional convolutional neural networks, and introduces a bidirectional spatiotemporal attention mechanism, namely the Gym three-dimensional space real-time planning layer model design, which solves the problems of insufficient 3D scene spatial feature extraction, low efficiency, and inability to take into account temporal and spatial features in traditional 3D path planning. By adopting this model structure, the spatiotemporal characteristics of the 3D metaverse space are fully utilized, allowing the model to learn the optimal strategy output through iteration.
[0042] The present embodiment is described in detail below with reference to the accompanying drawings. Figure 1 As shown:
[0043] Step (1): Construct a 3D space environment model of the metaverse.
[0044] Step (11): Use 3D modeling software to create a detailed model of the metaverse space, including the length, width and height of the space, which are 100m×100m×50m, and the two-dimensional scene components include scene maps and textures; 3D scene components include: tables, chairs, trees, etc., and interaction points such as doors, stairs, etc.
[0045] Step (12): Define the state space, including the three-dimensional coordinates (x, y, z), orientation (θ), velocity (v) of the digital human, and key features of the surrounding environment, such as doors, stairs, etc.
[0046] Step (13): Define the action space, the set of actions that the digital human can perform, such as forward (1m), backward (1m), turn left (30°), turn right (30°), jump (2m), etc.
[0047] Step (14): Design a reward function that gives a reward of +1 based on how close the digital human is to the target node, a penalty of -10 for colliding with an obstacle, and a reward of -0.1 for each action.
[0048] Step (2): Design of three-dimensional space real-time planning layer based on Gym dynamic neural network.
[0049] In order to extract the temporal and spatial features of the 3D metaverse, a three-dimensional convolutional neural network (3D-CNN) is used to extract spatial features. A bidirectional spatiotemporal attention mechanism is introduced to add scene temporal features to 3D-CNN, so that the network can focus on key spatial locations and time points at the same time. A real-time planning feedback loop layer is added after the action prediction model to combine the actual feedback of the environment with the prediction model to continuously adjust and optimize the action plan.
[0050] Step (21): Create a three-dimensional spatial feature extraction layer. The input of this layer is the metaverse scene created in step (1), including two-dimensional scene components and 3D scene components, and the output is spatial features. This layer uses 3D-CNN combined with a two-dimensional convolutional neural network (CNN) to extract spatial features. Compared with a single network, it can capture the local structure and the overall characteristics of the metaverse while also capturing the two-dimensional and three-dimensional features of the scene. The feature extraction formula is: ;in, is the combined feature, is the 3D scene information, It is 2D scene information.
[0051] Step (22): Create a spatiotemporal attention mechanism layer to add spatiotemporal features; the input of this layer is the spatial features output by step (21) at different time nodes ; Between the three-dimensional spatial feature extraction layer and the action prediction model. A bidirectional long short-term memory network (Bi-LSTM) is used to extract action information before and after the current time point, and to better capture the long-term dependency characteristics of the action sequence based on past and future context information. The formula is: .
[0052] in, and Respectively represent the output of the forward and backward LSTM at time point t, x t Spatial Features .
[0053] Step (23): Create an action prediction model, change the fully connected layer to an action prediction model, use the softmax activation function, and output the probability distribution of each possible action. This layer is used as a dynamic neural planning network integration layer, and uses the activation function to train the output of step (22) and the digital human walking state training data, and the output is a complete action prediction model;
[0054] Step (24): Create a real-time planning feedback loop layer, which transmits the actual feedback of the environment to the action prediction model in real time, continuously adjusts and optimizes the action plan, and thus corrects unpredictable action prediction errors. This loop layer uses the PPO algorithm to implement a real-time feedback reward mechanism to ensure the effectiveness of feedback. The input of this layer includes the actual feedback of the environment (including feedback on whether obstacles such as walls, pendants, stairs, etc. make it impossible to move forward) and the output of the action prediction model. Formula: ;in, is the action taken at time t, is the current state, is the action prediction model trained in step (23).
[0055] Step (25): simulate action prediction;
[0056] Step (251): Based on the 3D scene information and the digital human time series data, the three-dimensional spatial feature extraction layer of step (21) and the spatiotemporal attention mechanism layer created in step (22) are used to obtain spatiotemporal features. The 3D-CNN is responsible for extracting 3D type components; the CNN is responsible for extracting two-dimensional scene information such as textures.
[0057] Step (252): Input the relevant data extracted in step (251) into the action prediction model created in step (24) to achieve action output.
[0058] Step (253): The action and post-action feedback outputted from step (252) are input into the real-time planning feedback loop layer. According to the reward mechanism, if the current travel reward is -10, the current scene position and the travel action input are recorded and input into the real-time planning feedback loop layer, and subsequent actions need to be reversed, turned, etc.; if the current travel reward is +1, the current scene position and the travel action input are recorded and input into the real-time planning feedback loop layer, and subsequent actions need to be forward; according to the above feedback, the prediction of the next action is adjusted.
[0059] Step (26): Use the proximal policy optimization (PPO) algorithm to train the three-dimensional space real-time planning layer created in step (2).
[0060] Step (261): The 3D space training data is 50 3D metaverse spaces of 100m×100m×50m size; the digital human time series training data is 10 hours of digital human walking route, time point data and environmental feedback.
[0061] Step (262): The training loss observation strategy uses the Proximal Policy Optimization (PPO) algorithm with a learning rate of 0.0003, a discount factor of 0.99, and a PPO .clip parameter of 0.2.
[0062] Step (263): Set up 10 rounds of training to evaluate the performance of the model, use a separate test environment to verify the model's generalization ability in different scenarios, and ensure that it can learn the optimal policy output.
[0063] Step (3): Real-time dynamic path planning.
[0064] Step (31): When the digital human reaches each node, forward propagation is performed using the model trained in step (2) to predict the optimal action based on the current state.
[0065] Step (32): Based on the optimal action output by the model, a path from the current node to the next node is generated using a differential drive method or an integral drive method, with a path point interval of 1m.
[0066] Step (33): Implement path smoothing, such as using Bezier curve interpolation method, to ensure that the movement of the digital human is smooth and natural.
[0067] Step (4): Transformation of the scene navigation format of the bidirectional recurrent neural network.
[0068] Step (41): Use a bidirectional recurrent neural network (Bi-RNN) to build a bidirectional temporal attention network model to capture the temporal relationship between the digital human state and the navigation information.
[0069] Step (42): The input is the state of the digital human and the node navigation display format (classification values corresponding to pictures, texts, audio and video: pictures: 0, texts: 1, videos: 2, audios: 3) before and after a certain time node 1 second. The above information is vectorized and encoded and input into the bidirectional temporal attention network model for training, and the number of training rounds is 10.
[0070] Step (43): Navigation classification layer: Use the bidirectional temporal attention network model trained in step (42) to predict the best navigation form of the current node. Specifically, the bidirectional recurrent neural network (Bi-RNN) predicts the result of the vectorized encoding input in step (42). The classification layer softmax activation function classifies the result and outputs the display classification of the current node according to the predetermined classification value (picture: 0, text: 1, video: 2, audio: 3). According to the display classification, different HTML is rendered to achieve output display of pictures, text, video, audio and other types.
[0071] The present invention uses a two-way temporal attention mechanism to dynamically change the scene navigation form in real time, and can provide personalized navigation information according to the user's real-time status, thereby improving the user experience.
[0072] Step (5): Use the model in step (4) to perform node navigation.
[0073] Step (51): Input the user's current state into the model trained in step (4) to predict the navigation type. According to the predicted navigation format (such as (pictures, text, audio and video), retrieve the corresponding resources from the pre-defined media library and display them to the user through the digital human interface for 5 seconds.
[0074] Step (52): The user interacts based on the provided navigation information, such as asking questions, requesting detailed explanations, etc. The digital human adjusts the navigation content and format based on user feedback and the preset dialogue management strategy, with a response time of 2 seconds.
[0075] Through the above steps, the present invention can enable digital humans to efficiently plan paths in a complex metaverse environment and provide personalized navigation experience based on the user's real-time status.
[0076] The present invention adopts a dynamic neural network based on the combination of three-dimensional and two-dimensional convolutional neural networks, and introduces a bidirectional spatiotemporal attention mechanism, namely the Gym three-dimensional space real-time planning layer model design, which solves the problem of insufficient extraction of 3D scene spatial features, low efficiency, and inability to take into account temporal and spatial features in traditional 3D path planning. This model structure makes full use of the spatiotemporal features of the 3D metaverse space, allowing the model to learn the optimal strategy output through iteration. The present invention designs a three-dimensional space real-time planning layer through the Gym dynamic neural planning network, uses a three-dimensional convolutional neural network (3D-CNN) to extract spatial features, and uses the spatiotemporal attention mechanism to take the output of 3D-CNN as input to achieve real-time spatiotemporal feature extraction and dynamic planning.
[0077] The present invention effectively solves the difficulties of traditional navigation systems in capturing temporal relationships, understanding user status, diversity of navigation forms and user interactivity by adopting innovative methods such as a bidirectional temporal attention network model, parallel processing of user status and path history sequences, prediction and display of multiple navigation forms, and navigation adjustment based on user feedback, thereby providing a more comprehensive, accurate, personalized and efficient navigation service.
[0078] Embodiment 2
[0079] This embodiment provides a trajectory planning system based on metaverse space.
[0080] A trajectory planning system based on metaverse space, comprising:
[0081] A model building module, which is configured to: build a three-dimensional space model of the metaverse based on the three-dimensional scene components and the two-dimensional scene components of the metaverse space, and define the state space, action space and reward function of the digital human;
[0082] A spatiotemporal feature extraction module is configured to: extract spatial features from the three-dimensional scene component and the two-dimensional scene component, and extract temporal features from the spatial features at different time nodes to obtain spatiotemporal features;
[0083] A relation feature extraction module is configured to: capture long-term dependency relation features of the action sequence using a bidirectional long short-term memory network based on the action information at the previous time point, the spatial features at the previous time point, the action information at the current time point, and the action information at the previous time point;
[0084] The trajectory planning module is configured as follows: based on the spatiotemporal features, the long-term dependency features of the action sequence and the acquired walking state of the digital human, the action prediction model is used to predict the action at the next time point; the action at the next time point and the actual feedback of the environment are input into the feedback loop layer, and the optimal action at the next time point is output according to the reward function, so as to generate a path from the current time point to the next time point.
[0085] In some embodiments, the spatiotemporal feature extraction module is further configured to: use a three-dimensional convolutional neural network to extract three-dimensional spatial features of three-dimensional scene components, use a two-dimensional convolutional neural network to extract two-dimensional spatial features of two-dimensional scene components, and splice the three-dimensional spatial features and the two-dimensional spatial features to obtain spatial features.
[0086] In some embodiments, the trajectory planning module is further configured to: generate a path from the current time point to the next time point using a differential drive method or an integral drive method according to the optimal action at the next time point, and smooth the path using a Bezier curve interpolation method.
[0087] In some embodiments, the system further includes a navigation module, which is configured to: obtain the action of the digital human at the current time point, the optimal action of the digital human at the next time point, and the node navigation display form, vectorize and encode the action of the digital human at the current time point, the optimal action of the digital human at the next time point, and the node navigation display form, and then input them into a bidirectional temporal attention network model to predict the optimal navigation form of the current node, thereby retrieving corresponding resources from a pre-defined media library, and displaying them to the user through the digital human's interface, so that the user can interact with the navigation information provided by the interface.
[0088] In some embodiments, the state space includes: the three-dimensional coordinates, orientation and speed of the digital human, and key features of the surrounding environment.
[0089] In some embodiments, the action space includes: relevant actions of the digital human, including moving forward, moving backward, turning left, turning right, and jumping.
[0090] In some embodiments, the reward function is: a reward of +1 is given according to the degree to which the digital human approaches the target node, a penalty of -10 is given for colliding with an obstacle, and a reward of -0.1 is consumed for each action.
[0091] Embodiment 3
[0092] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the trajectory planning method based on metaverse space as described in the above-mentioned embodiment 1 are implemented.
[0093] Embodiment 4
[0094] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the trajectory planning method based on metaverse space as described in the first embodiment above are implemented.
[0095] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A trajectory planning method based on metaverse space, characterized in that: include: Based on the 3D scene components and 2D scene components of the Metaverse space, a 3D space model of the Metaverse is constructed, and the state space, action space and reward function of the digital human are defined; Perform spatial feature extraction on three-dimensional scene components and two-dimensional scene components, and perform temporal feature extraction on spatial features at different time nodes to obtain spatiotemporal features; Based on the action information at the previous time point, the spatial features at the previous time point, the action information at the current time point, and the action information at the previous time point, a bidirectional long short-term memory network is used to capture the long-term dependency characteristics of the action sequence; Based on the spatiotemporal features, the long-term dependency features of the action sequence and the acquired walking state of the digital human, the action prediction model is used to predict the action at the next time point. The action at the next time point and the actual feedback of the environment are input into the feedback loop layer, and the optimal action at the next time point is output according to the reward function, so as to generate the path from the current time point to the next time point. The process of extracting spatial features from the three-dimensional scene component and the two-dimensional scene component includes: extracting three-dimensional spatial features from the three-dimensional scene component using a three-dimensional convolutional neural network, extracting two-dimensional spatial features from the two-dimensional scene component using a two-dimensional convolutional neural network, and splicing the three-dimensional spatial features and the two-dimensional spatial features to obtain spatial features; In order to realize the extraction of temporal and spatial features of the 3D metaverse, a three-dimensional space real-time planning layer design based on the Gym dynamic neural network is established. A three-dimensional convolutional neural network is used to extract spatial features, and a bidirectional spatiotemporal attention mechanism is introduced. The specific steps include: creating a three-dimensional space feature extraction layer, a spatiotemporal attention mechanism layer, an action prediction model, and a real-time planning feedback loop layer, simulating action prediction, and using a proximal policy optimization algorithm to train the created three-dimensional space real-time planning layer to ensure that it can learn the optimal policy output.
2. The trajectory planning method based on metaverse space according to claim 1, characterized in that: The process of generating a path from the current time point to the next time point includes: according to the optimal action at the next time point, using a differential drive method or an integral drive method to generate a path from the current time point to the next time point, and using a Bezier curve interpolation method to smooth the path.
3. The trajectory planning method based on metaverse space according to claim 1, characterized in that: After trajectory planning, it also includes: obtaining the action of the digital human at the current time point, the optimal action of the digital human at the next time point, and the node navigation display form, vectorizing the action of the digital human at the current time point, the optimal action of the digital human at the next time point, and the node navigation display form, and then inputting them into the bidirectional temporal attention network model to predict the optimal navigation form of the current node, thereby retrieving the corresponding resources from the pre-defined media library and displaying them to the user through the digital human interface, so that the user can interact with the navigation information provided by the interface.
4. The trajectory planning method based on metaverse space according to claim 1, characterized in that: The state space includes: the three-dimensional coordinates, orientation and speed of the digital human, and key features of the surrounding environment.
5. The trajectory planning method based on metaverse space according to claim 1, characterized in that: The action space includes: relevant actions of the digital human, including forward, backward, left turn, right turn and jump.
6. The trajectory planning method based on metaverse space according to claim 1, characterized in that: The reward function is: a reward of +1 is given according to the degree to which the digital human approaches the target node, a penalty of -10 is given for colliding with an obstacle, and each action consumes a reward of -0.
1.
7. A trajectory planning system based on metaverse space, characterized in that: include: A model building module, which is configured to: build a three-dimensional space model of the metaverse based on the three-dimensional scene components and the two-dimensional scene components of the metaverse space, and define the state space, action space and reward function of the digital human; A spatiotemporal feature extraction module is configured to: extract spatial features from the three-dimensional scene component and the two-dimensional scene component, and extract temporal features from the spatial features at different time nodes to obtain spatiotemporal features; A relation feature extraction module is configured to: capture long-term dependency relation features of the action sequence using a bidirectional long short-term memory network based on the action information at the previous time point, the spatial features at the previous time point, the action information at the current time point, and the action information at the previous time point; The trajectory planning module is configured as follows: based on the spatiotemporal features, the long-term dependency features of the action sequence and the acquired walking state of the digital human, the action prediction model is used to predict the action at the next time point; the action at the next time point and the actual feedback of the environment are input into the feedback loop layer, and the optimal action at the next time point is output according to the reward function, so as to generate a path from the current time point to the next time point; The process of extracting spatial features from the three-dimensional scene component and the two-dimensional scene component includes: extracting three-dimensional spatial features from the three-dimensional scene component using a three-dimensional convolutional neural network, extracting two-dimensional spatial features from the two-dimensional scene component using a two-dimensional convolutional neural network, and splicing the three-dimensional spatial features and the two-dimensional spatial features to obtain spatial features; In order to realize the extraction of temporal and spatial features of the 3D metaverse, a three-dimensional space real-time planning layer design based on the Gym dynamic neural network is established. A three-dimensional convolutional neural network is used to extract spatial features, and a bidirectional spatiotemporal attention mechanism is introduced. The specific steps include: creating a three-dimensional space feature extraction layer, a spatiotemporal attention mechanism layer, an action prediction model, and a real-time planning feedback loop layer, simulating action prediction, and using a proximal policy optimization algorithm to train the created three-dimensional space real-time planning layer to ensure that it can learn the optimal policy output.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the trajectory planning method based on metaverse space as described in any one of claims 1 to 6 are implemented.
9. A computer 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 program, the steps in the trajectory planning method based on the metaverse space as described in any one of claims 1-6 are implemented.
Citation Information
Patent Citations
Digital twinborn agent space-time collaboration method based on artificial intelligence and element universe
CN115840423A
Moving position prediction method and related equipment
CN116050256A
Workshop production method based on Internet of Things system and reinforcement learning
CN116414093A
Unmanned group perception method for guaranteeing element universe application information quality
CN117221829A
Robot crowd navigation method and system based on space-time interaction diagram and dangerous area
CN117232522A
