Ergonomic constraint-based meta-universe indoor environment generation method and system

Through methods based on ergonomic constraints, the Metaverse indoor environment is sampled, data processed and neural network trained to optimize the generated Metaverse indoor environment, which solves the problems in the existing technology that the environment does not conform to reality and has low interactivity, and improves the efficiency of the Metaverse indoor environment. User experience and environmental plausibility.

CN118587381APending Publication Date: 2024-09-03GUANGDONG UNIVERSITY OF FOREIGN STUDIES
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410717258.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

When the existing technology generates the indoor environment of the Metaverse, it is difficult to create highly interactive scenes that conform to the real environment, resulting in poor user experience.

Method used

Using a method based on ergonomic constraints, the initial plan is generated by sampling, data labeling, graph structure coding and neural network training of the target environment, and the plan is optimized based on ergonomic constraints to improve the degree of consistency between the indoor environment of the Metaverse and the real environment. Interactivity.

Benefits of technology

It enhances the rationality and interactivity of the indoor environment of the Metaverse, improves the user experience, and improves the reliability of the generated model and the information content of the sampled data through different data processing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587381A
    Figure CN118587381A
Patent Text Reader

Abstract

The invention provides an ergonomic constraint-based meta-universe indoor environment generation method and system, and the method comprises the steps: carrying out the sampling of a target environment, and obtaining the sampling data, which comprises a plurality of indoor objects; according to the sampling data, each indoor object is marked and classified to obtain first training data, and according to the sampling data, each indoor object is coded through a graph structure to obtain second training data; training a neural network model according to the first training data and the second training data to obtain a meta-universe indoor environment generation model, and obtaining an initial scheme through the meta-universe indoor environment generation model; and verifying the initial scheme, if the initial scheme meets the requirements, taking the initial scheme as a final scheme, and if the initial scheme does not meet the requirements, optimizing the initial scheme according to ergonomic constraints so as to obtain the final scheme, and generating the meta-universe indoor environment according to the final scheme. According to the method, the problems that the generated element universe environment does not conform to reality and the interactivity is low in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of metaverse technology, and in particular to a method and system for generating a metaverse indoor environment based on ergonomic constraints. Background Art

[0002] The metaverse is an integrated, persistent virtual space that is a fusion of physical reality and the digital virtual world. In the metaverse, users can interact with others, participate in activities, play games, trade, etc. through virtual avatars. With the advancement of technology, the concept of the metaverse is becoming more and more widely accepted, and related technologies are also constantly developing, including virtual reality, augmented reality, mixed reality, and artificial intelligence. Among them, building indoor scenes with strong realism and high interactivity has become an important part of metaverse environment design. At present, existing technologies require designers to have professional knowledge. Creating a metaverse environment that conforms to the real environment through professional knowledge not only takes longer time, but also the interactivity of the resulting metaverse environment cannot be guaranteed, and it still needs to be optimized multiple times. Summary of the invention

[0003] The present invention provides a method and system for generating a metaverse indoor environment based on ergonomic constraints, so as to solve the technical problems that the metaverse environment generated in the prior art does not conform to reality and has low interactivity.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a method for generating a metaverse indoor environment based on ergonomic constraints, comprising:

[0005] Sampling the target environment to obtain sampling data, wherein the sampling data includes a plurality of indoor objects;

[0006] According to the sampling data, each indoor object is marked and classified to obtain first training data, and according to the sampling data, each indoor object is encoded through a graph structure to obtain second training data;

[0007] Training a neural network model according to the first training data and the second training data to obtain a metaverse indoor environment generation model, and obtaining an initial solution through the metaverse indoor environment generation model;

[0008] The initial plan is verified. If it meets the requirements, it is used as the final plan. If it does not meet the requirements, the initial plan is optimized according to ergonomic constraints to obtain the final plan, and the metaverse indoor environment is generated based on the final plan.

[0009] The present invention trains the neural network model through different training data, wherein the first training data is used to control the type and quantity of indoor objects, and the second training data is used to control the layout of indoor objects. The two training data improve the layout rationality of the final solution. At the same time, the present invention optimizes the solution according to ergonomic constraints, improves the degree of consistency between the obtained metaverse indoor environment and the real environment, thereby improving the interactivity of the final solution and enhancing the user experience.

[0010] As a preferred solution, the step of sampling the target environment to obtain sampling data includes:

[0011] Determine the layout of sampling equipment through an optimal camera layout algorithm;

[0012] The sampling device samples the target environment using a point cloud sampling method to obtain sampling data at multiple angles.

[0013] The type of sampling data is point cloud data, which can reflect various information such as the shape and color of objects in the target environment. By collecting point cloud data of the real environment, the integrity of the sampling data can be improved, providing a basis for the subsequent generation of the metaverse indoor environment.

[0014] As a preferred solution, the step of marking and classifying each indoor object according to the sampled data to obtain the first training data includes:

[0015] De-noising the sampled data and merging the sampled data through the registration method;

[0016] The indoor objects in the merged sampling data are color-labeled and classified to obtain first pre-processed sampling data, and weights are assigned to the first pre-processed sampling data to obtain first training data.

[0017] The registration method improves the coincidence of different point cloud data, thereby improving the consistency of the sampled data and providing a reliable basis for further data analysis and processing. The first training data is related to the number and type of indoor objects, and the number of indoor objects generated can be controlled during training.

[0018] As a preferred solution, the step of color marking and classifying the indoor objects in the merged sampled data to obtain first preprocessed sampled data, and assigning weights to the first preprocessed sampled data to obtain first training data includes:

[0019] Color-marking the indoor objects in the merged sampled data according to marking conditions by using point cloud segmentation technology, wherein the marking conditions include spatial geometry, reflectivity, height, and depth of the indoor objects;

[0020] Learning the global features of the sampled data and classifying the sampled data according to classification conditions, thereby obtaining first preprocessed sampled data, wherein the classification conditions include density, shape and size of the sampled data and distribution, curvature and normal direction of a point cloud in the sampled data;

[0021] Weights are assigned to the first preprocessed sampled data to obtain first training data.

[0022] Different indoor objects can be identified and distinguished through color marking, and point cloud data of different indoor objects can be distinguished through classification, thereby improving the accuracy of sampling data.

[0023] As a preferred solution, encoding each indoor object through a graph structure according to the sampled data to obtain the second training data includes:

[0024] De-noising the sampled data and merging the sampled data through the registration method;

[0025] The indoor objects of the merged sampled data are encoded through a graph structure to obtain second preprocessed sampled data, and the second preprocessed sampled data are marked according to the indoor type, so as to obtain second training data.

[0026] The registration method improves the coincidence of different point cloud data, thereby improving the consistency of the sampled data and providing a reliable basis for further data analysis and processing. The second training data is related to the relative relationship of indoor objects, and the rationality of the layout of indoor objects can be controlled during training.

[0027] As a preferred solution, the initial solution is verified. If it meets the requirements, the initial solution is used as the final solution. If it does not meet the requirements, the initial solution is optimized according to ergonomic constraints to obtain the final solution, and the metaverse indoor environment is generated according to the final solution, including:

[0028] Verify the initial solution to determine whether it meets the requirements. If so, use the initial solution as the final solution. If not, optimize and modify the initial solution to generate multiple optimization solutions. The partial modification includes adjusting the position of the indoor object, adjusting the direction of the indoor object, and exchanging the position of the indoor object.

[0029] Calculating multiple cost items according to ergonomic constraints and assigning weights to the cost items to obtain a cost function, wherein the ergonomic constraints include a circulation constraint, a visual balance constraint, an alignment constraint, and a focus constraint;

[0030] Calculate the cost function for each optimization scheme and obtain the cost value corresponding to each optimization scheme;

[0031] Arrange the optimization plans according to the cost value, select the optimization plan with the lowest cost value as the final plan, and generate the metaverse indoor environment based on the final plan.

[0032] The cost function aggregated by ergonomic constraints can effectively characterize the degree of consistency between the optimization solution and the real environment. The lower the cost function value, the more consistent the optimization solution is with the real environment, and the higher the interactivity of the generated metaverse indoor environment.

[0033] As a preferred solution, the process of calculating the cost item according to the liquidity constraint includes:

[0034] Project the indoor object onto the ground to obtain a projection object;

[0035] The overlapping area of ​​the projected objects is calculated to obtain the first cost item.

[0036] The circulation constraint indicates whether the indoor objects overlap and thus are inconsistent with the real environment. By reducing the first cost item, the interactivity of the Metaverse indoor environment can be improved, making the spatial design of the Metaverse indoor environment more adaptable to the movement and activities of users.

[0037] As a preferred solution, the process of calculating the cost item according to the visual balance constraint includes:

[0038] Calculate the centroid of the optimization solution based on the area and location of the indoor objects;

[0039] The second cost term is derived based on the area and location of the indoor objects and their distance from the centroid.

[0040] The visual balance constraint represents the visual balance of indoor objects. Reducing the second cost term can reduce the visual fatigue of users when they are active in the indoor environment of the Metaverse.

[0041] As a preferred solution, the process of calculating the cost item according to the alignment constraint includes:

[0042] Calculate the angle between any two indoor objects, and obtain the third cost item according to the angle between the indoor objects;

[0043] The angle between any indoor object and the wall is calculated, and the fourth cost item is obtained according to the angle between the indoor object and the wall.

[0044] The alignment constraint indicates whether indoor objects are aligned with each other and with the walls. Reducing the third and fourth cost items can improve the neatness of the indoor environment of the Metaverse and enhance the user experience.

[0045] As a preferred solution, the process of calculating the cost item according to the focus constraint includes:

[0046] Selecting a specific indoor object as the focus of the optimization scheme according to the distribution of the indoor objects, and determining the intersection symmetry axis in the optimization scheme according to the focus;

[0047] Reflect the indoor objects respectively according to the symmetry axis of the intersection to obtain the reflected objects;

[0048] A fifth cost term is obtained according to the angle of the indoor object related to the focal point relative to the focal point;

[0049] A sixth cost item is obtained according to the angle between the indoor object and the focus, the angle between the reflective object and the focus, and the distance between the indoor object and the reflective object.

[0050] In the design process of indoor environment, a specific indoor object is usually used as the focus of the indoor environment, so as to highlight the specific elements or areas in the indoor environment and guide the user's attention to the indoor object as the focus and its surrounding space. The fifth and sixth cost items respectively characterize the angle direction and symmetry of other indoor objects relative to the focus. By reducing the fifth and sixth cost items, the rationality and symmetry of the layout of indoor objects around the focus can be improved, thereby enhancing the functionality and comfort of the indoor environment.

[0051] The embodiment of the present invention further provides a metaverse indoor environment generation system based on ergonomic constraints, including a data sampling module, a data processing module, a solution generation module and a verification optimization module, wherein:

[0052] The data sampling module is used to sample the target environment to obtain sampled data, wherein the sampled data includes a number of indoor objects;

[0053] The data processing module is used to mark and classify each indoor object according to the sampled data to obtain first training data, and to encode each indoor object through a graph structure according to the sampled data to obtain second training data;

[0054] The solution generation module is used to train a neural network model according to the first training data and the second training data to obtain a metaverse indoor environment generation model, and obtain an initial solution through the metaverse indoor environment generation model;

[0055] The verification and optimization module is used to verify the initial plan. If it meets the requirements, the initial plan will be used as the final plan. If it does not meet the requirements, the initial plan will be optimized according to ergonomic constraints to obtain the final plan, and the metaverse indoor environment will be generated according to the final plan.

[0056] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0057] 1. The present invention optimizes the initial solution according to ergonomic constraints, thereby improving the consistency between the optimization solution and the real environment, improving the rationality and interactivity of the ultimately generated metaverse indoor environment, and improving the user experience;

[0058] 2. The present invention collects real environment data and obtains first training data and second training data through different processing, and respectively trains the number, type and relative relationship of indoor objects, thereby improving the reliability of the obtained metaverse indoor environment generation model;

[0059] 3. The type of sampling data obtained by the present invention is point cloud data, which expands the information content contained in the sampling data and can change the amount of point cloud data according to actual needs, thereby improving the practicability of the metaverse environment generation method. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 : A schematic diagram of the steps of a method for generating a metaverse indoor environment based on ergonomic constraints provided in an embodiment of the present invention;

[0061] Figure 2 :A flow chart for verifying and optimizing the initial solution in an embodiment of the present invention;

[0062] Figure 3 : A schematic diagram of a module of a metaverse indoor environment generation system based on ergonomic constraints provided in an embodiment of the present invention;

[0063] Figure 4 : A schematic diagram of a module structure of a verification optimization module provided in an embodiment of the present invention;

[0064] Among them, the figure numbers of the drawings in the specification are as follows: 1. Data sampling module, 2. Data processing module, 3. Solution generation module, 4. Verification and optimization module, 401. Verification unit, 402. Optimization and modification unit, 403. Cost calculation unit, 404. Environment generation unit. DETAILED DESCRIPTION

[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0066] Embodiment 1

[0067] In an embodiment of the present invention, a method for generating a metaverse indoor environment based on ergonomic constraints is provided. Figure 1 As shown, Figure 1 This is a schematic diagram of the steps of a method for generating a metaverse indoor environment based on ergonomic constraints provided in an embodiment of the present invention. As shown in the figure, this method includes the following steps.

[0068] Step S1: sampling a target environment to obtain sampling data, wherein the sampling data includes a plurality of indoor objects.

[0069] The target environment is a real environment that serves as a prototype of the Metaverse indoor environment. By collecting data from the target environment, a data basis can be provided for generating the Metaverse indoor environment. In this method, an on-site survey of the target environment is first conducted to record the shape and layout of the target environment, as well as the types and distribution of indoor objects in the target environment. Based on the above data, the optimal camera layout algorithm is used to calculate the optimal layout position and angle of the sampling device to ensure that the target points and control points can see each other during the sampling process, thereby avoiding the problem of incomplete sampling data and improving the quality of the sampling data.

[0070] In different embodiments, other types of optimal camera layout algorithms may be selected according to the characteristics of the target environment and actual application needs, including but not limited to: genetic algorithm, particle swarm optimization algorithm and simulated annealing algorithm.

[0071] According to the obtained optimal layout position and angle of the sampling device, the sampling device is arranged, and the target environment is sampled through the sampling device. In different embodiments, other types of sampling devices can be selected according to the characteristics of the target environment and actual application needs, and the types of sampling devices include but are not limited to: RGB-D camera, 3D laser scanner and laser radar, etc.

[0072] During the sampling process, each sampling device collects data at different positions and angles using a point cloud sampling method to ensure the integrity of the obtained sampling data. In different embodiments, other types of point cloud sampling methods can be selected according to the characteristics of the target environment and actual application needs, including but not limited to uniform sampling, geometric sampling, and grid sampling.

[0073] For the moral measurement results obtained by the point cloud sampling method, the sampling data of the target environment is obtained by combining a specific measurement principle. The sampling data is in the form of point cloud data, which includes the three-dimensional coordinates, reflection intensity and color information of different data points, and can be used to characterize the target environment and the characteristics of each indoor object. Point cloud data can reflect a variety of information such as the shape and color of objects in the target environment. By collecting point cloud data of the real environment, the integrity of the sampling data can be improved, providing a basis for the subsequent generation of the metaverse indoor environment. In different embodiments, other types of measurement principles can be selected according to the characteristics of the target environment and actual application needs, including but not limited to: laser measurement and photogrammetry.

[0074] Step S2: Mark and classify each indoor object according to the sampled data to obtain first training data, and encode each indoor object through a graph structure according to the sampled data to obtain second training data.

[0075] Before further calculation, the obtained sampling data needs to be preprocessed, and the preprocessing mainly includes filtering, denoising and registration merging.

[0076] Step S2.1, pre-process the sampled data.

[0077] First, the sampled data is filtered to reduce the noise level in the sampled data and achieve the purpose of denoising. The sampled data is in the form of point cloud data. During the sampling process, the point cloud data will be affected by the sampling equipment, the target environment, and the characteristics of the indoor objects themselves, resulting in some inevitable noise. The noise not only increases the amount of point cloud data and reduces the calculation efficiency, but also affects the accuracy of subsequent training data and models.

[0078] In different embodiments, different filtering methods may be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: a statistical filtering method, a field-based filtering method, and a partial differential equation-based filtering method.

[0079] Secondly, for the filtered sampling data, it is necessary to improve the point cloud coincidence of the sampling data through a variety of registration methods. The point cloud coincidence reflects the degree of matching of different point cloud data sets in terms of geometric structure. The sampling data obtained in step S1 includes multiple angles and multiple sampling time points. In the sampling data obtained from different angles and different sampling time points, there may be deviations between the sampling data of the same indoor object, that is, the point cloud coincidence is low, resulting in a decrease in the consistency of the sampling data, affecting the accuracy of subsequent calculations. Therefore, in the preprocessing process, the sampling data needs to be registered and merged to improve the consistency between different sampling data of the same indoor object, and then construct the complete point cloud data of the target environment, providing a reliable basis for further data analysis and processing.

[0080] In the registration and merging process, the first step is to use a coarse registration method to make the sampling data of multiple angles or multiple sampling time points of the same indoor object overlap in a large range, thereby preliminarily improving the point cloud coincidence of the sampling data belonging to the same indoor object. In different embodiments, different coarse registration methods can be selected according to the characteristics of the sampling data and actual application needs, including but not limited to: feature-based methods, learning-based methods, and probability-based methods.

[0081] In the second step, the point cloud coincidence of the sampled data is further improved by a precise registration method. In different embodiments, different precise registration methods can be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: ICP algorithm or its various variants and NDT algorithm or its various variants.

[0082] Step S2.2: Determine whether it is necessary to simplify the point cloud of the sampling data according to actual application needs.

[0083] For the pre-processed sampled data, it is also necessary to determine whether the sampled data needs to be simplified according to the actual application needs. In the actual application process, different target scenes have different requirements for the detail and accuracy of the sampled data. For target scenes with low requirements for detail and accuracy, if the amount of sampled data is too large, the calculation cost will be too high; at the same time, the equipment used to collect and calculate data also has resource limitations and cannot calculate point cloud data with too large a data volume.

[0084] In view of the above problems, this method determines whether it is necessary to simplify the point cloud of the preprocessed sampled data according to the actual application needs, so as to reduce the number of points in the sampled data without significantly losing the details and geometric features of the sampled data, thereby reducing the storage cost and improving the data processing efficiency. In different embodiments, different point cloud simplification technologies can be selected according to the characteristics of the sampled data and the actual application needs, including but not limited to: convolutional neural networks, grid-based simplification methods, and scattered point-based simplification methods. The degree of simplification of the sampled data can be based on the simplification ratio set by the user, or can be adaptively adjusted through the algorithm.

[0085] Step S2.3: Obtain first training data and second training data based on the preprocessed sampled data.

[0086] The preprocessed sampled data is mainly processed in two ways to obtain training data, and the obtained training data includes first training data and second training data.

[0087] For the first training data, the method first uses point cloud segmentation technology to color-mark the preprocessed sampled data according to the marking conditions. The marking conditions are mainly the characteristics of the sampled data, including the spatial geometry, reflectivity, height and depth of the indoor objects. Different indoor objects can be effectively identified and distinguished by different color markings. In different embodiments, different point cloud segmentation technologies can be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: PointNet++ network, RANSAC algorithm, Euclidean clustering algorithm and region growing algorithm.

[0088] Secondly, for the labeled sampled data, the object classification method is used to classify it according to the classification conditions, thereby obtaining the first preprocessed data. Before classification, the global point cloud features of the sampled data need to be learned. The global point cloud features include the density, shape and size of the points in the sampled data, as well as the distribution, curvature and normal direction of the points. The sampled data are classified according to the global point cloud features, so that different types of sampled data are classified into different point cloud data sets, thereby distinguishing different types of indoor objects. In different embodiments, different object classification methods can be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: multi-layer perceptron, convolutional neural network and Poi ntNet++ network.

[0089] For the first preprocessed data obtained, different quantity weights are assigned to each indoor object according to the type and requirements of the target environment, thereby obtaining the first training data. The assignment of quantity weights can limit the number of different types of indoor objects to ensure the spatial balance and functional requirements of the ultimately generated metaverse indoor environment. In different embodiments, different weight assignment methods can be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: counting the number of each indoor object divided by the total number of indoor objects, manually setting weights, and logarithmic transformation.

[0090] For the second training data, the method first uses a graph structure to encode indoor objects, thereby obtaining second preprocessed data. The graph structure is a set of non-empty finite nodes and a set of edges connecting any two nodes in the node set. In this method, the nodes represent indoor objects, and the edges between the nodes represent the spatial constraints between indoor objects. The relative relationship between indoor objects can be constrained by graph structure encoding, thereby improving the layout rationality of the final generated metaverse indoor environment.

[0091] In different embodiments, different spatial constraints may be selected according to the characteristics of the sampling data and actual application needs, including but not limited to: topological constraints and geometric constraints, etc. Topological constraints may limit the positional relationship between indoor objects, where the positional relationship includes adjacent relationships and paired relationships, etc.; geometric constraints may limit the floor space and geometric dimensions of indoor objects.

[0092] The obtained second pre-processed data is labeled according to the indoor type of the target environment, which includes but is not limited to: bedroom, kitchen, office, etc. Target environments of different indoor types have different requirements for space constraints, so they need to be distinguished by labeling.

[0093] Step S3: train a neural network model according to the first training data and the second training data to obtain a metaverse indoor environment generation model, and obtain an initial solution through the metaverse indoor environment generation model.

[0094] According to the first training data and the second training data obtained in step S2, the neural network model is trained to obtain a metaverse indoor environment generation model. The first training data is related to the number and type of indoor objects, and can control the number of indoor objects generated during training; the second training data is related to the relative relationship of indoor objects, and can control the rationality of the layout of indoor objects during training.

[0095] The neural network model used in this method is a model based on a graph neural network, including but not limited to: a combination of GAN and a graph neural network, a combination of VAE and a graph neural network, and a graph convolutional network. In different embodiments, different neural network training methods can be selected according to the characteristics of the data and actual application needs, including but not limited to: semi-supervised learning, supervised learning, and reinforcement learning.

[0096] According to the indoor type of the target environment, the Metaverse indoor environment generation model is called to generate an initial plan of the Metaverse indoor environment corresponding to the target environment.

[0097] Step S4: Verify the initial plan. If it meets the requirements, use the initial plan as the final plan. If it does not meet the requirements, optimize the initial plan according to ergonomic constraints to obtain the final plan, and generate the metaverse indoor environment according to the final plan.

[0098] Reference Figure 2 As shown, Figure 2 This is a flow chart for verifying and optimizing the initial solution in an embodiment of the present invention. As shown in the figure, after the initial solution is obtained through step S3, the obtained initial solution is verified and it is determined whether the initial solution meets the requirements.

[0099] The compliance with the requirements in this step refers to whether the initial plan is consistent with the actual environment. If the initial plan is consistent with the actual environment, the initial plan is judged to meet the requirements and can be output as the final plan to generate the metaverse indoor environment; if the initial plan is inconsistent with the actual environment, the metaverse indoor environment generated according to the initial plan is inconsistent with the actual environment, resulting in reduced interactivity of the metaverse indoor environment and weakened user experience.

[0100] In different embodiments, different verification methods may be selected according to the characteristics of the initial solution and actual application needs, including but not limited to: periodic verification, specific scale verification, and on-demand verification.

[0101] When the initial solution does not meet the requirements, it is necessary to optimize and modify it according to the initial solution, thereby generating multiple optimization solutions. The optimization modification can be automatically proposed by the system, mainly including adjusting the position of indoor objects, adjusting the direction of indoor objects, and exchanging the position of indoor objects.

[0102] According to the ergonomic constraints, multiple cost items are calculated separately, and weights are assigned to each cost item to obtain a cost function. Ergonomics is a discipline that studies the physiological and psychological factors of people in a certain working environment, and the interaction between people and machines or the environment. Ergonomics studies how people consider work efficiency, health, safety and comfort at work, at home and on vacation. In this method, ergonomic constraints mainly include circulation constraints, visual balance constraints, alignment constraints and focus constraints.

[0103] The flow constraint indicates whether the indoor objects overlap and thus do not match the real environment. When calculating, first project the indoor objects onto the ground to obtain the projection objects. The ground mentioned here refers to the ground of the indoor environment of the metaverse, which corresponds to the ground of the real environment. Use the Minkowski sum to add gaps between different indoor objects, that is, calculate the overlapping area between different projected objects, so as to obtain the first cost item. In this embodiment, the first cost item is as follows:

[0104]

[0105] Among them, m cv is the first cost item; I is the layout of the Metaverse indoor environment; f and g are different indoor objects respectively; J F is the area of ​​the metaverse indoor environment, and its boundary is represented by a polygonal approximation; is the complement of the polygon that approximates the boundary of the indoor environment of the metaverse; A is the area operator.

[0106] By reducing the first cost item, the interactivity of the Metaverse indoor environment can be improved, making the spatial design of the Metaverse indoor environment more adaptable to the movement and activities of users.

[0107] The visual balance constraint represents the visual balance of indoor objects. When calculating, the center of mass of the optimization solution is first calculated based on the area and position of the indoor object. The center of mass mentioned here is the center of mass of the area of ​​the indoor environment of the Metaverse, that is, the visual center of gravity of the area. The second cost item is obtained based on the area and position of the indoor object and the distance from the center of mass. In this embodiment, the second cost item is as follows:

[0108]

[0109] Among them, m vb is the second cost item; F is the set of indoor objects in the optimization scheme; A(f) is the area of ​​indoor object f; p(f) is the position of indoor object f; R is the polygon approximating the boundary of the indoor environment of the metaverse; c(R) is the centroid of the indoor environment of the metaverse.

[0110] By reducing the second cost item, the visual fatigue of users when they are active in the Metaverse indoor environment can be reduced, and the rationality of the Metaverse indoor environment layout can be improved.

[0111] The alignment constraint indicates the arrangement of indoor elements in space, including whether indoor objects are aligned with each other and whether indoor objects are aligned with walls. The calculation is mainly divided into two parts. The first part is to calculate whether different indoor objects are aligned. At this time, the angle between any two indoor objects is calculated, and the third cost item is obtained according to the angle between the indoor objects. In this embodiment, the third cost item is as follows:

[0112]

[0113] Where m fa is the third cost item; S is a set of indoor objects, including indoor objects f and g; G is the set of S; θ is the angle of the global coordinate system of the indoor object equivalent to the indoor environment of the metaverse.

[0114] The second part is to calculate whether different indoor objects are aligned with the wall. The wall mentioned here is the wall of the indoor environment of the metaverse, which corresponds to the wall of the real environment. At this time, the angle between any indoor object and the wall is calculated, and the fourth cost item is obtained according to the angle between the indoor object and the wall. In this embodiment, the fourth cost item is as follows:

[0115]

[0116] Among them, m wa is the fourth cost item; θ w is the angle between the indoor object f and the nearest wall.

[0117] By reducing the third and fourth cost items, the neatness of the Metaverse's indoor environment can be improved, thereby enhancing the user experience.

[0118] In the design process of indoor environment, a specific indoor object is usually used as the focus of the indoor environment, so as to highlight the specific elements or areas in the indoor environment and guide the user's attention to the indoor object as the focus and its surrounding space. When calculating, the focus constraint includes the fifth cost item and the sixth cost item, where the fifth cost item represents the angular direction of other indoor objects relative to the focus, and the sixth cost item represents the symmetry degree of other indoor objects relative to the focus.

[0119] In the calculation process of the fifth cost item, the intersection symmetry axis is first determined in the indoor space of the metaverse according to the focus, and the indoor objects are respectively reflected according to the intersection symmetry axis to obtain the reflected objects. And according to the angle of the indoor objects related to the focus relative to the focus, the fifth cost item is obtained. In this embodiment, the fifth cost item is as follows:

[0120]

[0121] Among them, m ef is the fifth cost item; G is the set of indoor object groups related to the indoor object as the focus; is the angle of the direction of the indoor object g relative to the focus.

[0122] In the calculation process of the sixth cost item, the sixth cost item is obtained according to the angle between the indoor object and the focus, the angle between the reflection object and the focus, and the distance between the indoor object and the reflection object. In this embodiment, the sixth cost item is as follows:

[0123]

[0124] Among them, m sy is the sixth cost item; S f is the set of indoor objects that match the indoor object f; s(f,g,p) is the focal symmetry function of the indoor object, which is as follows

[0125] s(f,g,p)=cos[θ p (f)-θ p (r p (g))]-γd[f,r p (g)]

[0126] Among them, θ p is the angle of the indoor object relative to the focus; r p (g) is the position of the indoor object g after reflection through the intersection symmetry axis; γ is the weight coefficient, which is used to indicate the relative importance of distance; d is the distance operator.

[0127] By reducing the fifth and sixth cost items, the metaverse interior environment can be made symmetrical around the focus, improving the rationality and symmetry of the layout of indoor objects around the focus, thereby enhancing the functionality and comfort of the interior environment.

[0128] According to the obtained first to sixth cost items, a cost function is obtained by aggregation and processing through the Boltzmann density function. In this embodiment, the cost function is as follows:

[0129]

[0130] Among them, C R,G is the cost function; F is the optimization solution; w i is the weight coefficient of different cost items; i is the subscript of the cost item, satisfying i∈{cv,vb,fa,wa,ef,sy}. In the calculation process, if Figure 2 As shown, some cost items can also be selected according to actual application needs to obtain a cost function.

[0131] The Boltzmann density function in this embodiment is as follows:

[0132]

[0133] Where Z is the partition function of the standardized distribution; β is the temperature parameter.

[0134] For the multiple optimization schemes proposed, the results of the cost function are calculated respectively to obtain the cost value corresponding to each optimization scheme. The optimization schemes are sorted according to the cost value, and the optimization scheme with the lowest cost value is selected as the recommended scheme. The cost function can effectively characterize the degree of consistency between the optimization scheme and the real environment. The lower the cost function value, the more consistent the optimization scheme is with the real environment, and the higher the interactivity of the metaverse indoor environment generated according to the scheme.

[0135] For the calculated suggested solution, it is necessary to use the Metropolis-Hastings algorithm to calculate whether to accept the suggested solution as the final solution output. In this embodiment, the acceptance probability of the suggested solution is as follows:

[0136]

[0137] Among them, α is the acceptance probability; F * is the proposed solution. If the acceptance probability is greater than the set threshold, the proposed solution is determined to be accepted, the proposed solution is output as the final solution, and the metaverse indoor environment is generated according to the final solution; if the acceptance probability is less than the set threshold, the proposed solution is determined not to be accepted, and the optimization solution is regenerated and calculated.

[0138] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0139] 1. The present invention optimizes the initial solution according to ergonomic constraints, thereby improving the consistency between the optimization solution and the real environment, improving the rationality and interactivity of the ultimately generated metaverse indoor environment, and improving the user experience;

[0140] 2. The present invention collects real environment data and obtains first training data and second training data through different processing, and respectively trains the number, type and relative relationship of indoor objects, thereby improving the reliability of the obtained metaverse indoor environment generation model;

[0141] 3. The type of sampling data obtained by the present invention is point cloud data, which expands the information content contained in the sampling data and can change the amount of point cloud data according to actual needs, thereby improving the practicability of the metaverse environment generation method.

[0142] Embodiment 2

[0143] The embodiment of the present invention also provides a metaverse indoor environment generation system based on ergonomic constraints, referring to Figure 3 As shown, Figure 3 This is a module schematic diagram of a metaverse indoor environment generation system based on ergonomic constraints provided in an embodiment of the present invention. As shown in the figure, the system includes a data sampling module 1, a data processing module 2, a solution generation module 3 and a verification optimization module 4.

[0144] The target environment is a real environment that serves as a prototype of the indoor environment of the Metaverse. By collecting data of the target environment, a data basis can be provided for generating the indoor environment of the Metaverse. In this system, the target environment is first surveyed on site by the data sampling module 1 to record the shape and layout of the target environment, as well as the types and distribution of indoor objects in the target environment. The data sampling module 1 includes a layout calculation unit. The layout calculation unit uses the optimal camera layout algorithm to calculate the optimal layout position and angle of the sampling device based on the above data to ensure that the target point and the control point can see each other during the sampling process, thereby avoiding the problem of incomplete sampling data and improving the quality of the sampling data.

[0145] In different embodiments, other types of optimal camera layout algorithms may be selected according to the characteristics of the target environment and actual application needs, including but not limited to: genetic algorithm, particle swarm optimization algorithm and simulated annealing algorithm.

[0146] The data sampling module 1 also includes a point cloud sampling unit, which arranges the sampling device according to the optimal layout position and angle of the sampling device, and the point cloud sampling unit samples the target environment through the sampling device. In different embodiments, other types of sampling devices can be selected according to the characteristics of the target environment and actual application needs, and the types of sampling devices include but are not limited to: RGB-D camera, 3D laser scanner and laser radar, etc.

[0147] During the sampling process, each sampling device collects data at different positions and angles using a point cloud sampling method to ensure the integrity of the obtained sampling data. In different embodiments, other types of point cloud sampling methods can be selected according to the characteristics of the target environment and actual application needs, including but not limited to uniform sampling, geometric sampling, and grid sampling.

[0148] For the moral measurement results obtained by the point cloud sampling method, the sampling data of the target environment is obtained by combining a specific measurement principle in the point cloud sampling unit. The sampling data is in the form of point cloud data, which includes the three-dimensional coordinates, reflection intensity and color information of different data points, and can be used to characterize the target environment and the characteristics of each indoor object. Point cloud data can reflect a variety of information such as the shape and color of objects in the target environment. By collecting point cloud data of the real environment, the integrity of the sampling data can be improved, providing a basis for the subsequent generation of the metaverse indoor environment. In different embodiments, other types of measurement principles can be selected according to the characteristics of the target environment and actual application needs, including but not limited to: laser measurement and photogrammetry.

[0149] Before further calculation, the obtained sampling data needs to be preprocessed by the data processing module 2, and the data processing module 2 includes a denoising and merging unit, a first data processing unit and a second data processing unit.

[0150] First, the sampled data is filtered by the denoising and merging unit to reduce the noise level in the sampled data and achieve the purpose of denoising. The sampled data is in the form of point cloud data. During the sampling process, the point cloud data will be affected by the sampling equipment, the target environment and the characteristics of the indoor objects themselves, resulting in some noise. The noise not only increases the amount of point cloud data and reduces the calculation efficiency, but also affects the accuracy of subsequent training data and models.

[0151] In different embodiments, different filtering methods may be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: a statistical filtering method, a field-based filtering method, and a partial differential equation-based filtering method.

[0152] Secondly, for the filtered sampling data, it is also necessary to improve the point cloud coincidence of the sampling data through a denoising and merging unit with a variety of registration methods. The point cloud coincidence reflects the degree of matching of different point cloud data sets in terms of geometric structure. The sampling data obtained in the data sampling module 1 includes multiple angles and multiple sampling time points. In the sampling data obtained from different angles and different sampling time points, there may be deviations between the sampling data of the same indoor object, that is, the point cloud coincidence is low, resulting in a decrease in the consistency of the sampling data, affecting the accuracy of subsequent calculations. Therefore, in the preprocessing process, the sampling data needs to be registered and merged to improve the consistency between different sampling data of the same indoor object, and then construct the complete point cloud data of the target environment, providing a reliable basis for further data analysis and processing.

[0153] In the registration and merging process, the denoising and merging unit first uses a coarse registration method to make the sampling data of multiple angles or multiple sampling time points of the same indoor object overlap in a large range, thereby preliminarily improving the point cloud coincidence of the sampling data belonging to the same indoor object. In different embodiments, different coarse registration methods can be selected according to the characteristics of the sampling data and actual application needs, including but not limited to: feature-based methods, learning-based methods, and probability-based methods.

[0154] After the rough registration is completed, the denoising and merging unit further improves the point cloud coincidence of the sampled data through a fine registration method. In different embodiments, different fine registration methods can be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: ICP algorithm or its various variants and NDT algorithm or its various variants.

[0155] The data processing module 2 also includes point cloud simplification elements. For the pre-processed sampled data, it is also necessary to determine whether the sampled data needs to be simplified according to the actual application needs. In the actual application process, different target scenes have different requirements for the detail and accuracy of the sampled data. For target scenes with low requirements for detail and accuracy, if the amount of sampled data is too large, the calculation cost will be too high; at the same time, the equipment used to collect and calculate data also has resource limitations and cannot calculate point cloud data with too large a data volume.

[0156] To address the above issues, this system determines whether it is necessary to perform point cloud simplification on the preprocessed sampling data based on actual application needs. If simplification is required, the point cloud simplification is performed on the sampling data through point cloud simplification elements. This can reduce the number of points in the sampling data without significantly losing the details and geometric features of the sampling data, thereby reducing storage costs and improving data processing efficiency.

[0157] In different embodiments, different point cloud simplification techniques may be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: convolutional neural network, grid-based simplification method, and scattered point-based simplification method. The simplification degree of the sampled data may be based on the simplification ratio set by the user, or may be adaptively performed through an algorithm.

[0158] For the preprocessed sampled data, training data is obtained mainly through the first data processing unit and the second data processing unit respectively, and the obtained training data includes first training data and second training data.

[0159] For the first training data, the first data processing unit in the system processes it, and firstly adopts the point cloud segmentation technology to color-mark the pre-processed sampled data according to the marking conditions. The marking conditions are mainly the characteristics of the sampled data, including the spatial geometry, reflectivity, height and depth of the indoor objects. Different indoor objects can be effectively identified and distinguished by different color markings. In different embodiments, different point cloud segmentation technologies can be selected according to the characteristics of the sampled data and the actual application needs, including but not limited to: PointNet++ network, RANSAC algorithm, Euclidean clustering algorithm and region growing algorithm.

[0160] Secondly, for the labeled sampled data, the first data processing unit classifies it according to the classification conditions through the object classification method, thereby obtaining the first preprocessed data. Before classification, the global point cloud features of the sampled data need to be learned. The global point cloud features include the density, shape and size of the points in the sampled data, as well as the distribution, curvature and normal direction of the points. The sampled data are classified according to the global point cloud features, so that different types of sampled data are classified into different point cloud data sets, thereby distinguishing different types of indoor objects. In different embodiments, different object classification methods can be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: multi-layer perceptron, convolutional neural network and Poi ntNet++ network.

[0161] For the first preprocessed data obtained, different quantity weights are assigned to each indoor object according to the type and requirements of the target environment by the first data processing unit, thereby obtaining the first training data. The assignment of quantity weights can limit the number of different types of indoor objects to ensure the spatial balance and functional requirements of the final generated metaverse indoor environment. In different embodiments, different weight assignment methods can be selected according to the characteristics of the sampled data and actual application needs, including but not limited to: counting the number of each indoor object divided by the total number of indoor objects, manually setting weights and logarithmic transformation, etc.

[0162] For the second training data, the second data processing unit in this system processes it, and first uses a graph structure to encode the indoor objects, thereby obtaining the second preprocessed data. The graph structure is a set of a non-empty finite number of nodes and a set of edges connecting any two nodes in the node set. In this system, the nodes represent indoor objects, and the edges between the nodes represent the spatial constraints between the indoor objects. The relative relationship between indoor objects can be constrained by graph structure encoding, thereby improving the layout rationality of the final generated metaverse indoor environment.

[0163] In different embodiments, different spatial constraints may be selected according to the characteristics of the sampling data and actual application needs, including but not limited to: topological constraints and geometric constraints, etc. Topological constraints may limit the positional relationship between indoor objects, where the positional relationship includes adjacent relationships and paired relationships, etc.; geometric constraints may limit the floor space and geometric dimensions of indoor objects.

[0164] The obtained second pre-processed data is marked by the second data processing unit according to the indoor type of the target environment, which includes but is not limited to: bedroom, kitchen, office, etc. Target environments of different indoor types have different requirements for space constraints, so they need to be distinguished by marking.

[0165] According to the first training data and the second training data obtained by the data processing module 2, the neural network model is trained in the solution generation module 3 to obtain the metaverse indoor environment generation model. The first training data is related to the number and type of indoor objects, and the number of indoor objects generated can be controlled during training; the second training data is related to the relative relationship of indoor objects, and the rationality of the indoor object layout can be controlled during training.

[0166] The neural network model used in this system is a model based on a graph neural network, including but not limited to: a combination of GAN and a graph neural network, a combination of VAE and a graph neural network, and a graph convolutional network. In different embodiments, different neural network training methods can be selected according to the characteristics of the data and actual application needs, including but not limited to: semi-supervised learning, supervised learning, and reinforcement learning.

[0167] The solution generation module 3 calls the metaverse indoor environment generation model according to the indoor type of the target environment to generate an initial solution of the metaverse indoor environment corresponding to the target environment.

[0168] Reference Figure 4 As shown, Figure 4 This is a schematic diagram of the module structure of the verification optimization module provided in an embodiment of the present invention. As shown in the figure, the verification optimization module 4 includes a verification unit 401, an optimization modification unit 402, a cost calculation unit 403 and an environment generation unit 404.

[0169] After obtaining the initial solution generated by the solution generation module 3, the initial file is input into the verification optimization module 4, and the initial solution is verified by the verification unit 401 in the verification optimization module 4 to determine whether the initial solution meets the requirements. The compliance mentioned here refers to whether the initial solution is consistent with the actual environment. If the initial solution is consistent with the actual environment, it is determined that the initial solution meets the requirements and can be output as the final solution, and the metaverse indoor environment is generated; if the initial solution is inconsistent with the actual environment, the metaverse indoor environment generated according to the initial solution is inconsistent with the actual environment, resulting in reduced interactivity of the metaverse indoor environment and weakened user experience.

[0170] In different embodiments, different verification methods may be selected according to the characteristics of the initial solution and actual application needs, including but not limited to: periodic verification, specific scale verification, and on-demand verification.

[0171] When the initial solution does not meet the requirements, the optimization modification unit 402 needs to automatically perform optimization modification according to the initial solution, thereby generating multiple optimization solutions. The optimization modification mainly includes adjusting the position of the indoor object, adjusting the direction of the indoor object, and exchanging the position of the indoor object.

[0172] For the multiple optimization schemes generated by the optimization modification unit 402, the cost calculation unit 403 calculates multiple cost items according to the ergonomic constraints, and assigns weights to the cost items, thereby obtaining a cost function.

[0173] Ergonomics is a discipline that studies the physiological and psychological factors of people in a certain working environment, and the interaction between people and machines or the environment. Ergonomics studies how people can uniformly consider work efficiency, human health, safety and comfort at work, at home and on vacation. In this system, the cost calculation unit 403 includes a circulation constraint calculation subunit, a visual balance constraint calculation subunit, an alignment constraint calculation subunit and a focus constraint calculation subunit.

[0174] The circulation constraint calculation subunit is used to calculate the circulation constraint, which indicates whether the indoor objects overlap and thus do not conform to the real environment. During the calculation, the indoor objects are first projected onto the ground to obtain the projection objects. The ground mentioned here refers to the ground of the indoor environment of the metaverse, which corresponds to the ground of the real environment. The Minkowski sum is used to add gaps between different indoor objects, that is, to calculate the overlapping area between different projected objects, thereby obtaining the first cost item. In this embodiment, the first cost item is as follows:

[0175]

[0176] Among them, m cv is the first cost item; I is the layout of the Metaverse indoor environment; f and g are different indoor objects respectively; JF is the area of ​​the metaverse indoor environment, and its boundary is represented by a polygonal approximation; is the complement of the polygon that approximates the boundary of the indoor environment of the metaverse; A is the area operator.

[0177] By reducing the first cost item, the interactivity of the Metaverse indoor environment can be improved, making the spatial design of the Metaverse indoor environment more adaptable to the movement and activities of users.

[0178] The visual balance constraint calculation subunit is used to calculate the visual balance constraint, which represents the visual balance of indoor objects. When calculating, the center of mass of the optimization solution is first calculated according to the area and position of the indoor object. The center of mass mentioned here is the center of mass of the area of ​​the indoor environment of the metaverse, that is, the visual center of gravity of the area. The second cost item is obtained according to the area and position of the indoor object and the distance from the center of mass. In this embodiment, the second cost item is as follows:

[0179]

[0180] Among them, m vb is the second cost item; F is the set of indoor objects in the optimization scheme; A(f) is the area of ​​indoor object f; p(f) is the position of indoor object f; R is the polygon approximating the boundary of the indoor environment of the metaverse; c(R) is the centroid of the indoor environment of the metaverse.

[0181] By reducing the second cost item, the visual fatigue of users when they are active in the Metaverse indoor environment can be reduced, and the rationality of the Metaverse indoor environment layout can be improved.

[0182] The alignment constraint calculation subunit is used to calculate the alignment constraint, which represents the arrangement of indoor elements in space, including whether indoor objects are aligned with each other and whether indoor objects are aligned with walls. The calculation is mainly divided into two parts, wherein the first part is to calculate whether different indoor objects are aligned with each other. At this time, the angle between any two indoor objects is calculated, and the third cost item is obtained according to the angle between the indoor objects. In this embodiment, the third cost item is as follows:

[0183]

[0184] Where m fa is the third cost item; S is a set of indoor objects, including indoor objects f and g; G is the set of S; θ is the angle of the global coordinate system of the indoor object equivalent to the indoor environment of the metaverse.

[0185] The second part is to calculate whether different indoor objects are aligned with the wall. The wall mentioned here is the wall of the indoor environment of the metaverse, which corresponds to the wall of the real environment. At this time, the angle between any indoor object and the wall is calculated, and the fourth cost item is obtained according to the angle between the indoor object and the wall. In this embodiment, the fourth cost item is as follows:

[0186]

[0187] Among them, m wa is the fourth cost item; θ w is the angle between the indoor object f and the nearest wall.

[0188] By reducing the third and fourth cost items, the neatness of the Metaverse's indoor environment can be improved, thereby enhancing the user experience.

[0189] The focus constraint calculation subunit is used to calculate the focus constraint. In the design process of the indoor environment, a specific indoor object is usually used as the focus of the indoor environment, so as to highlight the specific elements or areas in the indoor environment and guide the user's attention to the indoor object as the focus and its surrounding space. When calculating, the focus constraint includes the fifth cost item and the sixth cost item, wherein the fifth cost item represents the angular direction of other indoor objects relative to the focus, and the sixth cost item represents the degree of symmetry of other indoor objects relative to the focus.

[0190] In the calculation process of the fifth cost item, the intersection symmetry axis is first determined in the indoor space of the metaverse according to the focus, and the indoor objects are respectively reflected according to the intersection symmetry axis to obtain the reflected objects. And according to the angle of the indoor objects related to the focus relative to the focus, the fifth cost item is obtained. In this embodiment, the fifth cost item is as follows:

[0191]

[0192] Among them, m ef is the fifth cost item; G is the set of indoor object groups related to the indoor object as the focus; is the angle of the direction of the indoor object g relative to the focus.

[0193] In the calculation process of the sixth cost item, the sixth cost item is obtained according to the angle between the indoor object and the focus, the angle between the reflection object and the focus, and the distance between the indoor object and the reflection object. In this embodiment, the sixth cost item is as follows:

[0194]

[0195] Among them, m sy is the sixth cost item; S fis the set of indoor objects that match the indoor object f; s(f,g,p) is the focal symmetry function of the indoor object, which is as follows

[0196] s(f,g,p)=cos[θ p (f)-θ p (r p (g))]-γd[f,r p (g)]

[0197] Among them, θ p is the angle of the indoor object relative to the focus; r p (g) is the position of the indoor object g after reflection through the intersection symmetry axis; γ is the weight coefficient, which is used to indicate the relative importance of distance; d is the distance operator.

[0198] By reducing the fifth and sixth cost items, the metaverse interior environment can be made symmetrical around the focus, improving the rationality and symmetry of the layout of indoor objects around the focus, thereby enhancing the functionality and comfort of the interior environment.

[0199] According to the obtained first to sixth cost items, the cost calculation unit 403 aggregates and processes them through the Boltzmann density function to obtain a cost function. In this embodiment, the cost function is as follows:

[0200]

[0201] Among them, C R,G is the cost function; F is the optimization solution; w i is the weight coefficient of different cost items; i is the subscript of the cost item, satisfying i∈{cv,vb,fa,wa,ef,sy}. In this embodiment, the Boltzmann density function is as follows:

[0202]

[0203] Where Z is the partition function of the standardized distribution; β is the temperature parameter.

[0204] According to the multiple optimization schemes proposed by the optimization modification unit 402, the results of the cost function are calculated in the cost calculation unit 403 respectively, so as to obtain the cost value corresponding to each optimization scheme. The optimization schemes are sorted according to the cost value, and the optimization scheme with the lowest cost value is selected as the recommended scheme. The cost function can effectively characterize the degree of conformity between the optimization scheme and the real environment. The lower the cost function value, the more consistent the optimization scheme is with the real environment, and the higher the interactivity of the metaverse indoor environment generated according to the scheme.

[0205] For the proposed solution obtained by the cost calculation unit 403, it is necessary to calculate whether to accept the proposed solution as the final solution output by the Metropolis-Hastings algorithm in the environment generation unit 404. In this embodiment, the acceptance probability of the proposed solution is as follows:

[0206]

[0207] Among them, α is the acceptance probability; F * is the proposed solution. If the acceptance probability is greater than the set threshold, the proposed solution is determined to be accepted, the proposed solution is output as the final solution, and the metaverse indoor environment is generated according to the final solution; if the acceptance probability is less than the set threshold, the proposed solution is determined not to be accepted, and the optimization solution is regenerated and calculated.

[0208] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0209] 1. The present invention optimizes the initial solution according to ergonomic constraints, thereby improving the consistency between the optimization solution and the real environment, improving the rationality and interactivity of the ultimately generated metaverse indoor environment, and improving the user experience;

[0210] 2. The present invention collects real environment data and obtains first training data and second training data through different processing, and respectively trains the number, type and relative relationship of indoor objects, thereby improving the reliability of the obtained metaverse indoor environment generation model;

[0211] 3. The type of sampling data obtained by the present invention is point cloud data, which expands the information content contained in the sampling data and can change the amount of point cloud data according to actual needs, thereby improving the practicality of the metaverse environment generation system.

[0212] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for generating a metaverse indoor environment based on ergonomic constraints, characterized in that: include: Sampling the target environment to obtain sampling data, wherein the sampling data includes a plurality of indoor objects; According to the sampling data, each indoor object is marked and classified to obtain first training data, and according to the sampling data, each indoor object is encoded through a graph structure to obtain second training data; Training a neural network model according to the first training data and the second training data to obtain a metaverse indoor environment generation model, and obtaining an initial solution through the metaverse indoor environment generation model; The initial plan is verified. If it meets the requirements, it is used as the final plan. If it does not meet the requirements, the initial plan is optimized according to ergonomic constraints to obtain the final plan, and the metaverse indoor environment is generated based on the final plan.

2. The method according to claim 1, characterized in that The step of sampling the target environment to obtain sampling data includes: Determine the layout of sampling equipment through an optimal camera layout algorithm; The sampling device samples the target environment using a point cloud sampling method to obtain sampling data at multiple angles.

3. The method according to claim 1, characterized in that The step of marking and classifying each indoor object according to the sampled data to obtain first training data includes: De-noising the sampled data and merging the sampled data through the registration method; The indoor objects in the merged sampling data are color-labeled and classified to obtain first pre-processed sampling data, and weights are assigned to the first pre-processed sampling data to obtain first training data.

4. The method according to claim 3, characterized in that The step of color marking and classifying the indoor objects in the merged sampled data to obtain first preprocessed sampled data, and assigning weights to the first preprocessed sampled data to obtain first training data includes: Color-marking the indoor objects in the merged sampled data according to marking conditions by using point cloud segmentation technology, wherein the marking conditions include spatial geometry, reflectivity, height, and depth of the indoor objects; Learning the global features of the sampled data and classifying the sampled data according to classification conditions, thereby obtaining first preprocessed sampled data, wherein the classification conditions include density, shape and size of the sampled data and distribution, curvature and normal direction of a point cloud in the sampled data; Weights are assigned to the first preprocessed sampled data to obtain first training data.

5. The method according to claim 1, characterized in that The step of encoding each indoor object through a graph structure according to the sampled data to obtain second training data includes: De-noising the sampled data and merging the sampled data through the registration method; The indoor objects of the merged sampled data are encoded through a graph structure to obtain second preprocessed sampled data, and the second preprocessed sampled data are marked according to the indoor type to obtain second training data.

6. The method according to claim 1, characterized in that The initial plan is verified. If it meets the requirements, the initial plan is used as the final plan. If it does not meet the requirements, the initial plan is optimized according to ergonomic constraints to obtain the final plan, and the metaverse indoor environment is generated according to the final plan, including: Verify the initial solution to determine whether it meets the requirements. If it meets the requirements, use the initial solution as the final solution. If it does not meet the requirements, optimize and modify the initial solution to generate multiple optimization solutions. The optimization and modification include adjusting the position of the indoor object, adjusting the direction of the indoor object, and exchanging the position of the indoor object. Calculating multiple cost items according to ergonomic constraints and assigning weights to the cost items to obtain a cost function, wherein the ergonomic constraints include a circulation constraint, a visual balance constraint, an alignment constraint, and a focus constraint; Calculate the cost function for each optimization scheme and obtain the cost value corresponding to each optimization scheme; Arrange the optimization plans according to the cost value, select the optimization plan with the lowest cost value as the final plan, and generate the metaverse indoor environment based on the final plan.

7. The method according to claim 6, characterized in that The process of calculating the cost item according to the liquidity constraint includes: Project the indoor object onto the ground to obtain a projection object; The overlapping area of ​​the projected objects is calculated to obtain the first cost item.

8. The method according to claim 6, characterized in that The process of calculating the cost item according to the visual balance constraint includes: Calculate the centroid of the optimization solution based on the area and location of the indoor objects; The second cost term is derived based on the area and location of the indoor objects and their distance from the centroid.

9. The method according to claim 6, characterized in that The process of calculating the cost item according to the alignment constraint includes: Calculate the angle between any two indoor objects, and obtain the third cost item according to the angle between the indoor objects; The angle between any indoor object and the wall is calculated, and the fourth cost item is obtained according to the angle between the indoor object and the wall.

10. The method according to claim 6, characterized in that The process of calculating the cost item according to the focus constraint includes: Selecting a specific indoor object as the focus of the optimization scheme according to the distribution of the indoor objects, and determining the intersection symmetry axis in the optimization scheme according to the focus; Reflect the indoor objects respectively according to the symmetry axis of the intersection to obtain the reflected objects; A fifth cost term is obtained according to the angle of the indoor object related to the focal point relative to the focal point; A sixth cost item is obtained according to the angle between the indoor object and the focus, the angle between the reflective object and the focus, and the distance between the indoor object and the reflective object.

11. A metaverse indoor environment generation system based on ergonomic constraints, characterized in that: It includes data sampling module, data processing module, solution generation module and verification optimization module, among which: The data sampling module is used to sample the target environment to obtain sampled data, wherein the sampled data includes a number of indoor objects; The data processing module is used to mark and classify each indoor object according to the sampled data to obtain first training data, and to encode each indoor object through a graph structure according to the sampled data to obtain second training data; The solution generation module is used to train a neural network model according to the first training data and the second training data to obtain a metaverse indoor environment generation model, and obtain an initial solution through the metaverse indoor environment generation model; The verification and optimization module is used to verify the initial plan. If it meets the requirements, the initial plan will be used as the final plan. If it does not meet the requirements, the initial plan will be optimized according to ergonomic constraints to obtain the final plan, and the metaverse indoor environment will be generated according to the final plan.

Citation Information

Cited By

  • Indoor 3D space synthetic data platform for intelligent training with body

    CN121725138A

  • Indoor 3D space synthetic data platform for embodied intelligence training

    CN121725138B