A metaverse product recommendation method, device and computer-readable storage medium

The multi-view features of the 3D model are obtained through the convolutional neural network, VSAM and LSTM feature extraction network, and combined with the generative adversarial network for cross-domain alignment, which solves the problem of being unable to match 2D images and 3D products in the existing technology, and realizes Metaverse products The high efficiency and accuracy of recommendations improves user experience.

CN117314561BActive Publication Date: 2024-10-22SUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311225913.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-21
Publication Date
2024-10-22
Estimated Expiration
2043-09-21

AI Technical Summary

Technical Problem

The existing product recommendation system cannot effectively extract the feature information of the 3D model, resulting in the inability to achieve effective matching between 2D images and 3D products, which reduces the user's shopping experience in the Metaverse virtual mall.

Method used

A convolutional neural network is used to obtain feature information of multiple 2D views of the 3D model. The VSAM and LSTM feature extraction networks are combined to capture the feature relationships inside and outside the view, generate spatial feature vectors of the 3D model, and perform cross-domain feature alignment through a generative adversarial network to calculate 2D The similarity between images and 3D models enables effective matching.

Benefits of technology

It improves the effectiveness and accuracy of product recommendations, achieves effective matching between 2D images and 3D models, and improves user shopping experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117314561B_ABST
    Figure CN117314561B_ABST
Patent Text Reader

Abstract

The present invention relates to a metaverse product recommendation method, device and computer-readable storage medium, and to the field of metaverse technology. It includes: obtaining multiple 2D views of each 3D model in the metaverse, inputting the multiple 2D views into a convolutional neural network, and obtaining a model feature vector group; using a VSAM feature extraction network and an LSTM feature extraction network to extract features from the model feature vector group to obtain a spatial feature vector of the 3D model; inputting the image feature vector of the 2D image to be matched and the spatial feature vectors of all 3D models into a generative adversarial network for adversarial learning, and outputting a target spatial feature vector set; calculating the similarity between the target spatial feature vector and the image feature vector to obtain the 3D model with the highest similarity to the 2D image. The present application extracts the feature information of each 3D model to the greatest extent, improves the effectiveness and accuracy of product recommendation, and realizes effective matching between 2D images and 3D models.
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 metaverse product recommendation method, device and computer-readable storage medium. Background Art

[0002] The technology empowerment brought by the Metaverse makes the meaning of space no longer limited to "physical space", but a combination of "physical space" and "virtual space", which brings infinite scalability to the innovation of shopping centers and provides a new idea for commercial breakthroughs in the stock era. At present, the scenes provided by the Metaverse allow various e-commerce platforms to directly settle in and establish trading platforms or virtual malls in the virtual world. Users in the real world can enter the Metaverse through smart electronic products and enter the Metaverse virtual mall to shop. The Metaverse virtual mall is a three-dimensional virtual mall created with the support of virtual reality technology, which can display goods in three dimensions, interact in real time, trade, pay and other comprehensive service functions. It restores all products in the real world with high precision and brings users an immersive shopping experience. However, with the continuous acceleration of the creation speed of virtual product information and the continuous increase in the number of users in the virtual community, the user scale is huge and the number of goods is large, which creates more obstacles between the two. Users often have to spend a lot of time and energy to find the products they need. Therefore, how to design product recommendation technology to achieve effective identification of related matching work and thus improve the overall satisfaction of users with the Metaverse virtual mall is a problem that needs to be solved at present.

[0003] Existing recommendation systems are designed to deal with the problem of information overload. The basic idea is to recommend the most relevant items from the existing options to a specific user. At present, commercial websites have begun to use various recommendation systems to help customers find the products they need. For example, content-based image retrieval (CBIR) is a process of obtaining a query image and finding related images from a large database of target images. From the perspective of the implementation of this system, the user submits or selects a product image, and the system retrieves similar products based on the visual content features (color, shape, volume, texture, local collection shape and other information) of the product image submitted or selected by the user, and finally generates a recommendation list to present to the user. However, this system can only handle the similarity between 2D images, while the products in the Metaverse virtual mall are all 3D models. Therefore, this system cannot achieve the Metaverse product recommendation task. In addition, since the products in the Metaverse virtual mall are generally 3D models made by computers, the use of ordinary convolutional neural networks cannot effectively extract the key feature information of the 3D model, and thus cannot recommend matching products based on the 2D images provided by the user, resulting in users not being able to get corresponding product recommendations when purchasing products in the Metaverse virtual mall, which reduces the user's shopping experience.

[0004] In summary, existing product recommendation methods have the problem of being unable to effectively extract feature information of 3D models, and thus unable to achieve effective matching between 2D images and 3D products. Summary of the invention

[0005] To this end, the technical problem to be solved by the present invention is to overcome the problem that the product recommendation method in the prior art cannot effectively extract the feature information of the 3D model, thereby failing to achieve effective matching between the 2D image and the 3D product.

[0006] In order to solve the above technical problems, the present invention provides a metaverse product recommendation method, comprising:

[0007] S10: Obtain a set of spatial feature vectors of all 3D models in the Metaverse, which specifically includes:

[0008] Obtain a set of 2D projections corresponding to each 3D model, and input the 2D projections in the 2D projection set into a convolutional neural network in a trained Metaverse product recommendation model to obtain a model feature vector group of the 3D model;

[0009] Inputting the model feature vectors in the model feature vector group into the VSAM feature extraction network in the trained Metaverse product recommendation model and the LSTM feature extraction network in the trained Metaverse product recommendation model respectively, and splicing the outputs of the VSAM feature extraction network and the LSTM feature extraction network to obtain the spatial feature vector of the 3D model;

[0010] A set of spatial feature vectors is obtained based on the spatial feature vectors of all 3D models;

[0011] S20: Acquire a 2D image to be matched, input the 2D image into the convolutional neural network, and output an image feature vector;

[0012] S30: Inputting the image feature vector and the set of spatial feature vectors into the generative adversarial network in the trained Metaverse product recommendation model to perform adversarial learning, and outputting a set of target spatial feature vectors;

[0013] S40: Calculate the similarity between the image feature vector and each target space feature vector in the target space feature vector set respectively, and use the 3D model corresponding to the target space feature vector with the highest similarity as the output of the trained metaverse product recommendation model.

[0014] In one embodiment of the present invention, before step S30, the method further includes:

[0015] The image feature vector and the spatial feature vector in the set of spatial feature vectors are respectively input into the first linear layer in the trained Metaverse product recommendation model and the second linear layer in the trained Metaverse product recommendation model, and the image feature vector and the set of spatial feature vectors after separation of the original features are obtained based on the outputs of the first linear layer and the second linear layer.

[0016] In one embodiment of the present invention, the image feature vector and the set of spatial feature vectors after original feature separation obtained based on the outputs of the first linear layer and the second linear layer include:

[0017] Inputting the image feature vector into the first linear layer and the second linear layer respectively, and outputting a domain-invariant feature vector and a domain-specific feature vector based on the image feature vector;

[0018] Obtaining an image feature vector after original feature separation based on the domain-invariant feature vector based on the image feature vector and the domain-specific feature vector based on the image feature vector;

[0019] Inputting the spatial feature vector into the first linear layer and the second linear layer respectively, and outputting a domain-invariant feature vector and a domain-specific feature vector based on the spatial feature vector;

[0020] Based on the domain-invariant feature vector based on the spatial feature vector and the domain-specific feature vector based on the spatial feature vector, the spatial feature vector after original feature separation is obtained, and based on all the spatial feature vectors after original feature separation, a set of spatial feature vectors after original feature separation is obtained.

[0021] In one embodiment of the present invention, the image feature vector after the original feature separation is:

[0022]

[0023] Among them, d n represents the first linear layer, d t represents the second linear layer, Represents the image feature vector of the j-th 2D image;

[0024] The spatial feature vector after the original feature separation is:

[0025]

[0026] in, Represents the i-th spatial feature vector in the set of spatial feature vectors.

[0027] In one embodiment of the present invention, step S30 further includes:

[0028] Calculating the centroid of the 2D image based on the image feature vector;

[0029] Clustering the target space feature vectors in the target space feature vector set, and outputting a 3D model data cluster set;

[0030] The probability that each 3D model data cluster in the 3D model data cluster set belongs to the same category as the 2D image is calculated, and the 3D model data clusters whose probability is less than a preset threshold are eliminated, and the target 3D model data cluster set is output, and an updated target space feature vector set is obtained based on the target space feature vector in the target 3D model data cluster set.

[0031] In one embodiment of the present invention, the centroid of the 2D image is:

[0032]

[0033] in, represents the centroid of the 2D image belonging to the kth category, n d Represents the number of 2D images to be matched. If but on the contrary,

[0034] The probability calculation formula that the 3D model data cluster and the 2D image belong to the same category is:

[0035]

[0036] in, represents the spatial feature vector after the i-th original feature in the p-th 3D model data cluster is separated, and K represents the total number of spatial feature vectors after the original feature in the p-th 3D model data cluster is separated.

[0037] In one embodiment of the present invention, obtaining the trained Metaverse product recommendation model includes:

[0038] Inputting the spatial feature vectors of the 2D images in the training set and the 3D models corresponding to the 2D images into the Metaverse product recommendation model for iterative training until the first loss function is minimized, thereby obtaining a trained Metaverse product recommendation model;

[0039] Among them, the first loss function is:

[0040]

[0041] Among them, the second loss function is the loss function of the first and second linear layers, and the third loss function To generate the loss function of the adversarial network, the fourth loss function represents the minimum mean square error between the centroid of the 3D model data cluster and the centroid of the 2D image, and γ is a balancing hyperparameter;

[0042]

[0043] Among them, n s Represents the number of 2D images in the training set, n t represents the number of spatial feature vectors of the 3D models in the training set, Represents the spatial feature vector after separation of the original features corresponding to the I-th 3D model in the training set, Represents the image feature vector after the original features are separated corresponding to the Jth 2D image in the training set;

[0044]

[0045]

[0046]

[0047] in, represents the loss function of the discriminator in the generative adversarial network, D represents the discriminator in the generative adversarial network, represents the loss function of the classifier in the generative adversarial network, G represents the classifier in the generative adversarial network, represents the cross entropy loss for multi-classification problems, represents the true category of the Jth 2D image in the training set;

[0048]

[0049] Where H represents the total number of 2D image categories in the training set, represents the centroid of the 2D image of the h-th category, represents the centroid of the 3D model data cluster of the hth category, L MSE represents the minimum mean square error.

[0050] In one embodiment of the present application, obtaining a set of 2D projections corresponding to each 3D model includes:

[0051] N virtual cameras are placed around the 3D model according to preset angles, and the N virtual cameras are all facing the center of the 3D model. N 2D projections are generated based on the outputs of the N virtual cameras to obtain a 2D projection set corresponding to the 3D model.

[0052] The present application also provides a metaverse product recommendation device, comprising:

[0053] The data acquisition and preprocessing module is used to obtain the spatial feature vector set of all 3D models in the Metaverse, which specifically includes:

[0054] Obtain a set of 2D projections corresponding to each 3D model, and input the 2D projections in the 2D projection set into a convolutional neural network in a trained Metaverse product recommendation model to obtain a model feature vector group of the 3D model;

[0055] Inputting the model feature vectors in the model feature vector group into the VSAM feature extraction network in the trained Metaverse product recommendation model and the LSTM feature extraction network in the trained Metaverse product recommendation model respectively, and splicing the outputs of the VSAM feature extraction network and the LSTM feature extraction network to obtain the spatial feature vector of the 3D model;

[0056] A set of spatial feature vectors is obtained based on the spatial feature vectors of all 3D models;

[0057] An image feature extraction module, used to obtain a 2D image to be matched, input the 2D image into the convolutional neural network, and output an image feature vector;

[0058] A cross-domain feature alignment module, used to input the image feature vector and the set of spatial feature vectors into the generative adversarial network in the trained metaverse product recommendation model for adversarial learning, and output a set of target spatial feature vectors;

[0059] The model acquisition module is used to respectively calculate the similarity between the image feature vector and each target space feature vector in the target space feature vector set, and use the 3D model corresponding to the target space feature vector with the highest similarity as the output of the trained metaverse product recommendation model.

[0060] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned metaverse product recommendation method are implemented.

[0061] The metaverse product recommendation method provided by the present invention obtains multiple 2D views of each 3D model in the metaverse, and uses a convolutional neural network to extract feature information of each view; uses a VSAM feature extraction network to capture the relationship between different positions of each 2D view, and uses an LSTM feature extraction network to capture the association between feature information of multiple 2D views, and finally combines them as the spatial feature descriptor of the 3D model, thereby extracting feature information of each 3D model to the greatest extent, thereby improving the effectiveness and accuracy of product recommendation; by inputting the image feature vector of the 2D image to be matched and the spatial feature vectors of all 3D models into a generative adversarial network for adversarial learning, the domain difference between the 2D image features and the 3D model features is reduced, and finally, by calculating the similarity between the spatial feature vector and the image feature vector of the 3D model, a 3D model with the highest similarity to the 2D image to be matched is obtained, thereby achieving effective matching between the 2D image and the 3D model. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein

[0063] Figure 1 It is a flow chart of the Metaverse product recommendation method provided by this application;

[0064] Figure 2 It is a schematic diagram of the principle of the Metaverse product recommendation model provided by this application;

[0065] Figure 3 This is a schematic diagram of the structure of the Metaverse product recommendation device provided in this application. DETAILED DESCRIPTION

[0066] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0067] See also Figure 1 , Figure 1 The flowchart of the Metaverse product recommendation method provided by this application is shown below, which includes:

[0068] S10: Obtain a set of spatial feature vectors of all 3D models in the Metaverse, which specifically includes:

[0069] Obtain a set of 2D projections corresponding to each 3D model, and input the 2D projections in the 2D projection set into the convolutional neural network in the trained Metaverse product recommendation model to obtain a model feature vector group of the 3D model;

[0070] The model feature vectors in the model feature vector group are respectively input into the VSAM feature extraction network in the trained Metaverse product recommendation model and the LSTM feature extraction network in the trained Metaverse product recommendation model, and the outputs of the VSAM feature extraction network and the LSTM feature extraction network are spliced ​​to obtain the spatial feature vector of the 3D model;

[0071] A set of spatial feature vectors is obtained based on the spatial feature vectors of all 3D models;

[0072] S20: Acquire a 2D image to be matched, input the 2D image into the convolutional neural network, and output an image feature vector;

[0073] S30: input the image feature vector and the spatial feature vector set into the generative adversarial network in the trained Metaverse product recommendation model for adversarial learning, and output the target spatial feature vector set;

[0074] S40: Calculate the similarity between the image feature vector and each target space feature vector in the target space feature vector set respectively, and use the 3D model corresponding to the target space feature vector with the highest similarity as the output of the trained metaverse product recommendation model.

[0075] Specifically, the metaverse product recommendation method provided in the present application only needs to process the 3D model in the metaverse once. After obtaining the set of spatial feature vectors, based on different 2D images to be matched, the 2D images to be matched and the set of spatial feature vectors can be directly input into the generative adversarial network for adversarial learning to obtain the target spatial feature vector set.

[0076] The metaverse product recommendation method provided in this application uses multi-view representation to describe 3D models, alleviates the modal divergence between 2D images and 3D models, and uses convolutional neural networks to extract feature information of each view; uses a VSAM feature extraction network to capture the relationship between different positions of each 2D view, and uses an LSTM feature extraction network to capture the association between feature information of multiple 2D views, and finally combines them to obtain a 3D spatial feature descriptor, which extracts feature information of the 3D model to the greatest extent and improves the effectiveness and accuracy of product recommendations; and uses a generative adversarial network to reduce the domain differences between 2D image features and 3D model features, thereby achieving effective matching between 2D images and 3D models.

[0077] Specifically, obtaining a 2D projection set corresponding to each 3D model in step S10 includes:

[0078] N virtual cameras are placed around the 3D model according to preset angles. The N virtual cameras are all facing the center of the 3D model. N 2D projections are generated based on the outputs of the N virtual cameras to obtain a set of 2D projections corresponding to the 3D model.

[0079] As a specific example of the present application, the number of virtual cameras around each 3D model is 12, which are arranged around the 3D model at intervals of 30°.

[0080] Optionally, in some embodiments of the present application, the convolutional neural network is ResNet50, AlexNet, VGG-Net, etc.

[0081] Preferably, as a specific example of the present application, the convolutional neural network is ResNet50. This is because compared with other feature extraction networks, ResNet50 can better balance feature extraction effectiveness and memory cost minimization.

[0082] The traditional multi-view based method directly uses the output of the last fully connected layer of the convolutional neural network as the shape descriptor describing the 3D model, but the convolutional neural network alone cannot fully extract the key feature information of the 3D model. In this application, in order to more effectively extract the feature information of the 3D model, a unique global descriptor is designed after learning the view features of 2D projections rendered from different angles through a convolutional neural network, that is, a multi-view spatial attention feature extraction network (VSAM) and an LSTM feature extraction network are used to further extract features from the model feature vector group of the 3D model.

[0083] Specifically, in some embodiments of the present application, the VSAM feature extraction network extracts features from the model feature vector group in three steps:

[0084] Step 1: Input the model feature vectors in the model feature vector group into two convolutional layers to obtain two new feature maps, and then multiply the two new feature maps and apply the Softmax layer to calculate the spatial attention matrix;

[0085] Among them, the two new feature maps are:

[0086] Query = Z(v S ),

[0087] Key=T(Z(v S )),

[0088] Among them, Z is the convolution layer, the convolution kernel size is 1*1, (Query,Key)∈R C×H×W , N = H × W, N represents the model feature vector group v S The size of , T is the transpose operation;

[0089] The spatial attention matrix is:

[0090]

[0091] Among them, S mn Represents the model feature vector group v S The correlation between the mth position and the nth position in the lth model feature vector.

[0092] Step 2: Input the model feature vector group into the original feature space branch and calculate the importance of each position in the original feature branch value to focus on the prominent features in each view. The calculation formula is:

[0093]

[0094] in, is the scale parameter.

[0095] Step 3: Use the maximum pooling clustering view features to obtain the feature vector of the 3D model output by the VSAM feature extraction network:

[0096] V SAM =Max(P S ).

[0097] After capturing the positional relationship within each view, since different views contain different features, these different features will affect the accuracy of recognition. Therefore, an LSTM feature extraction network is used in this application to extract the relationship between different model feature vectors in the model feature vector group of the 3D model.

[0098] Specifically, LSTM consists of a storage unit, a hidden state, an input gate, an output gate, and a forget gate. S When the lth model feature vector passes through LSTM, its feature processing formula is:

[0099] f t =σ(W f ·[h t-1 ,y j,t ]+b f ),

[0100] I t =σ(W I ·[h t-1 ,y j,t ]+b I ),

[0101]

[0102]

[0103] o t =σ(W o *[h t-1 ,y j,t ]+b o ),

[0104] Where t = l, represents the model feature vector group v S The i-th model feature vector in t , o t 、f t They represent the input gate, output gate and forget gate respectively, and b f 、b I 、b c 、b o are all bias vectors, σ(·) represents the element-by-element sigmoid function;

[0105] This application will be the last hidden state h t As the output of LSTM:

[0106] h t =o t *tanh(C t ),

[0107] This application uses the hidden state corresponding to the last model feature vector as the feature vector of the 3D model output by the LSTM feature extraction network. It can be seen from the above formula that each hidden state contains the feature information of the previous hidden state, that is, the output of the last model feature vector after the LSTM feature extraction network contains the feature information extracted by all model feature vectors after the LSTM feature extraction network.

[0108] Based on the feature vectors output by the above VSAM and LSTM, this application concatenates the two as the spatial feature vector of the 3D model.

[0109] Due to the domain differences between 2D images and 3D models, image feature vectors and spatial feature vectors will include both domain-specific features and domain-invariant features. For cross-domain matching tasks, domain-invariant features are the bridge between the two domains and play a direct role in this task, while domain-specific features will introduce interference and hinder the matching between the two domain features. For example, the background and lighting of a 2D image are quite different from the 2D view of a 3D model. Therefore, the present application also obtains domain-invariant features in 2D images and 3D models for feature alignment, which can further reduce the difference between 2D images and 3D models.

[0110] Specifically, in some embodiments of the present application, before step S30, the following steps are further included:

[0111] The image feature vector and the spatial feature vector in the set of spatial feature vectors are respectively input into the first linear layer in the trained Metaverse product recommendation model and the second linear layer in the trained Metaverse product recommendation model, and the image feature vector and the set of spatial feature vectors after the original feature separation are obtained based on the outputs of the first linear layer and the second linear layer, which specifically include:

[0112] The image feature vector is input into the first linear layer and the second linear layer respectively, and a domain-invariant feature vector and a domain-specific feature vector based on the image feature vector are output;

[0113] Based on the domain-invariant feature vector based on the image feature vector and the domain-specific feature vector based on the image feature vector, an image feature vector after the original feature is separated is obtained.

[0114]

[0115] Among them, d n represents the first linear layer, d t represents the second linear layer, Represents the image feature vector of the j-th 2D image;

[0116] Inputting the spatial feature vector into the first linear layer and the second linear layer respectively, and outputting a domain-invariant feature vector and a domain-specific feature vector based on the spatial feature vector;

[0117] Based on the domain-invariant feature vector based on the spatial feature vector and the domain-specific feature vector based on the spatial feature vector, the spatial feature vector after the original feature separation is obtained.

[0118]

[0119] in, Represents the i-th spatial feature vector in the set of spatial feature vectors.

[0120] A set of spatial feature vectors after separation of original features is obtained based on the spatial feature vectors after separation of all original features.

[0121] Since the alignment of adversarial learning is performed globally and ignores category alignment, if only the generative adversarial network is used for cross-domain feature alignment, the categories between the 2D image and the 3D model may be mismatched, for example, the features of the guitar in the 2D image are consistent with the features of the keyboard in the 3D model. In this regard, the present application also includes aligning the categories of the feature vectors in the two domains.

[0122] Specifically, in some embodiments of the present application, step S30 further includes:

[0123] Calculate the centroid of a 2D image based on its feature vector

[0124]

[0125] in, represents the centroid of the 2D image belonging to the kth category, n d Represents the number of 2D images to be matched. If but on the contrary,

[0126] Clustering the target space feature vectors in the target space feature vector set, and outputting a 3D model data cluster set;

[0127] Calculate the probability that each 3D model data cluster in the 3D model data cluster set belongs to the same category as the 2D image, and remove the 3D model data clusters whose probability is less than a preset threshold, output the target 3D model data cluster set, and obtain an updated target space feature vector set based on the target space feature vector in the target 3D model data cluster set;

[0128] The probability calculation formula for a 3D model data cluster and a 2D image belonging to the same category is:

[0129]

[0130] in, represents the spatial feature vector after the i-th original feature in the p-th 3D model data cluster is separated, and K represents the total number of spatial feature vectors after the original feature in the p-th 3D model data cluster is separated.

[0131] Specifically, in some embodiments of the present application, the process of obtaining the trained Metaverse product recommendation model includes:

[0132] Input the spatial feature vectors of the 2D images and the 3D models corresponding to the 2D images in the training set into the Metaverse product recommendation model for iterative training until the first loss function is minimized, thereby obtaining a trained Metaverse product recommendation model;

[0133] Among them, the first loss function is:

[0134]

[0135] Among them, the second loss function is the loss function of the first and second linear layers, and the third loss function To generate the loss function of the adversarial network, the fourth loss function represents the minimum mean square error between the centroid of the 3D model data cluster and the centroid of the 2D image, and γ is a balancing hyperparameter;

[0136]

[0137] Among them, n s Represents the number of 2D images in the training set, n t represents the number of spatial feature vectors of the 3D models in the training set, Represents the spatial feature vector after separation of the original features corresponding to the I-th 3D model in the training set, Represents the image feature vector after the original features are separated corresponding to the Jth 2D image in the training set;

[0138]

[0139]

[0140]

[0141] in, represents the loss function of the discriminator in the generative adversarial network, D represents the discriminator in the generative adversarial network, represents the loss function of the classifier in the generative adversarial network, G represents the classifier in the generative adversarial network, represents the cross entropy loss for multi-classification problems, represents the true category of the Jth 2D image in the training set;

[0142]

[0143] Where H represents the total number of 2D image categories in the training set, represents the centroid of the 2D image of the h-th category, represents the centroid of the 3D model data cluster of the hth category, L MSE represents the minimum mean square error.

[0144] See also Figure 2 , Figure 2The schematic diagram of the principle of the Metaverse product recommendation model provided in the embodiment of the present application, the model provided in the present application first extracts the features of the 2D image and the 3D model respectively. Since the feature information of the 3D model cannot be effectively extracted using the traditional convolutional neural network, the present application uses VSAM and LSTM feature extraction networks to work in parallel to obtain the relationship between different positions in the view of multiple 2D views corresponding to the 3D model and the association between multiple views, thereby forming a spatial feature vector of the 3D model. In addition, in order to remove the interference caused by domain-specific feature information, the present application introduces an original feature separation step to retain the domain-invariant features in the image feature vector and the spatial feature vector; then the present application uses a generative adversarial network to make the image feature vector and the spatial feature vector consistent at the domain level, and introduces class centroid alignment to make the image feature vector and the spatial feature vector consistent at the category level, further narrowing the domain difference between the 2D image and the 3D model; finally, the 3D model with the highest similarity is found by calculating the similarity between the image feature vector and the spatial feature vector.

[0145] Based on the Metaverse product recommendation method provided in the above embodiment, the present application embodiment also provides a Metaverse product recommendation device, such as Figure 3 As shown, it specifically includes:

[0146] The data acquisition and preprocessing module 10 is used to obtain the spatial feature vector set of all 3D models in the metaverse, which specifically includes:

[0147] Obtain a set of 2D projections corresponding to each 3D model, and input the 2D projections in the 2D projection set into the convolutional neural network in the trained Metaverse product recommendation model to obtain a model feature vector group of the 3D model;

[0148] The model feature vectors in the model feature vector group are respectively input into the VSAM feature extraction network in the trained Metaverse product recommendation model and the LSTM feature extraction network in the trained Metaverse product recommendation model, and the outputs of the VSAM feature extraction network and the LSTM feature extraction network are spliced ​​to obtain the spatial feature vector of the 3D model;

[0149] A set of spatial feature vectors is obtained based on the spatial feature vectors of all 3D models;

[0150] An image feature extraction module 20 is used to obtain a 2D image to be matched, input the 2D image into a convolutional neural network, and output an image feature vector;

[0151] A cross-domain feature alignment module 30 is used to input the image feature vector and the spatial feature vector set into the generative adversarial network in the trained metaverse product recommendation model for adversarial learning, and output a target spatial feature vector set;

[0152] The model acquisition module 40 is used to calculate the similarity between the image feature vector and each target space feature vector in the target space feature vector set, and use the 3D model corresponding to the target space feature vector with the highest similarity as the output of the trained metaverse product recommendation model.

[0153] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned metaverse product recommendation method are implemented.

[0154] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0155] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0156] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0157] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.

[0158] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A metaverse product recommendation method, characterized in that: include: S10: Obtain a set of spatial feature vectors of all 3D models in the Metaverse, which specifically includes: Obtain a set of 2D projections corresponding to each 3D model, and input the 2D projections in the 2D projection set into a convolutional neural network in a trained Metaverse product recommendation model to obtain a model feature vector group of the 3D model; Inputting the model feature vectors in the model feature vector group into the VSAM feature extraction network in the trained Metaverse product recommendation model and the LSTM feature extraction network in the trained Metaverse product recommendation model respectively, and splicing the outputs of the VSAM feature extraction network and the LSTM feature extraction network to obtain the spatial feature vector of the 3D model; A set of spatial feature vectors is obtained based on the spatial feature vectors of all 3D models; S20: Acquire a 2D image to be matched, input the 2D image into the convolutional neural network, and output an image feature vector; S30: Input the image feature vector and the spatial feature vector set into the generative adversarial network in the trained metaverse product recommendation model for adversarial learning, and output a target spatial feature vector set; calculate the centroid of the 2D image based on the image feature vector; cluster the target spatial feature vectors in the target spatial feature vector set, and output a 3D model data cluster set; calculate the probability that each 3D model data cluster in the 3D model data cluster set belongs to the same category as the 2D image, and eliminate the 3D model data clusters whose probability is less than a preset threshold, output the target 3D model data cluster set, and obtain an updated target spatial feature vector set based on the target spatial feature vectors in the target 3D model data cluster set; S40: Calculate the similarity between the image feature vector and each target space feature vector in the target space feature vector set respectively, and use the 3D model corresponding to the target space feature vector with the highest similarity as the output of the trained metaverse product recommendation model.

2. The method for recommending metaverse products according to claim 1, characterized in that: Before step S30, the method further includes: The image feature vector and the spatial feature vector in the set of spatial feature vectors are respectively input into the first linear layer in the trained Metaverse product recommendation model and the second linear layer in the trained Metaverse product recommendation model, and the image feature vector and the set of spatial feature vectors after separation of the original features are obtained based on the outputs of the first linear layer and the second linear layer.

3. The method for recommending metaverse products according to claim 2, characterized in that: The image feature vector and the spatial feature vector set obtained after original feature separation based on the output of the first linear layer and the second linear layer include: Inputting the image feature vector into the first linear layer and the second linear layer respectively, and outputting a domain-invariant feature vector and a domain-specific feature vector based on the image feature vector; Obtaining an image feature vector after original feature separation based on the domain-invariant feature vector based on the image feature vector and the domain-specific feature vector based on the image feature vector; Inputting the spatial feature vector into the first linear layer and the second linear layer respectively, and outputting a domain-invariant feature vector and a domain-specific feature vector based on the spatial feature vector; Based on the domain-invariant feature vector based on the spatial feature vector and the domain-specific feature vector based on the spatial feature vector, the spatial feature vector after original feature separation is obtained, and based on all the spatial feature vectors after original feature separation, a set of spatial feature vectors after original feature separation is obtained.

4. The method for recommending metaverse products according to claim 3, characterized in that: The image feature vector after the original feature separation is: Among them, d n represents the first linear layer, d t represents the second linear layer, Represents the image feature vector of the j-th 2D image; The spatial feature vector after the original feature separation is: in, Represents the i-th spatial feature vector in the set of spatial feature vectors.

5. The method for recommending metaverse products according to claim 4, characterized in that: The centroid of the 2D image is: in, represents the centroid of the 2D image belonging to the kth category, n d Represents the number of 2D images to be matched. If but on the contrary, The probability calculation formula that the 3D model data cluster and the 2D image belong to the same category is: in, represents the spatial feature vector after the i-th original feature in the p-th 3D model data cluster is separated, and K represents the total number of spatial feature vectors after the original feature in the p-th 3D model data cluster is separated.

6. The method for recommending metaverse products according to claim 5, characterized in that: The acquisition of the trained Metaverse product recommendation model includes: Inputting the spatial feature vectors of the 2D images in the training set and the 3D models corresponding to the 2D images into the Metaverse product recommendation model for iterative training until the first loss function is minimized, thereby obtaining a trained Metaverse product recommendation model; Among them, the first loss function is: Among them, the second loss function is the loss function of the first and second linear layers, and the third loss function To generate the loss function of the adversarial network, the fourth loss function represents the minimum mean square error between the centroid of the 3D model data cluster and the centroid of the 2D image, and γ is a balancing hyperparameter; Among them, n s Represents the number of 2D images in the training set, n t represents the number of spatial feature vectors of the 3D models in the training set, Represents the spatial feature vector after separation of the original features corresponding to the I-th 3D model in the training set, Represents the image feature vector after the original features are separated corresponding to the Jth 2D image in the training set; in, represents the loss function of the discriminator in the generative adversarial network, D represents the discriminator in the generative adversarial network, represents the loss function of the classifier in the generative adversarial network, G represents the classifier in the generative adversarial network, represents the cross entropy loss for multi-classification problems, represents the true category of the Jth 2D image in the training set; Where H represents the total number of 2D image categories in the training set, represents the centroid of the 2D image of the h-th category, represents the centroid of the 3D model data cluster of the hth category, L MSE represents the minimum mean square error.

7. The method for recommending metaverse products according to claim 1, characterized in that: The obtaining of a 2D projection set corresponding to each 3D model comprises: N virtual cameras are placed around the 3D model according to preset angles, and the N virtual cameras are all facing the center of the 3D model. N 2D projections are generated based on the outputs of the N virtual cameras to obtain a 2D projection set corresponding to the 3D model.

8. A metaverse product recommendation device, characterized in that: include: The data acquisition and preprocessing module is used to obtain the spatial feature vector set of all 3D models in the Metaverse, which specifically includes: Obtain a set of 2D projections corresponding to each 3D model, and input the 2D projections in the 2D projection set into a convolutional neural network in a trained Metaverse product recommendation model to obtain a model feature vector group of the 3D model; Inputting the model feature vectors in the model feature vector group into the VSAM feature extraction network in the trained Metaverse product recommendation model and the LSTM feature extraction network in the trained Metaverse product recommendation model respectively, and splicing the outputs of the VSAM feature extraction network and the LSTM feature extraction network to obtain the spatial feature vector of the 3D model; A set of spatial feature vectors is obtained based on the spatial feature vectors of all 3D models; An image feature extraction module, used to obtain a 2D image to be matched, input the 2D image into the convolutional neural network, and output an image feature vector; A cross-domain feature alignment module is used to input the image feature vector and the spatial feature vector set into the generative adversarial network in the trained metaverse product recommendation model for adversarial learning, and output a target spatial feature vector set; calculate the center of mass of the 2D image based on the image feature vector; cluster the target spatial feature vectors in the target spatial feature vector set, and output a 3D model data cluster set; calculate the probability that each 3D model data cluster in the 3D model data cluster set belongs to the same category as the 2D image, and eliminate the 3D model data clusters whose probability is less than a preset threshold, output the target 3D model data cluster set, and obtain an updated target spatial feature vector set based on the target spatial feature vector in the target 3D model data cluster set; The model acquisition module is used to respectively calculate the similarity between the image feature vector and each target space feature vector in the target space feature vector set, and use the 3D model corresponding to the target space feature vector with the highest similarity as the output of the trained metaverse product recommendation model.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the metaverse product recommendation method described in any one of claims 1 to 7.