Commodity recommendation method and device, electronic equipment and storage medium

The feature vector generated by the twin-tower model and filtered by similarity solves the problem of sparse user behavior and difficulty in recalling recommended products, and improves the accuracy of product recommendation in e-commerce platforms.

CN118586984APending Publication Date: 2024-09-03BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In e-commerce platforms, recommended products with sparse user behavior are difficult to recall, resulting in inaccurate recommended products.

Method used

Through the two-tower model, the multi-modal semantic feature information and user behavior characteristics of the target product are input into the first tower network, the first target feature vector is generated, and the similarity with it is obtained from the pre-established feature vector library and is greater than the preset threshold. The second target feature vector is displayed as the product to be recommended.

Benefits of technology

The accuracy of recommended products is improved, and product recall is performed by combining multi-modal semantic feature information of target products and products to be recommended.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586984A
    Figure CN118586984A
Patent Text Reader

Abstract

The invention provides a commodity recommendation method and device, electronic equipment and a storage medium, and the method comprises the steps: determining a recommended commodity at an information display position in a commodity detail page of a target commodity, determining a first target feature vector of the target commodity based on the multi-modal semantic feature information of the target commodity and the user behavior features, and obtaining a second target feature vector of which the similarity with the first target feature vector is greater than a preset similarity threshold from second target feature vectors corresponding to the to-be-recommended commodities, and taking a to-be-recommended commodity corresponding to the second target feature vector in the plurality of to-be-recommended commodities as a target recommended commodity, and displaying promotion resources of the target recommended commodity on an information display position. Therefore, commodity recall is performed in combination with the multi-modal semantic feature information of the target commodity and the to-be-recommended commodity, so that the accuracy of the recalled recommended commodity can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a product recommendation method, device, electronic device and storage medium. Background Art

[0002] At present, when users are shopping on e-commerce platforms, recommended resources of recommended products are displayed on the information display position in the product details page of the target product on the e-commerce platform. In the related art, the process of obtaining the target recommended product displayed on the information display position is: the recommended product that has a co-occurrence relationship with the user behavior characteristics corresponding to the target product is used as the recommended product displayed on the information display position. However, for the recommended products with sparse user behavior, if the product can be matched with the target product, but because the corresponding user behavior is sparse, the recommended product cannot be recalled, resulting in the determined recommended product being inaccurate. Summary of the invention

[0003] The present application proposes a product recommendation method, device, electronic device and storage medium.

[0004] On the one hand, an embodiment of the present application proposes a product recommendation method, the method comprising: obtaining a product details page of a target product, wherein the product details page comprises: an information display position; inputting the multimodal semantic feature information and user behavior features of the target product into the first tower network in a dual-tower model to obtain a first target feature vector of the target product; obtaining a second target feature vector having a similarity with the first target feature vector greater than a preset similarity threshold from a pre-established feature vector library, the feature vector library being established based on the feature vector corresponding to the product to be recommended by processing the multimodal semantic feature information and user behavior features of the product to be recommended through the second tower network in the dual-tower model to obtain a feature vector corresponding to the product to be recommended; taking the product to be recommended corresponding to the second target feature vector as a target recommended product, and displaying the promotional resources of the target recommended product on the information display position.

[0005] The product recommendation method of the embodiment of the present application, in the process of determining the recommended products on the information display position in the product details page of the target product, inputs the multimodal semantic feature information and user behavior features of the target product into the first tower network in the double tower model to obtain the first target feature vector of the target product, obtains the second target feature vector whose similarity with the first target feature vector is greater than the preset similarity threshold from the pre-established feature vector library, and uses the product to be recommended corresponding to the second target feature vector as the target recommended product, and displays the promotional resources of the target recommended product on the information display position. Thus, the product recall is performed in combination with the multimodal feature information of the target product and the product to be recommended, thereby improving the accuracy of the recalled recommended products.

[0006] On the other hand, an embodiment of the present application proposes a product recommendation device, which includes: a first acquisition module, used to obtain a product details page of a target product, wherein the product details page includes: an information display position; a second acquisition module, used to input the multimodal semantic feature information and user behavior characteristics of the target product into the first tower network in the dual-tower model to obtain a first target feature vector of the target product; a third acquisition module, used to obtain a second target feature vector whose similarity with the first target feature vector is greater than a preset similarity threshold from a pre-established feature vector library, wherein the feature vector library is established based on the feature vector corresponding to the product to be recommended by processing the multimodal semantic feature information and user behavior characteristics of the product to be recommended through the second tower network in the dual-tower model to obtain the feature vector corresponding to the product to be recommended; a recommendation module, used to take the product to be recommended corresponding to the second target feature vector as a target recommended product, and display the promotional resources of the target recommended product on the information display position.

[0007] The product recommendation device of the embodiment of the present application, in the process of determining the recommended products on the information display position in the product details page of the target product, obtains the second target feature vector of the target product determined by the multimodal semantic feature information of the target product and the user behavior characteristics from the second target feature vectors corresponding to each of the multiple products to be recommended, and the product to be recommended corresponding to the second target feature vector is used as the target recommended product, and the promotion resources of the target recommended product are displayed on the information display position. Thus, the product recall is performed in combination with the multimodal semantic feature information of the target product and the product to be recommended, so as to improve the accuracy of the recalled recommended products.

[0008] On the other hand, an embodiment of the present application proposes an electronic memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the product recommendation method of the embodiment of the present application is implemented when the processor executes the computer program.

[0009] On the other hand, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the product recommendation method disclosed in the embodiment of the present application is implemented.

[0010] Another aspect of the present application is a computer program product, which implements the product recommendation method in the embodiment of the present application when the instruction processor in the computer program product is executed.

[0011] Other effects of the above optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0013] Figure 1 It is a flowchart of a product recommendation method according to an embodiment of the present application.

[0014] Figure 2 It is a flowchart of training a multimodal model according to an embodiment of the present application.

[0015] Figure 3 This is an example diagram of the model structure of a multimodal model according to an embodiment of the present application.

[0016] Figure 4 It is a flowchart of training a dual-tower model according to an embodiment of the present application.

[0017] Figure 5 This is an example diagram of the model structure of a double-tower model according to an embodiment of the present application.

[0018] Figure 6 It is a flowchart of a product recommendation method according to another embodiment of the present application.

[0019] Figure 7 It is a structural diagram of a commodity recommendation device according to an embodiment of the present application.

[0020] Figure 8 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0022] The following describes the product recommendation method, device, electronic device and storage medium of the embodiments of the present application with reference to the accompanying drawings.

[0023] Figure 1 It is a flowchart of a product recommendation method according to an embodiment of the present application. It should be noted that the execution subject of the product recommendation method provided in this embodiment is a product recommendation device, which can be implemented by software and / or hardware. In this embodiment, the product recommendation device can be configured in an e-commerce platform, and the e-commerce platform can be configured in an electronic device. The electronic device in this embodiment can include but is not limited to devices such as terminal devices and servers, and this embodiment does not specifically limit the electronic device.

[0024] like Figure 1 As shown, the product recommendation method may include:

[0025] Step 101, obtaining a product details page of a target product, wherein the product details page includes: an information display area.

[0026] In one embodiment of the present application, when a product details page display request for the target product is obtained, the product details page of the target product can be obtained.

[0027] The target product can be any product on the e-commerce platform.

[0028] The number of information display positions on the product details page may be one or more, which is not specifically limited in this embodiment.

[0029] The information display position refers to a location or area used to display information.

[0030] Step 102: input the multimodal semantic feature information and user behavior features of the target product into the first tower network in the double-tower model to obtain a first target feature vector of the target product.

[0031] The user behavior feature in this embodiment is determined based on the user behavior data corresponding to the target product. In other words, the user behavior feature is obtained by analyzing the user behavior data corresponding to the target product.

[0032] Among them, the first tower network refers to a tower network in the double-tower model that can process the multimodal semantic feature information and user behavior characteristics of the target product.

[0033] Among them, the multimodal semantic feature information in this embodiment refers to feature information with semantic meaning extracted after comprehensive analysis and understanding of multiple modal data (such as visual, auditory, language, etc.) of the target product.

[0034] In one embodiment of the present application, in order to quickly and conveniently obtain the multimodal semantic feature information of the target product, a possible implementation method of the multimodal semantic feature information of the target product in this embodiment is: using a pre-trained multimodal model to semantically encode the multimodal data of the target product to obtain the multimodal semantic feature information of the target product.

[0035] In one embodiment, after the unimodal data of various modalities in the multimodal data of the target product are input into the multimodal model, the encoders corresponding to the various modalities are used in the multimodal model to perform semantic encoding processing on the corresponding unimodal data to obtain semantic feature information of the unimodal data of various modalities. Correspondingly, the multimodal encoder in the multimodal model fuses the semantic feature information of the unimodal data of various modalities to obtain the multimodal semantic feature information of the target product.

[0036] In one embodiment of the present application, in order to accurately determine the first target feature vector of the target product, the first tower network in this embodiment may include: a first feature embedding layer and a first neural network layer, wherein the first tower network in the dual-tower model determines the first target feature vector of the target product, including: using the first feature embedding layer to process the user behavior characteristics of the target product to obtain the feature vector of the user behavior characteristics of the target product; using the first neural network layer to splice the feature vector of the multimodal semantic feature information and the user behavior characteristics of the target product to obtain the first target feature vector of the target product.

[0037] Step 103, from a pre-established feature vector library, obtain a second target feature vector whose similarity with the first target feature vector is greater than a preset similarity threshold. The feature vector library is established based on the feature vector corresponding to the product to be recommended by processing the multimodal semantic feature information and user behavior characteristics of the product to be recommended through the second tower network in the dual-tower model to obtain the feature vector corresponding to the product to be recommended.

[0038] In one embodiment of the present application, for each commodity to be recommended, a possible implementation method for determining the multimodal semantic feature information of the commodity to be recommended based on the multimodal data of the commodity to be recommended is: using a pre-trained multimodal model to semantically encode the multimodal data of the commodity to be recommended to obtain the multimodal semantic feature information of the commodity to be recommended. Thus, the multimodal semantic feature information corresponding to the commodity to be recommended can be quickly determined through the pre-trained multimodal model.

[0039] In one embodiment, after the unimodal data of various modalities in the multimodal data of the product to be recommended are input into the multimodal model, the encoders corresponding to the various modalities are used in the multimodal model to perform semantic encoding processing on the corresponding unimodal data to obtain semantic feature information of the unimodal data of various modalities. Correspondingly, the multimodal encoder in the multimodal model fuses the semantic feature information of the unimodal data of various modalities to obtain the multimodal semantic feature information of the product to be recommended.

[0040] It can be understood that the dual-tower model in this example has been trained so that the first tower network learns and saves the correspondence between the multimodal semantic feature information and user behavior characteristics of the target product and the first target feature vector, and the second tower network learns and saves the correspondence between the multimodal semantic feature information and user behavior characteristics of the product to be recommended and the feature vector of the product to be recommended.

[0041] Among them, the second tower network refers to a tower network in the dual-tower model that can process the multimodal semantic feature information and user behavior characteristics of the recommended products.

[0042] In this embodiment, the first tower network and the second tower network share model parameters.

[0043] The preset similarity threshold is a preset critical value of the similarity.

[0044] In one embodiment of the present application, the number of the second target feature vectors may be one or more.

[0045] Step 104: The to-be-recommended product corresponding to the second target feature vector is used as a target recommended product, and promotional resources of the target recommended product are displayed on the information display position.

[0046] In one embodiment of the present disclosure, the recommended commodity corresponding to the second target feature vector can be obtained from the feature vector library, and the obtained recommended commodity is used as the target recommended commodity, and the promotional resources of the target recommended commodity are displayed on the information display position.

[0047] Among them, promotional resources refer to the resources used to promote the target recommended products. For example, the promotional resources may include: text, video, picture and text link used to promote the target recommended products, wherein the text link corresponds to the product details page of the recommended product. Correspondingly, after the text link is triggered, it jumps to the product details page of the target recommended product.

[0048] In the case where there are multiple target recommended products, the promotional resources of each target recommended product can be displayed in sequence on the information display position. Thus, the promotional resources of multiple target recommended products are displayed on the same information display position, which facilitates users to learn about multiple products based on the recommended resources on the information display position.

[0049] The product recommendation method provided in the embodiment of the present application, in the process of determining the recommended products on the information display position in the product details page of the target product, based on the first target feature vector of the target product determined by the multimodal semantic feature information of the target product and the user behavior characteristics, obtains the second target feature vector whose similarity with the first target feature vector is greater than the preset similarity threshold from the second target feature vectors corresponding to each of the multiple products to be recommended, and uses the recommended product corresponding to the second target feature vector among the multiple products to be recommended as the target recommended product, and displays the promotional resources of the target recommended product on the information display position. Thus, the product recall is performed in combination with the multimodal semantic feature information of the target product and the product to be recommended, so as to improve the accuracy of the recalled recommended products.

[0050] In order to enable the multimodal model to accurately determine the multimodal semantic feature information of the input multimodal data, the multimodal model can be trained in combination with the training data. Figure 2 An exemplary description of the process of training a multimodal model is given.

[0051] Figure 2 It is a flowchart of training a multimodal model according to an embodiment of the present application.

[0052] like Figure 2 As shown, it may include:

[0053] Step 201, obtaining first training data, wherein the first training data includes: multimodal data of a first sample product, and actual results corresponding to the first sample product under a target training task.

[0054] Among them, the target training task may include at least one of the following: multimodal classification, cross-modal contrastive learning, cross-modal matching, and masked language modeling (MLM) tasks.

[0055] In one embodiment of the present application, the information display positions ranked in the top N in terms of exposure count within a preset time period before the current time may be obtained, and the products corresponding to the obtained information display positions may be used as first sample products, and multimodal data of the first sample products may be obtained.

[0056] Wherein, N is a positive integer set according to requirements, for example, N may be 3000000.

[0057] The preset time period is set according to demand. For example, the preset time period may be 30 days, 60 days, etc. This embodiment does not make any specific limitation here.

[0058] Among them, multimodal data can include at least two of the product main picture, text title, video and audio.

[0059] Step 202: input the multimodal data of the first sample product into the initial multimodal model to obtain multimodal semantic feature information of the first sample product.

[0060] Among them, the example diagram of the model structure of the multimodal model in this embodiment is as follows: Figure 3 As shown, the multimodal model may include five parts, namely, a text encoder, an image encoder, a video encoder, an audio encoder, and a multimodal encoder. Correspondingly, after the text title, the main picture of the product, the video and the audio of the first sample product are input into the multimodal model, the text encoder, the image encoder, the video encoder, and the audio encoder respectively perform semantic encoding on the input text title, the main picture of the product, the video and the audio to obtain the semantic feature information corresponding to the text title, the main picture of the product, the video and the audio, align the semantic feature information corresponding to the text title, the main picture of the product, the video and the audio, and input the semantic feature information corresponding to the text title, the main picture of the product, the video and the audio after the alignment process into the multimodal encoder. Correspondingly, the multimodal encoder performs fusion processing on the semantic feature information corresponding to the text title, the main picture of the product, the video and the audio to obtain the multimodal semantic feature information of the first sample product.

[0061] Step 203: Determine the prediction result corresponding to the multimodal semantic feature information of the first sample product on the target training task.

[0062] In one embodiment, the multimodal semantic feature information of the first sample product may be input into a decoder corresponding to a target training task to obtain a prediction result corresponding to the multimodal semantic feature information of the first sample product on the target training task.

[0063] Step 204: train the initial multimodal model according to the prediction results and the actual results to obtain a multimodal model.

[0064] In one embodiment of the present application, the corresponding loss function value can be determined based on the predicted results and the actual results, and the model parameters of the initial multimodal model can be adjusted according to the loss function value, and the adjusted multimodal model can continue to be trained based on the training data until the loss function value meets the preset model end condition to obtain a trained multimodal model.

[0065] The model end condition can be configured according to actual needs. For example, the loss function value can meet the preset condition when the loss function value is less than the preset value, or when the change of the loss function value tends to be stable, that is, the difference between the loss function values ​​corresponding to two or more consecutive trainings is less than the set value, that is, the loss function value basically does not change.

[0066] Based on the above embodiment, the accuracy of the trained multimodal model can be determined by test data, and it can be determined whether the accuracy exceeds the accuracy threshold. If it exceeds, it is determined that the multimodal model meets the accuracy requirement. If the accuracy does not exceed the accuracy threshold, the multimodal model continues to be trained until it meets the accuracy requirement.

[0067] Based on any of the above embodiments, in order to accurately obtain the first target feature vector of the target product and the second target feature vector of the product to be recommended through the double tower model, the double tower model can be trained in combination with the training data. Figure 4 An exemplary description of the process of training the twin-tower model is given.

[0068] Figure 4 It is a flowchart of training a dual-tower model according to an embodiment of the present application.

[0069] like Figure 4 As shown, it may include:

[0070] Step 401, obtaining second training data, wherein the second training data includes: multimodal semantic feature information and user behavior characteristics of the second sample product, and multimodal semantic feature information and user behavior characteristics of the third sample product, wherein the third sample product is the product corresponding to the clicked information display position in the product details page corresponding to the second sample product.

[0071] In this embodiment, the multimodal semantic feature information of the second sample commodity may be obtained by processing the multimodal data of the second sample commodity using a trained multimodal model.

[0072] The multimodal semantic feature information of the third sample product may be obtained by processing the multimodal data of the second sample product using a trained multimodal model.

[0073] The user behavior feature of the second sample product is determined based on the user behavior data of the second sample product. For example, feature extraction may be performed on the user behavior data of the second sample product to obtain the user behavior feature.

[0074] Step 402: Process the multimodal semantic feature information and user behavior features of the second sample product through the first tower network in the dual-tower model to obtain a third target feature vector of the second sample product.

[0075] Step 403: The multimodal semantic feature information and user behavior features of the third sample product are processed through the second tower network in the dual-tower model to obtain a fourth target feature vector of the third sample product.

[0076] The user behavior feature of the third sample product is determined based on the user behavior data of the third sample product. For example, feature extraction may be performed on the user behavior data of the third sample product to obtain the user behavior feature of the third sample product.

[0077] Step 404: training the twin-tower model according to the third target feature vector and the fourth target feature vector.

[0078] In one embodiment of the present application, a possible implementation method for training the twin-tower model based on the third target feature vector and the fourth target feature vector is: determining the similarity between the third target feature vector and the fourth target feature vector; determining the loss function value of the twin-tower model based on the similarity and the loss function of the twin-tower model; and training the twin-tower model based on the loss function value.

[0079] Specifically, the model parameters of the initial dual-tower model can be adjusted according to the loss function value until the loss function value meets the preset conditions, thereby obtaining a trained dual-tower model.

[0080] The preset condition is the condition for the end of model training. The preset condition can be configured accordingly according to actual needs. For example, the loss function value satisfies the preset condition when the loss function value is less than the preset value, or when the change of the loss function value tends to be stable, that is, the difference between the loss function values ​​corresponding to two or more consecutive trainings is less than the set value, that is, the loss function value basically does not change.

[0081] It can be understood that in the process of training the initial twin-tower model through training data, the model parameters of the initial twin-tower model are continuously adjusted according to the loss function value of each training. For example, the model parameters of the initial twin-tower model can be adjusted in the direction of decreasing the loss function value. When the loss function value meets the preset conditions, the trained twin-tower model is obtained.

[0082] Among them, the example diagram of the model structure of the double tower model in this embodiment is as follows: Figure 5 As shown below, combined Figure 5 The process of training the twin tower model is described exemplarily. When the user behavior characteristics of the second sample product are input into the first feature embedding layer and the multimodal semantic feature information of the second sample product is input into the first neural network layer, the first neural network layer processes the output vector of the first feature embedding layer and the multimodal semantic feature information of the second sample product to obtain the third target feature vector of the second sample product. In addition, when the user behavior characteristics of the third sample product are input into the first feature embedding layer and the multimodal semantic feature information of the third sample product is input into the first neural network layer, the first neural network layer processes the output vector of the first feature embedding layer and the multimodal semantic feature information of the third sample product to obtain the fourth target feature vector of the third sample product. Correspondingly, the second target feature vector and the third target feature vector can be multiplied to obtain the similarity between the two, and the similarity can be input into the loss function of the twin tower model to obtain the loss function value, and then, according to the loss function value, the twin tower model is trained.

[0083] In order to clearly understand this application, Figure 6 The method of this embodiment is described exemplarily.

[0084] Figure 6 It is a flowchart of a product recommendation method according to another embodiment of the present application.

[0085] like Figure 6 As shown, the method may include:

[0086] Step 601: train an initial multimodal model according to first training data to obtain a trained multimodal model.

[0087] It should be noted that for the specific implementation of step 601, please refer to the relevant description of the embodiments of the present application.

[0088] Step 602: Determine the multimodal semantic feature information of each product in the e-commerce platform based on the multimodal data of each product in the e-commerce platform through the trained multimodal model.

[0089] Step 603: train the initial twin-tower model according to the second training data to obtain a trained twin-tower model.

[0090] It should be noted that for the specific implementation of step 603, please refer to the relevant description of the embodiments of the present application.

[0091] Step 604, through the trained dual-tower model, based on the multimodal semantic feature information and user behavior characteristics of each product in the e-commerce platform, determine the target feature vector of each product in the e-commerce platform, and form a feature vector library based on the target feature vector of each product in the e-commerce platform.

[0092] Among them, the user behavior characteristics of each commodity in the e-commerce platform are determined based on the user behavior characteristics of each commodity in the e-commerce platform.

[0093] Step 605: receiving a display request for a product details page of a target product, wherein the product details page includes an information display location.

[0094] Step 606: Obtain a first target feature vector of the target product from the feature vector library according to the product identifier of the target product.

[0095] Step 607: Obtain, from the feature vector library, a second target feature vector whose similarity to the first target feature vector is greater than a preset similarity threshold.

[0096] Step 608: The commodity corresponding to the second target feature vector is used as a target recommended commodity, and promotional resources of the target recommended commodity are displayed on the information display position.

[0097] From the above, it can be seen that in order to strengthen the recall of recommended products with sparse behavior, this embodiment uses the multimodal semantic feature information output by the multimodal model and combines it with the user behavior characteristics of the products to be recommended, and then trains a double-tower model, and recalls products based on the results output by the double-tower model, and makes recommendations based on the recalled products, thereby achieving accurate matching of products and improving the accuracy of product recommendations.

[0098] Corresponding to the product recommendation methods provided in the above-mentioned embodiments, an embodiment of the present application also provides a product recommendation device. Since the product recommendation device provided in the embodiment of the present application corresponds to the product recommendation methods provided in the above-mentioned embodiments, the implementation method of the product recommendation method is also applicable to the product recommendation device provided in this embodiment and will not be described in detail in this embodiment.

[0099] Figure 7 : is a schematic diagram of the structure of a commodity recommendation device according to an embodiment of the present application. It should be noted that the commodity recommendation device can be implemented by software and / or hardware. In this embodiment, the commodity recommendation device can be configured in an e-commerce platform, and the e-commerce platform can be configured in an electronic device. The electronic device in this embodiment can include but is not limited to devices such as terminal devices and servers, and this embodiment does not specifically limit the electronic device.

[0100] like Figure 7As shown, the commodity recommendation device 700 includes:

[0101] The first acquisition module 701 is used to acquire a product details page of a target product, wherein the product details page includes: an information display position;

[0102] The second acquisition module 702 is used to input the multimodal semantic feature information and user behavior features of the target product into the first tower network in the double tower model to obtain a first target feature vector of the target product;

[0103] The third acquisition module 703 is used to obtain a second target feature vector whose similarity with the first target feature vector is greater than a preset similarity threshold from a pre-established feature vector library, wherein the feature vector library is established based on the feature vector corresponding to the product to be recommended by processing the multimodal semantic feature information and user behavior features of the product to be recommended through the second tower network in the dual-tower model to obtain the feature vector corresponding to the product to be recommended;

[0104] The recommendation module 704 is used to use the to-be-recommended product corresponding to the second target feature vector as a target recommended product, and to display promotional resources of the target recommended product on the information display position.

[0105] In one embodiment of the present application, a method for acquiring multimodal semantic feature information of a target product includes:

[0106] A pre-trained multimodal model is used to semantically encode the multimodal data of the target product to obtain the multimodal semantic feature information of the target product.

[0107] In one embodiment of the present application, the first tower network includes: a first feature embedding layer and a first neural network layer, and the multimodal semantic feature information and user behavior features of the target product are input into the first tower network in the double-tower model to obtain a first target feature vector of the target product, including:

[0108] Using the first feature embedding layer, the user behavior feature of the target product is processed to obtain a feature vector of the user behavior feature of the target product;

[0109] The first neural network layer is used to concatenate the feature vectors of the multimodal semantic feature information and the user behavior feature of the target product to obtain a first target feature vector of the target product.

[0110] In one embodiment of the present application, multimodal data of the recommended product is semantically encoded through a multimodal model to obtain multimodal semantic feature information of the recommended product.

[0111] In one embodiment of the present application, the second tower network includes: a second feature embedding layer and a second neural network layer, and the second tower network in the double-tower model processes the multimodal semantic feature information and user behavior features of the recommended product to obtain a feature vector corresponding to the recommended product, including:

[0112] Using the second feature embedding layer, the user behavior features of the recommended product are processed to obtain a feature vector of the user behavior features of the recommended product;

[0113] The second neural network layer is used to concatenate the multimodal semantic feature information of the recommended product and the feature vector of the user behavior feature of the recommended product to obtain a second target feature vector of the recommended product.

[0114] In one embodiment of the present application, the device further includes:

[0115] A fourth acquisition module is used to acquire first training data, wherein the first training data includes: multimodal data of the first sample product, and actual results corresponding to the first sample product under the target training task;

[0116] A first determination module, configured to input the multimodal data of the first sample product into an initial multimodal model to obtain multimodal semantic feature information of the first sample product;

[0117] A second determination module is used to determine the prediction result corresponding to the multimodal semantic feature information of the first sample product on the target training task;

[0118] The first training module is used to train the initial multimodal model according to the predicted results and the actual results to obtain a multimodal model.

[0119] In one embodiment of the present application, the device further includes:

[0120] a fifth acquisition module, configured to acquire second training data, wherein the second training data includes: multimodal semantic feature information and user behavior features of the second sample product, and multimodal semantic feature information and user behavior features of the third sample product, wherein the third sample product is the product corresponding to the clicked information display position in the product details page corresponding to the second sample product;

[0121] A third determination module is used to process the multimodal semantic feature information and user behavior features of the second sample product through the first tower network in the double tower model to obtain a third target feature vector of the second sample product;

[0122] A fourth determination module is used to obtain a fourth target feature vector of the third sample product by using the second tower network in the double-tower model to determine the multimodal semantic feature information and user behavior features of the third sample product;

[0123] The second training module is used to train the double-tower model according to the third target feature vector and the fourth target feature vector.

[0124] In one embodiment of the present application, the second training module is specifically used to: determine the similarity between the third target feature vector and the fourth target feature vector; determine the loss value of the twin-tower model based on the similarity and the loss function of the twin-tower model; and train the twin-tower model based on the loss value.

[0125] The product recommendation device of the embodiment of the present application, in the process of determining the recommended products on the information display position in the product details page of the target product, obtains the second target feature vector of the target product determined by the multimodal semantic feature information of the target product and the user behavior characteristics from the second target feature vectors corresponding to each of the multiple products to be recommended, and the product to be recommended corresponding to the second target feature vector is used as the target recommended product, and the promotion resources of the target recommended product are displayed on the information display position. Thus, the product recall is performed in combination with the multimodal semantic feature information of the target product and the product to be recommended, so as to improve the accuracy of the recalled recommended products.

[0126] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0127] Figure 8 is a block diagram of an electronic device according to an embodiment of the present application.

[0128] like Figure 8 As shown, the electronic device comprises:

[0129] Memory 801 , processor 802 , and computer instructions stored in the memory 801 and executable on the processor 802 .

[0130] When the processor 802 executes the instructions, the commodity recommendation method provided in the above embodiment is implemented.

[0131] Furthermore, the electronic device further comprises:

[0132] The communication interface 803 is used for communication between the memory 801 and the processor 802 .

[0133] The memory 801 is used to store computer instructions that can be executed on the processor 802 .

[0134] The memory 801 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0135] The processor 802 is configured to implement the commodity recommendation method of the above embodiment when executing a program.

[0136] If the memory 801, the processor 802 and the communication interface 803 are implemented independently, the communication interface 803, the memory 801 and the processor 802 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0137] Optionally, in a specific implementation, if the memory 801, the processor 802 and the communication interface 803 are integrated on a chip, the memory 801, the processor 802 and the communication interface 803 can communicate with each other through an internal interface.

[0138] The processor 802 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0139] The present application also proposes a computer program product, which implements the product recommendation method of the embodiment of the present application when the instruction processor in the computer program product is executed.

[0140] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0141] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0142] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0143] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0144] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0145] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0146] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0147] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A product recommendation method, characterized in that: The method comprises: Obtaining a product details page of a target product, wherein the product details page includes: an information display area; Inputting the multimodal semantic feature information and user behavior features of the target product into the first tower network in the double-tower model to obtain a first target feature vector of the target product; Obtaining a second target feature vector whose similarity to the first target feature vector is greater than a preset similarity threshold from a pre-established feature vector library, wherein the feature vector library is established based on the feature vector corresponding to the product to be recommended by processing the multimodal semantic feature information and user behavior features of the product to be recommended through the second tower network in the dual-tower model to obtain the feature vector corresponding to the product to be recommended; The to-be-recommended commodity corresponding to the second target feature vector is used as a target recommended commodity, and promotional resources of the target recommended commodity are displayed on the information display position.

2. The method according to claim 1, characterized in that The method for acquiring the multimodal semantic feature information of the target product includes: The multimodal data of the target product is semantically encoded using a pre-trained multimodal model to obtain multimodal semantic feature information of the target product.

3. The method according to claim 1, characterized in that The first tower network includes: a first feature embedding layer and a first neural network layer, and the multimodal semantic feature information and user behavior features of the target product are input into the first tower network in the double-tower model to obtain a first target feature vector of the target product, including: Using the first feature embedding layer, processing the user behavior feature of the target product to obtain a feature vector of the user behavior feature of the target product; The first neural network layer is used to concatenate the multimodal semantic feature information and the feature vector of the user behavior feature of the target product to obtain a first target feature vector of the target product.

4. The method according to claim 2, characterized in that The multimodal data of the to-be-recommended product is semantically encoded by the multimodal model to obtain multimodal semantic feature information of the to-be-recommended product.

5. The method according to claim 1, characterized in that The second tower network includes: a second feature embedding layer and a second neural network layer, and the multimodal semantic feature information and user behavior features of the recommended product are processed by the second tower network in the double-tower model to obtain a feature vector corresponding to the recommended product, including: Using the second feature embedding layer, processing the user behavior feature of the to-be-recommended product to obtain a feature vector of the user behavior feature of the to-be-recommended product; The second neural network layer is used to concatenate the multimodal semantic feature information of the product to be recommended and the feature vector of the user behavior feature of the product to be recommended to obtain the feature vector of the product to be recommended.

6. The method according to claim 2 or 4, characterized in that: The training method of the multimodal model includes: Acquire first training data, wherein the first training data includes: multimodal data of a first sample product, and actual results corresponding to the first sample product under a target training task; Inputting the multimodal data of the first sample product into an initial multimodal model to obtain multimodal semantic feature information of the first sample product; Determining a prediction result corresponding to the multimodal semantic feature information of the first sample product on the target training task; The initial multimodal model is trained according to the prediction result and the actual result to obtain the multimodal model.

7. The method according to claim 1, 3 or 5, characterized in that: The training method of the twin-tower model includes: Acquire second training data, wherein the second training data includes: multimodal semantic feature information and user behavior features of the second sample product, and multimodal semantic feature information and user behavior features of the third sample product, wherein the third sample product is the product corresponding to the clicked information display position in the product details page corresponding to the second sample product; Processing the multimodal semantic feature information and the user behavior feature of the second sample product through the first tower network in the dual-tower model to obtain a third target feature vector of the second sample product; The multimodal semantic feature information and the user behavior feature of the third sample product are processed through the second tower network in the dual-tower model to obtain a fourth target feature vector of the third sample product; The twin-tower model is trained according to the third target feature vector and the fourth target feature vector.

8. The method according to claim 7, characterized in that The step of training the twin-tower model according to the third target feature vector and the fourth target feature vector includes: Determining a similarity between the third target feature vector and the fourth target feature vector; Determining a loss function value of the twin-tower model according to the similarity and the loss function of the twin-tower model; The twin-tower model is trained according to the loss function value.

9. A commodity recommendation device, characterized in that: The device comprises: A first acquisition module is used to acquire a product details page of a target product, wherein the product details page includes: an information display position; A second acquisition module is used to input the multimodal semantic feature information and user behavior features of the target product into the first tower network in the double tower model to obtain a first target feature vector of the target product; A third acquisition module is used to acquire a second target feature vector whose similarity with the first target feature vector is greater than a preset similarity threshold from a pre-established feature vector library, wherein the feature vector library is established based on the feature vector corresponding to the product to be recommended by processing the multimodal semantic feature information and user behavior features of the product to be recommended through the second tower network in the dual-tower model to obtain the feature vector corresponding to the product to be recommended; A recommendation module is used to use the to-be-recommended product corresponding to the second target feature vector as a target recommended product, and to display promotional resources of the target recommended product on the information display position.

10. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Commodity recommendation method, computer equipment and storage medium

    CN120765357A