Commodity recommendation method, device and electronic device

Obtain and integrate user-product data on the e-commerce platform through blockchain smart contracts, calculate product recommendation vectors for target users, and combine the recommendation results and credibility index of multiple e-commerce platforms to solve the problem of poor e-commerce recommendation accuracy. problem, achieving more accurate product recommendation and data security protection.

CN112669083BActive Publication Date: 2024-09-20HANGZHOU QULIAN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011644503.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-09-20
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

Existing e-commerce recommendation methods have poor accuracy when recommending products, making it difficult to achieve good recommendation results, especially for new users.

Method used

Using blockchain smart contracts, by obtaining the user-product data and credibility index of each e-commerce platform, calculate the product recommendation vector for the target user, and determine the final target product recommendation vector based on the recommendation results of multiple e-commerce platforms. The credibility index is updated based on actual consumption information to improve recommendation accuracy.

Benefits of technology

It achieves more accurate product recommendation effects, solves data privacy and security issues in multi-platform joint recommendations, protects user data security, and improves recommendation accuracy and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112669083B
    Figure CN112669083B
Patent Text Reader

Abstract

The present invention provides a method, device and electronic device for recommending goods, including: obtaining the latest user-goods data uploaded by each e-commerce platform and the credibility index of each e-commerce platform; obtaining a recommendation request initiated by the target e-commerce platform to recommend goods to a target user; determining the target user's goods recommendation vector on each e-commerce platform based on the recommendation request and the user-goods data; determining the target user's target goods recommendation vector based on the target user's goods recommendation vector on each e-commerce platform and the credibility index of each e-commerce platform, and then recommending goods to the target user according to the target goods recommendation vector. The method of the present invention determines the final target goods recommendation vector based on the goods recommendation vectors of multiple e-commerce platforms, can accurately recommend goods to the target user, and achieves a good goods recommendation effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of big data, and in particular to a commodity recommendation method, device and electronic equipment. Background Art

[0002] With the continuous development of the Internet, online shopping has gradually become part of people's daily lives. Successful online shopping brought about by aimless browsing is often attributed to the precise recommendations of e-commerce platforms. However, current e-commerce recommendations are often based on users' online shopping habits. Based on the products that users have purchased, they will recommend similar products to users. When users are new users, they are generally recommended products with higher sales.

[0003] The products recommended by the above method have poor accuracy and it is difficult to achieve good recommendation effects. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a product recommendation method, device and electronic device to alleviate the technical problem that the existing product recommendation method has poor accuracy in recommending products and is difficult to achieve good recommendation effects.

[0005] In a first aspect, an embodiment of the present invention provides a commodity recommendation method, which is applied to a smart contract of a blockchain, comprising:

[0006] Obtain the latest user-product data uploaded by each e-commerce platform and the credibility index of each e-commerce platform, wherein the user-product data includes: a user's product scoring matrix, a user purchase matrix, and a product feature matrix;

[0007] Obtain a recommendation request initiated by a target e-commerce platform to recommend a product to a target user, wherein the recommendation request carries a historical scoring vector and a historical purchase vector of the target user;

[0008] Determine a product recommendation vector for the target user on each e-commerce platform based on the recommendation request and the user-product data;

[0009] A target product recommendation vector of the target user is determined based on the product recommendation vector of the target user on each e-commerce platform and the credibility index of each e-commerce platform, and then products are recommended to the target user according to the target product recommendation vector.

[0010] Furthermore, after recommending a product to the target user according to the target product recommendation vector, the method further includes:

[0011] Acquire actual consumption information of the target user;

[0012] The credibility index of each e-commerce platform is updated according to the actual consumption information.

[0013] Furthermore, before obtaining the latest user-product data uploaded by each e-commerce platform, the method further includes:

[0014] After the e-commerce platforms sign a jointly recommended smart contract, the initial user-product data uploaded by the e-commerce platforms are obtained;

[0015] The initial user-product data is integrated to obtain user-product data.

[0016] Further, determining the product recommendation vector of the target user on each e-commerce platform based on the recommendation request and the user-product data includes:

[0017] According to the fit calculation formula:

[0018] Calculate the compatibility between the target user and each user of each e-commerce platform, where S ij represents the compatibility between user i and target user j, n represents the total number of product categories, b iα represents the value of commodity category α in the purchase vector of user i, b jα represents the value of commodity category α in the historical purchase vector of the target user j, r iα represents the score value of product category α in the user i's score vector, r jα represents the score value of commodity category α in the historical score vector of the target user j, represents the average value of user i’s ratings on the product, represents the average score given by the target user j to the product, t α The feature vector representing the product α, TC ij represents the built-in compatibility vector between user i and the target user j,

[0019] Determine, from the compatibility between the target user and each user of each e-commerce platform, a compatible user with the greatest compatibility with the target user on each e-commerce platform;

[0020] The scoring vectors of the users who have the greatest compatibility with the target user on each e-commerce platform are used as the product recommendation vectors for the target user on each e-commerce platform.

[0021] Further, determining the target product recommendation vector of the target user based on the product recommendation vector of the target user on each e-commerce platform and the credibility index of each e-commerce platform includes:

[0022] Calculate the formula based on the target product recommendation vector Calculate the target product recommendation vector of the target user, where U represents the target product recommendation vector of the target user, z represents the number of e-commerce platforms participating in the smart contract, and w k represents the credibility index of e-commerce platform k, r k represents the product recommendation vector of the e-commerce platform k.

[0023] Further, updating the credibility index of each e-commerce platform according to the actual consumption information includes:

[0024] If the target user does not make any purchase, the credibility index of each e-commerce platform remains unchanged;

[0025] If the target user purchases a product, the credibility index of each e-commerce platform is updated based on the product purchased by the target user.

[0026] Further, updating the credibility index of each e-commerce platform based on the goods purchased by the target user includes:

[0027] Update the formula based on the credibility index Calculate the updated credibility index of each e-commerce platform, where w' k represents the updated credibility index of e-commerce platform k, w k represents the credibility index of e-commerce platform k, represents the credibility index of the target e-commerce platform, θ is a positive number less than 1, β indicates whether the target user has purchased the product recommended by the target e-commerce platform. β=0 indicates that the target user has purchased the product recommended by the target e-commerce platform. β=1 indicates that the target user has not purchased the product recommended by the target e-commerce platform. U indicates the target product recommendation vector of the target user. a indicates the product vector actually purchased by the target user.

[0028] In a second aspect, an embodiment of the present invention further provides a commodity recommendation device, which is applied to a smart contract of a blockchain, comprising:

[0029] A first acquisition unit is used to acquire the latest user-product data uploaded by each e-commerce platform and the credibility index of each e-commerce platform, wherein the user-product data includes: a user's product scoring matrix, a user purchase matrix, and a product feature matrix;

[0030] A second acquisition unit is used to acquire a recommendation request initiated by a target e-commerce platform to recommend a product to a target user, wherein the recommendation request carries a historical scoring vector and a historical purchase vector of the target user;

[0031] A first determining unit, configured to determine a product recommendation vector of the target user on each e-commerce platform based on the recommendation request and the user-product data;

[0032] The second determination unit is used to determine the target product recommendation vector of the target user based on the product recommendation vector of the target user on each e-commerce platform and the credibility index of each e-commerce platform, and then recommend products to the target user according to the target product recommendation vector.

[0033] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.

[0034] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the steps of the method described in any one of the first aspects above.

[0035] In an embodiment of the present invention, a method for recommending goods is provided, which is applied to the smart contract of blockchain, and the method includes: obtaining the latest user-goods data uploaded by each e-commerce platform and the credibility index of each e-commerce platform; then, obtaining the recommendation request initiated by the target e-commerce platform to recommend goods to the target user; then, determining the target user's goods recommendation vector on each e-commerce platform based on the recommendation request and the user-goods data; finally, determining the target user's target goods recommendation vector based on the target user's goods recommendation vector on each e-commerce platform and the credibility index of each e-commerce platform, and then recommending goods to the target user according to the target goods recommendation vector. It can be seen from the above description that the method for recommending goods of the present invention is to determine the final target goods recommendation vector based on the goods recommendation vectors of multiple e-commerce platforms, and the target goods recommendation vector determined by the joint recommendation of multiple e-commerce platforms is more accurate, and can accurately recommend goods to the target user, achieving a good product recommendation effect. In addition, the method is completed by the smart contract of blockchain. As an intermediate medium of multiple e-commerce platforms, blockchain can solve the problem of data privacy security in the process of joint recommendation of multiple platforms, protect the user data security of each e-commerce platform, and alleviate the technical problem that the accuracy of the goods recommended by the existing product recommendation method is poor, and it is difficult to achieve a good recommendation effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 A schematic diagram of a flow chart of a method for recommending a commodity provided by an embodiment of the present invention;

[0038] Figure 2 A flowchart of determining a product recommendation vector for a target user on each e-commerce platform based on a recommendation request and user-product data provided by an embodiment of the present invention;

[0039] Figure 3 A flow chart of updating the credibility index of each e-commerce platform according to actual consumption information provided by an embodiment of the present invention;

[0040] Figure 4 A schematic diagram of a commodity recommendation device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] To facilitate understanding of this embodiment, a method for recommending a commodity disclosed in an embodiment of the present invention is first introduced in detail.

[0043] Embodiment 1:

[0044] To facilitate understanding of this embodiment, a method for recommending a product disclosed in an embodiment of the present invention is first introduced in detail. Figure 1 The flowchart of a method for recommending a product shown in the figure mainly includes the following steps:

[0045] Step S102, obtaining the latest user-product data uploaded by each e-commerce platform and the credibility index of each e-commerce platform, wherein the user-product data includes: a user's product scoring matrix, a user purchase matrix, and a product feature matrix;

[0046] In an embodiment of the present invention, the execution subject of the method can be a smart contract of the blockchain, and the smart contract of the blockchain can be set in the server. The above-mentioned e-commerce platforms will upload the latest user-product data from time to time. For example, when a new transaction is generated on the e-commerce platform, the corresponding user-product data will change. At this time, the e-commerce platform can upload the latest user-product data; for another example, when a new product is introduced on the e-commerce platform, the corresponding user-product data will also change. At this time, the e-commerce platform can also upload the latest user-product data. Of course, the latest user-product data can also be uploaded at intervals of a preset time. The embodiment of the present invention does not specifically limit the timing of the above upload.

[0047] The above-mentioned user-product data includes: a user's product scoring matrix, a user purchase matrix and a product feature matrix. The above-mentioned scoring matrix can be: R = {r1, r2, ..., rp}, where the value represents the scoring vector of each user for the product (that is, the vector composed of each user's scores for all products). For example: r1 represents the scoring vector of the user numbered 1 for the product, p represents the total number of users of the e-commerce platform, and the score in the scoring vector is a value between 0-5, and the interval of the score value is 0.5; the user purchase matrix can be: B = {b1, b2, ..., bp}, where the value is based on the user Whether such products have been purchased on the e-commerce platform is represented by a value of 0 or 1, 0 for no purchase and 1 for purchase. For example, b1 represents the purchase vector of the product by the user numbered 1 (that is, the vector composed of the purchase status of all products by the user numbered 1), p represents the total number of users of the e-commerce platform, and the product feature matrix can be: T = {t1, t2, ..., tl}, where the value is represented by a value of 0 or 1 according to whether the product of this type has corresponding features, 0 for no such feature and 1 for having such feature. For example, t1 represents the feature vector of the product numbered 1, and l represents the total number of products on the e-commerce platform.

[0048] The initial values ​​of the credibility indexes of the above-mentioned e-commerce platforms are all 1, and the credibility indexes of the above-mentioned e-commerce platforms will be updated according to the actual consumption information of the target users.

[0049] Step S104, obtaining a recommendation request initiated by the target e-commerce platform to recommend products to the target user, wherein the recommendation request carries the historical scoring vector and historical purchase vector of the target user;

[0050] Step S106, determining the product recommendation vector of the target user on each e-commerce platform based on the recommendation request and the user-product data;

[0051] The process is described in detail below and will not be repeated here.

[0052] Step S108, determining a target product recommendation vector of the target user based on the product recommendation vectors of the target user on each e-commerce platform and the credibility index of each e-commerce platform, and then recommending products to the target user according to the target product recommendation vector.

[0053] Specifically, the target product recommendation vector contains the recommendation values ​​of all products (each product has a corresponding recommendation value), and products are recommended to the target user according to the size of the recommendation value (the larger the recommendation value, the higher the recommendation priority of the corresponding product).

[0054] Similarly, the process will be described in detail below and will not be repeated here.

[0055] In an embodiment of the present invention, a method for recommending goods is provided, which is applied to the smart contract of blockchain, and the method includes: obtaining the latest user-goods data uploaded by each e-commerce platform and the credibility index of each e-commerce platform; then, obtaining the recommendation request initiated by the target e-commerce platform to recommend goods to the target user; then, determining the target user's goods recommendation vector on each e-commerce platform based on the recommendation request and the user-goods data; finally, determining the target user's target goods recommendation vector based on the target user's goods recommendation vector on each e-commerce platform and the credibility index of each e-commerce platform, and then recommending goods to the target user according to the target goods recommendation vector. It can be seen from the above description that the method for recommending goods of the present invention is to determine the final target goods recommendation vector based on the goods recommendation vectors of multiple e-commerce platforms, and the target goods recommendation vector determined by the joint recommendation of multiple e-commerce platforms is more accurate, and can accurately recommend goods to the target user, achieving a good product recommendation effect. In addition, the method is completed by the smart contract of blockchain. As an intermediate medium of multiple e-commerce platforms, blockchain can solve the problem of data privacy security in the process of joint recommendation of multiple platforms, protect the user data security of each e-commerce platform, and alleviate the technical problem that the accuracy of the goods recommended by the existing product recommendation method is poor, and it is difficult to achieve a good recommendation effect.

[0056] The above content briefly introduces the method for recommending the commodities of the present invention, and the specific contents involved therein are described in detail below.

[0057] In an optional embodiment of the present invention, after recommending products to the target user according to the target product recommendation vector, the method further includes: obtaining actual consumption information of the target user; and updating the credibility index of each e-commerce platform according to the actual consumption information.

[0058] The above-mentioned actual consumption information is the actual consumption information within a preset time range after the product is recommended to the target user, for example, it can be the actual consumption information within two weeks after the product is recommended to the target user.

[0059] In an optional embodiment of the present invention, before obtaining the latest user-product data uploaded by each e-commerce platform, the method further includes:

[0060] (1) After each e-commerce platform signs a jointly recommended smart contract, obtain the initial user-product data uploaded by each e-commerce platform;

[0061] (2) Integrate the initial user-product data to obtain user-product data.

[0062] The integration of the above data refers to the integration of the initial user-product data provided by each e-commerce platform, and then renumbering and expanding the vector content. In the renumbering, the scoring vector and purchase vector are directly renumbered (for example, the vectors of e-commerce platform A and e-commerce platform B each have 10 elements, and after integration, there are 20 elements), while the renumbering of feature vectors refers to the renumbering of all product features after deduplication (for example, the vectors of e-commerce platform A and e-commerce platform B each have 10 elements, of which 2 elements are repeated, and after integration, there are 18 elements). Expanding the vector content means putting all the data of each e-commerce platform together and re-encoding them to increase the dimensions of all scoring vectors, purchase vectors and feature vectors.

[0063] For ease of understanding, the following example is given: Suppose the initial user-product data uploaded by e-commerce platform A is: e-commerce platform A has milk, apples and bananas, user a scores 1.5 for milk on e-commerce platform A, user a scores 3 for apples on e-commerce platform A, and user a scores 4.5 for bananas on e-commerce platform A; e-commerce platform B has milk, apples and pears, user a scores 2 for milk on e-commerce platform B, user a scores 5 for apples on e-commerce platform B, and user a scores 3 for pears on e-commerce platform B.

[0064] After directly renumbering the scoring vector, we get: 1.5, 3, 4.5, 2, 5, 3. The element at each position in the new vector corresponds to a specific product and platform. For example, 1.5 is the score that user a gives to milk on e-commerce platform A. When the score that user a gives to milk on e-commerce platform A changes, the value at the corresponding position can be modified according to the binding relationship of the number.

[0065] The process of numbering the purchase vectors is similar to the process of scoring the vectors described above, and will not be repeated here.

[0066] For the feature vector, if the milk label of e-commerce platform A is sweet and sold by the box, the feature vector is (1, 1, 0, 0), and the milk label of e-commerce platform B is: high in calcium, low in fat and sweet, the feature vector is (1, 0, 0, 1, 1). After deduplication, the features are renumbered as: (sweet, sold by the box, high in calcium, low in fat, boxed, suitable for the elderly). The final feature vector is (1, 1, 1, 1, 0, 0), where 0 represents the unique feature that e-commerce platform A and e-commerce platform B do not have.

[0067] The integrated data is sent to each e-commerce platform. When the e-commerce platform uploads the latest user-product data, it can upload it according to the data dimensions specified by the smart contract of the blockchain (that is, expand the vector content before uploading). As mentioned above, when e-commerce platform A uploads the scoring vector, the first three elements are the user's scores for milk, apples, and bananas, and the values ​​of the last three elements are all 0. When e-commerce platform B uploads the scoring vector, the values ​​of the first three elements are all 0, and the last three elements are the user's scores for milk, apples, and pears. This ensures that the data dimensions uploaded by each e-commerce platform are the same, and the data in the scoring vector and the purchase vector correspond to the category of the product.

[0068] In an alternative embodiment of the present invention, reference Figure 2 The above step S106, determining the product recommendation vector of the target user on each e-commerce platform based on the recommendation request and the user-product data, specifically includes the following steps:

[0069] Step S201, calculate the degree of fit according to the formula:

[0070] Calculate the compatibility between the target user and each user of each e-commerce platform, where S ij represents the compatibility between user i and target user j, n represents the total number of product categories, b iα represents the value of product category α in the purchase vector of user i, b jα represents the value of commodity category α in the historical purchase vector of target user j, r iα represents the score value of product category α in the user i's score vector, r jα represents the score value of product category α in the historical score vector of target user j, represents the average value of user i’s ratings on the product, represents the average score given by target user j to the product, t α The feature vector representing the product α, TC ij represents the built-in compatibility vector between user i and target user j,

[0071] The above scoring vector and purchase vector are the vectors in the scoring matrix and the purchase matrix respectively, m pIndicates the user's rating for item p.

[0072] Step S202, determining a compatible user with the highest compatibility with the target user on each e-commerce platform from the compatibility between the target user and each user on each e-commerce platform;

[0073] Step S203: Using the scoring vector of the user with the highest degree of compatibility with the target user on each e-commerce platform as the product recommendation vector of the target user on each e-commerce platform.

[0074] In an optional embodiment of the present invention, step S108, based on the target user's product recommendation vectors on each e-commerce platform and the credibility index of each e-commerce platform, determines the target product recommendation vector of the target user, specifically including: calculating the target product recommendation vector according to the formula Calculate the target product recommendation vector of the target user, where U represents the target product recommendation vector of the target user, z represents the number of e-commerce platforms participating in the smart contract, and w k represents the credibility index of e-commerce platform k, r k Represents the product recommendation vector of e-commerce platform k.

[0075] In an alternative embodiment of the present invention, reference Figure 3 , based on actual consumption information, the credibility index of each e-commerce platform is updated, which specifically includes the following steps:

[0076] Step S301: If the target user does not make any purchases, the credibility index of each e-commerce platform remains unchanged;

[0077] Step S302: If the target user purchases the product, the credibility index of each e-commerce platform is updated based on the product purchased by the target user.

[0078] Specifically include: Update the formula according to the credibility index Calculate the updated credibility index of each e-commerce platform, where w' k represents the updated credibility index of e-commerce platform k, w k represents the credibility index of e-commerce platform k, Represents the credibility index of the target e-commerce platform, θ is a positive number less than 1, β indicates whether the target user has purchased the product recommended by the target e-commerce platform. β = 0 indicates that the target user has purchased the product recommended by the target e-commerce platform. β = 1 indicates that the target user has not purchased the product recommended by the target e-commerce platform. U indicates the target product recommendation vector of the target user. a indicates the product vector actually purchased by the target user.

[0079] The present invention proposes a product recommendation method for multiple e-commerce platforms on the blockchain, which can solve the problem that a single e-commerce platform is difficult to achieve good product recommendation effects due to less data, and can also solve the problem of data privacy security in the joint recommendation process of multiple e-commerce platforms.

[0080] Embodiment 2:

[0081] The embodiment of the present invention further provides a commodity recommendation device, which is mainly used to execute the commodity recommendation method provided in the above content of the embodiment of the present invention. The commodity recommendation device provided in the embodiment of the present invention is specifically introduced below.

[0082] Figure 4 is a schematic diagram of a recommendation device for a commodity according to an embodiment of the present invention, such as Figure 4 As shown, the commodity recommendation device mainly includes: a first acquisition unit 10, a second acquisition unit 20, a first determination unit 30 and a second determination unit 40, wherein:

[0083] The first acquisition unit is used to acquire the latest user-product data uploaded by each e-commerce platform and the credibility index of each e-commerce platform, wherein the user-product data includes: a user's product scoring matrix, a user purchase matrix, and a product feature matrix;

[0084] A second acquisition unit is used to acquire a recommendation request initiated by a target e-commerce platform for recommending products to a target user, wherein the recommendation request carries a historical scoring vector and a historical purchase vector of the target user;

[0085] A first determination unit, configured to determine a product recommendation vector of a target user on each e-commerce platform based on a recommendation request and user-product data;

[0086] The second determining unit is used to determine a target product recommendation vector of the target user based on the product recommendation vector of the target user on each e-commerce platform and the credibility index of each e-commerce platform, and then recommend products to the target user according to the target product recommendation vector.

[0087] In an embodiment of the present invention, a commodity recommendation device is provided, which is applied to the smart contract of blockchain. The method includes: obtaining the latest user-commodity data uploaded by each e-commerce platform and the credibility index of each e-commerce platform; then, obtaining the recommendation request initiated by the target e-commerce platform to recommend commodities to the target user; then, determining the commodity recommendation vector of the target user on each e-commerce platform based on the recommendation request and the user-commodity data; finally, determining the target commodity recommendation vector of the target user based on the commodity recommendation vector of the target user on each e-commerce platform and the credibility index of each e-commerce platform, and then recommending commodities to the target user according to the target commodity recommendation vector. It can be seen from the above description that the commodity recommendation device of the present invention is the final target commodity recommendation vector determined according to the commodity recommendation vectors of multiple e-commerce platforms. The target commodity recommendation vector determined by the joint recommendation of multiple e-commerce platforms is more accurate, and can accurately recommend commodities to the target user, achieving a good commodity recommendation effect. In addition, the method is completed by the smart contract of blockchain. As an intermediate medium of multiple e-commerce platforms, blockchain can solve the problem of data privacy security in the process of joint recommendation of multiple platforms, protect the user data security of each e-commerce platform, and alleviate the technical problem that the accuracy of the commodities recommended by the existing commodity recommendation method is poor, and it is difficult to achieve a good recommendation effect.

[0088] Optionally, the device is also used to: obtain actual consumption information of the target user; and update the credibility index of each e-commerce platform according to the actual consumption information.

[0089] Optionally, the device is also used to: obtain initial user-product data uploaded by each e-commerce platform after each e-commerce platform signs a jointly recommended smart contract; integrate the initial user-product data to obtain user-product data.

[0090] Optionally, the first determining unit is further used to: calculate the degree of fit according to a formula:

[0091] Calculate the compatibility between the target user and each user of each e-commerce platform, where S ij represents the compatibility between user i and target user j, n represents the total number of product categories, b iα represents the value of commodity category α in the purchase vector of user i, b jα represents the value of commodity category α in the historical purchase vector of target user j, r iα represents the score value of product category α in the user i's score vector, r jα represents the score value of product category α in the historical score vector of target user j, represents the average value of user i’s ratings on the product, represents the average score given by target user j to the product, t α The feature vector representing the product α, TC ijrepresents the built-in compatibility vector between user i and target user j, The compatible users with the highest degree of compatibility with the target user on each e-commerce platform are determined among the compatibility between the target user and each user on each e-commerce platform; the scoring vectors of the compatible users with the highest degree of compatibility with the target user on each e-commerce platform are used as the product recommendation vectors of the target user on each e-commerce platform.

[0092] Optionally, the second determining unit is further configured to: calculate a formula according to the target product recommendation vector Calculate the target product recommendation vector of the target user, where U represents the target product recommendation vector of the target user, z represents the number of e-commerce platforms participating in the smart contract, and w k represents the credibility index of e-commerce platform k, r k Represents the product recommendation vector of e-commerce platform k.

[0093] Optionally, the device is also used to: if the target user does not make any purchases, the credibility index of each e-commerce platform remains unchanged; if the target user purchases goods, the credibility index of each e-commerce platform is updated based on the goods purchased by the target user.

[0094] Optionally, the device is also used to: update the formula according to the credibility index Calculate the updated credibility index of each e-commerce platform, where w' k represents the updated credibility index of e-commerce platform k, w k represents the credibility index of e-commerce platform k, Represents the credibility index of the target e-commerce platform, θ is a positive number less than 1, β indicates whether the target user has purchased the product recommended by the target e-commerce platform. β = 0 indicates that the target user has purchased the product recommended by the target e-commerce platform. β = 1 indicates that the target user has not purchased the product recommended by the target e-commerce platform. U indicates the target product recommendation vector of the target user. a indicates the product vector actually purchased by the target user.

[0095] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0096] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the above method embodiments, and will not be repeated here. The commodity recommendation device provided in the embodiment of the present application has the same technical features as the commodity recommendation method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0097] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0098] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0099] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for recommending a product, characterized in that: Smart contracts applied to blockchain include: Obtain the latest user-product data uploaded by each e-commerce platform and the credibility index of each e-commerce platform, wherein the user-product data includes: a user's product scoring matrix, a user purchase matrix, and a product feature matrix; Obtain a recommendation request initiated by a target e-commerce platform to recommend a product to a target user, wherein the recommendation request carries a historical scoring vector and a historical purchase vector of the target user; Determine a product recommendation vector for the target user on each e-commerce platform based on the recommendation request and the user-product data; Determine a target product recommendation vector for the target user based on the product recommendation vectors of the target user on each e-commerce platform and the credibility index of each e-commerce platform, and then recommend products to the target user according to the target product recommendation vector; Wherein, determining the product recommendation vector of the target user on each e-commerce platform based on the recommendation request and the user-product data includes: According to the fit calculation formula: Calculate the compatibility between the target user and each user of each e-commerce platform, where S ij represents the compatibility between user i and target user j, n represents the total number of product categories, b iα represents the value of commodity category α in the purchase vector of user i, b jα represents the value of commodity category α in the historical purchase vector of the target user j, r iα represents the score value of product category α in the user i's score vector, r jα represents the score value of commodity category α in the historical score vector of the target user j, represents the average value of user i’s ratings on the product, represents the average score given by the target user j to the product, t α The feature vector representing the product α, TC ij represents the built-in compatibility vector between user i and the target user j, m p Indicates the user's rating of item p; Determine, from the compatibility between the target user and each user of each e-commerce platform, a compatible user with the greatest compatibility with the target user on each e-commerce platform; The scoring vectors of the users who have the greatest compatibility with the target user on each e-commerce platform are used as the product recommendation vectors for the target user on each e-commerce platform; Wherein, determining the target product recommendation vector of the target user based on the product recommendation vector of the target user on each e-commerce platform and the credibility index of each e-commerce platform includes: Calculate the formula based on the target product recommendation vector Calculate the target product recommendation vector of the target user, where U represents the target product recommendation vector of the target user, z represents the number of e-commerce platforms participating in the smart contract, and w k represents the credibility index of e-commerce platform k, r k represents the product recommendation vector of the e-commerce platform k.

2. The method according to claim 1, characterized in that: After recommending a product to the target user according to the target product recommendation vector, the method further includes: Obtaining actual consumption information of the target user; The credibility index of each e-commerce platform is updated according to the actual consumption information.

3. The method according to claim 1, characterized in that Before obtaining the latest user-product data uploaded by each e-commerce platform, the method further includes: After the e-commerce platforms sign a jointly recommended smart contract, the initial user-product data uploaded by the e-commerce platforms are obtained; The initial user-product data is integrated to obtain user-product data.

4. The method according to claim 2, characterized in that: Updating the credibility index of each e-commerce platform according to the actual consumption information includes: If the target user does not make any purchase, the credibility index of each e-commerce platform remains unchanged; If the target user purchases a product, the credibility index of each e-commerce platform is updated based on the product purchased by the target user.

5. The method according to claim 4, characterized in that Updating the credibility index of each e-commerce platform based on the goods purchased by the target user includes: Update the formula based on the credibility index Calculate the updated credibility index of each e-commerce platform, where w' k represents the updated credibility index of e-commerce platform k, w k represents the credibility index of e-commerce platform k, represents the credibility index of the target e-commerce platform, θ is a positive number less than 1, β indicates whether the target user has purchased the product recommended by the target e-commerce platform. β=0 indicates that the target user has purchased the product recommended by the target e-commerce platform. β=1 indicates that the target user has not purchased the product recommended by the target e-commerce platform. U indicates the target product recommendation vector of the target user. a indicates the product vector actually purchased by the target user.

6. A device for recommending products, characterized in that: Smart contracts applied to blockchain include: A first acquisition unit is used to acquire the latest user-product data uploaded by each e-commerce platform and the credibility index of each e-commerce platform, wherein the user-product data includes: a user's product scoring matrix, a user purchase matrix, and a product feature matrix; A second acquisition unit is used to acquire a recommendation request initiated by a target e-commerce platform to recommend a product to a target user, wherein the recommendation request carries a historical scoring vector and a historical purchase vector of the target user; A first determining unit, configured to determine a product recommendation vector of the target user on each e-commerce platform based on the recommendation request and the user-product data; A second determining unit is used to determine a target product recommendation vector of the target user based on the product recommendation vector of the target user on each e-commerce platform and the credibility index of each e-commerce platform, and then recommend products to the target user according to the target product recommendation vector; Wherein, the first determining unit is further used for: calculating the degree of fit according to the formula: Calculate the compatibility between the target user and each user of each e-commerce platform, where S ij represents the compatibility between user i and target user j, n represents the total number of product categories, b iα represents the value of commodity category α in the purchase vector of user i, b jα represents the value of commodity category α in the historical purchase vector of the target user j, r iα represents the score value of product category α in the user i's score vector, r jα represents the score value of commodity category α in the historical score vector of the target user j, represents the average value of user i’s ratings on the product, represents the average score given by the target user j to the product, t α The feature vector representing the product α, TC ij represents the built-in compatibility vector between user i and the target user j, m p represents the user's score for the pth product; determining the compatible user with the highest compatibility with the target user on each e-commerce platform from the compatibility between the target user and each user on each e-commerce platform; using the score vector of the compatible user with the highest compatibility with the target user on each e-commerce platform as the product recommendation vector of the target user on each e-commerce platform; The second determining unit is further used to: calculate the formula according to the target product recommendation vector Calculate the target product recommendation vector of the target user, where U represents the target product recommendation vector of the target user, z represents the number of e-commerce platforms participating in the smart contract, and w k represents the credibility index of e-commerce platform k, r k represents the product recommendation vector of the e-commerce platform k.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the steps of the method according to any one of claims 1 to 5.