Product recommendation method and device, equipment, medium and program product
By determining the intended feature categories based on users' historical transaction information and product trend charts, and matching the feature categories of candidate products, the problem of long-term unchanged financial product recommendation content is solved, and the accuracy of recommendations and user experience are improved.
Patent Information
- Application Number
- CN202410592866.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-23
AI Technical Summary
The long life cycle of financial products makes it difficult to update real-time changes in the trend of financial products, resulting in long-term unchanged recommendation content for users with the same risk-taking preferences. The recommendation efficiency is low, the effect is poor, and the user experience is poor.
Based on the target user's user historical transaction information, determine the target user's intended feature category, recommend the target product by matching the feature category of the candidate product, and recommend the target product to the target user if the historical products do not include the target product.
It improves the accuracy of product recommendations and user experience, ensures that recommended product features are consistent with the features of users when purchasing historical products, and is applicable to the entire life cycle of candidate products.
Smart Images

Figure CN118537092A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of big data and financial technology, and specifically to a product recommendation method, device, equipment, medium and program product. Background Art
[0002] In the process of recommending financial products to users, it is usually necessary to obtain the user's risk-taking preference, determine the financial products that the user may be interested in based on the risk-taking preference, and recommend them to the user.
[0003] In the process of implementing the present disclosure, the inventors found that due to the long life cycle of financial products, changes in the trend of financial products in a short period of time are difficult to change the long-term characteristics of financial products, that is, it is difficult to update the development and trend forecasts of financial products in real time. As a result, the recommended content for users with the same risk-taking preferences will remain unchanged for a long time, the recommendation efficiency is low, the effect is poor, and the user experience is not good. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a product recommendation method, apparatus, device, medium and program product.
[0005] According to a first aspect of the present disclosure, a product recommendation method is provided, comprising: determining at least one historical product purchased by a target user based on user historical transaction information of a target user, wherein the user historical transaction information includes the transaction time when the target user purchased the historical product; determining the target user's intended feature category based on a product trend chart of at least one historical product within a predetermined time period before the transaction time; determining at least one target product from a plurality of candidate products based on the intended feature category and respective feature categories of a plurality of candidate products, wherein respective feature categories of the plurality of candidate products are determined based on respective product trend charts of the plurality of candidate products within a predetermined time period before a current time; and recommending the target product to the target user if the historical products do not include the target product.
[0006] According to an embodiment of the present disclosure, at least one target product is determined from multiple candidate products based on the intended feature category and the feature categories of each of the multiple candidate products, including: matching the feature categories of each of the multiple candidate products with the intended feature category to obtain matching results corresponding to each of the multiple candidate products, wherein when the feature category of the candidate product is the same as the intended feature category, the matching result of the candidate product represents a successful match; and determining the candidate product corresponding to the successful matching result as the target product.
[0007] According to an embodiment of the present disclosure, when the number of historical products is one, the intended feature category of the target user is determined based on a product trend chart of at least one historical product within a predetermined time period before the transaction moment, including: determining the feature category of the historical product based on the product trend chart of the historical product within a predetermined time period before the transaction moment; and determining the feature category to which the feature category of the historical product belongs as the intended feature category of the target user.
[0008] According to an embodiment of the present disclosure, when the number of historical products is greater than one, determining the intended feature category of the target user based on a product trend chart of at least one historical product within a predetermined time period before the transaction moment includes: determining the feature categories of each of the multiple historical products based on the respective product trend charts of the multiple historical products within the predetermined time period before the transaction moment; determining the number of historical products included in each of the multiple feature categories; and determining the feature category that includes the most historical products as the intended feature category of the target user.
[0009] According to an embodiment of the present disclosure, the feature categories of each of the multiple candidate products are obtained in the following manner, including: clustering multiple product trend charts to obtain multiple cluster centers; and determining the feature categories of each of the multiple candidate products based on the features of each product trend chart and the multiple cluster centers.
[0010] According to an embodiment of the present disclosure, based on the characteristics of each product trend chart and multiple cluster centers, the characteristic categories of multiple candidate products are determined, including: for each product trend chart, determining the Euclidean distances between the characteristics of the product trend chart and multiple cluster centers; and determining the characteristic category corresponding to the cluster center with the smallest Euclidean distance as the characteristic category of the candidate product corresponding to the product trend chart.
[0011] According to an embodiment of the present disclosure, the product recommendation method also includes: for each candidate product, obtaining multiple resource values of the candidate product before the current moment; and when the number of resource values is greater than a predetermined number, preprocessing the multiple resource values to obtain multiple preprocessed resource values, wherein the predetermined number corresponds to a predetermined time period, and the preprocessing includes data completion.
[0012] According to an embodiment of the present disclosure, the product recommendation method also includes: determining the product trend charts of multiple candidate products within a predetermined time period before the current moment based on multiple preprocessed resource values; and determining the product trend charts of at least one historical product within a predetermined time period before the transaction moment based on multiple preprocessed resource values and the transaction moment.
[0013] A second aspect of the present disclosure provides a product recommendation device, comprising:
[0014] A historical product determination module, used to determine at least one historical product purchased by the target user based on the user historical transaction information of the target user, wherein the user historical transaction information includes the transaction time when the target user purchased the historical product;
[0015] A category determination module, used to determine the intended feature category of the target user based on a product trend chart of at least one historical product within a predetermined time period before the transaction moment;
[0016] a target product determination module, configured to determine at least one target product from a plurality of candidate products based on the intended feature category and the feature categories of each of the plurality of candidate products, wherein the feature categories of each of the plurality of candidate products are determined based on respective product trend charts of the plurality of candidate products within a predetermined time period before a current moment; and
[0017] The product recommendation module is used to recommend the target product to the target user when the historical products do not include the target product.
[0018] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0019] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.
[0020] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.
[0021] According to an embodiment of the present disclosure, historical products are determined based on historical transaction information of a target user, and the intention feature category that the target user is interested in is determined through a product trend chart of the historical products. Since the intention feature category is determined based on the historical transaction information of the target user, that is, the target user has purchased historical products of the intention feature category, the probability that the target user is interested in other candidate products of the intention feature category is higher. In addition, the intention feature category is determined based on the product trend chart of the historical product in a predetermined time period before the transaction moment, so the intention feature category can accurately reflect the characteristics of the historical product when the target user purchases the historical product, thereby further improving the accuracy of the intention feature category. Based on the intention feature category and the feature categories of each of the multiple candidate products, the target product is determined, and the target product is recommended to the target user if the target user has not purchased the target product. By processing the product trend charts of the historical products and the candidate products in the predetermined time period, the obtained feature category can more accurately reflect the product characteristics in the predetermined time period, so that the same candidate product can be recommended to different target users at different times throughout the life cycle of the candidate product by using the product recommendation method. Since the feature categories of multiple candidate products are determined based on their respective product trend charts within a predetermined time period before the current moment, the feature categories of multiple candidate products can accurately reflect the features of the multiple candidate products within the predetermined time period before the current moment, and can ensure that the feature category of the target product is the same as the feature category of the historical product when the user purchased the historical product, thereby improving the accuracy of product recommendations. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0023] Figure 1 A diagram schematically illustrates an application scenario of a product recommendation method, apparatus, device, medium, and program product according to an embodiment of the present disclosure;
[0024] Figure 2 A flowchart of a product recommendation method according to an embodiment of the present disclosure is schematically shown;
[0025] Figure 3A A trend chart of the entire life cycle of a product according to an embodiment of the present disclosure is schematically shown;
[0026] Figure 3B A product trend chart of historical products determined by the product recommendation method according to an embodiment of the present disclosure is schematically shown;
[0027] Figure 3C A product trend chart of candidate products determined by the product recommendation method according to an embodiment of the present disclosure is schematically shown;
[0028] Figure 4 A structural block diagram of a product recommendation device according to an embodiment of the present disclosure is schematically shown; and
[0029] Figure 5 A block diagram of an electronic device suitable for implementing a product recommendation method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0030] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0031] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0032] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0033] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0034] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0035] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.
[0036] Since the recommended content for the same user remains unchanged over time, and the recommended content may include products whose long-term characteristics are consistent with the user's risk-taking preferences, but whose short-term development trends are contrary to the user's risk-taking preferences, the accuracy of product recommendations in existing technologies is low.
[0037] An embodiment of the present disclosure provides a product recommendation method, comprising: determining at least one historical product purchased by the target user based on the user's historical transaction information of the target user, wherein the user's historical transaction information includes the transaction time when the target user purchased the historical product; determining the target user's intended feature category based on a product trend chart of at least one historical product within a predetermined time period before the transaction time; determining at least one target product from a plurality of candidate products based on the intended feature category and the respective feature categories of a plurality of candidate products, wherein the respective feature categories of the plurality of candidate products are determined based on the respective product trend charts of the plurality of candidate products within the predetermined time period before the current time; and recommending the target product to the target user if the historical products do not include the target product.
[0038] Figure 1 The application scenario diagram of the product recommendation method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.
[0039] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, a server 105, and a database 106. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103, the server 105, and the database 106. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0040] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications, such as financial applications, etc., can be installed on terminal devices 101, 102, 103 (only as an example).
[0041] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0042] The server 105 may be a server that provides various services, such as a background management server that provides support for websites browsed by users using the terminal devices 101, 102, and 103 (for example only). The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device. The background management server may also push the recommendation results to the terminal device.
[0043] The database 106 may be a database that provides a storage function. The database 106 may store information of various financial products, such as daily resource value information of multiple financial products, and multiple historical transaction information of multiple users.
[0044] It should be noted that the product recommendation method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the product recommendation device provided in the embodiment of the present disclosure can generally be set in the server 105. The product recommendation method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105 and / or the database 106. Correspondingly, the product recommendation device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105 and / or the database 106.
[0045] It should be understood that Figure 1 The number of terminal devices, networks, servers and databases in the embodiment is only for illustration. Any number of terminal devices, networks, servers and databases may be provided as required.
[0046] The following will be based on Figure 1 The scene described by Figure 2 , Figure 3A , Figure 3B , Figure 3C The product recommendation method of the disclosed embodiment is described in detail.
[0047] Figure 2 The flowchart of the product recommendation method according to the embodiment of the present disclosure is schematically shown.
[0048] like Figure 2As shown, the product recommendation method of this embodiment includes operations S210 to S240.
[0049] In operation S210, at least one historical product purchased by the target user is determined based on the user historical transaction information of the target user, wherein the user historical transaction information includes the transaction time when the target user purchased the historical product.
[0050] In operation S220, the intention feature category of the target user is determined based on a product trend chart of at least one historical product within a predetermined time period before the transaction moment.
[0051] In operation S230, at least one target product is determined from the plurality of candidate products based on the intended feature category and the feature categories of the plurality of candidate products.
[0052] In operation S240, in a case where the historical products do not include the target product, the target product is recommended to the target user.
[0053] According to an embodiment of the present disclosure, the user historical transaction information of the target user is obtained, wherein the target user may be the object of product recommendation, and the user historical transaction information may be a transaction record related to the product purchased by the user before the current moment, including the product name of the purchased historical product, the transaction time of the purchased historical product, etc. Based on the user historical transaction information of the target user, at least one historical product purchased by the target user is determined.
[0054] According to an embodiment of the present disclosure, products, historical products, and candidate products may include financial products with a long life cycle, such as funds and stocks.
[0055] According to an embodiment of the present disclosure, based on at least one historical product, a product trend chart of the historical product within a predetermined time period before the transaction moment is determined, wherein the predetermined time period can be set according to actual needs, for example, within one month, within six months, within one year, etc. The product trend chart can be used to characterize the fluctuations in the trend of product attributes of the historical product within the predetermined time period before the transaction moment, wherein the product attributes may include the resource values of the product, such as price, transaction volume, etc.
[0056] According to an embodiment of the present disclosure, based on a product trend chart of at least one historical product within a predetermined time period before a transaction moment, an intention feature category of a target user is determined, wherein the intention feature category is a feature category to which a historical product purchased by the target user belongs, and the target user is more likely to purchase candidate products of the intention feature category, and the intention feature category may include steady growth, rapid growth, floating growth, steady decline, rapid decline, etc.
[0057] According to an embodiment of the present disclosure, steady growth and rapid growth can be distinguished by the rate of change of the product trend graph. For example, a rate of change threshold is set. When the product trend graph is monotonically growing and the slope of the product trend graph is greater than or equal to the rate of change threshold, the characteristic category of the historical product is rapid growth. When the product trend graph is monotonically growing and the slope of the product trend graph is less than the rate of change threshold, the characteristic category of the historical product is steady growth. When the monotonicity of the product trend graph includes monotonic growth and monotonic decrease, the characteristic of the historical product is floating growth.
[0058] According to an embodiment of the present disclosure, at least one target product is determined from multiple candidate products based on the intended feature category and the feature categories of each of the multiple candidate products, wherein the feature category of the target product is consistent with the intended feature category, and the feature categories of each of the multiple candidate products can be determined based on the respective product trend charts of the multiple candidate products within a predetermined time period before the current moment, and the feature categories may include steady growth, rapid growth, floating growth, steady decline, rapid decline, etc.
[0059] According to an embodiment of the present disclosure, when the historical products do not include the target product, it is characterized that the target user may be inclined to purchase the target product and has not completed the transaction, so the target product is recommended to the target user.
[0060] According to an embodiment of the present disclosure, historical products are determined based on historical transaction information of a target user, and the intention feature category that the target user is interested in is determined through a product trend chart of the historical products. Since the intention feature category is determined based on the historical transaction information of the target user, that is, the target user has purchased historical products of the intention feature category, the probability that the target user is interested in other candidate products of the intention feature category is higher. In addition, the intention feature category is determined based on the product trend chart of the historical product in a predetermined time period before the transaction moment, so the intention feature category can accurately reflect the characteristics of the historical product when the target user purchases the historical product, thereby further improving the accuracy of the intention feature category. Based on the intention feature category and the feature categories of each of the multiple candidate products, the target product is determined, and the target product is recommended to the target user if the target user has not purchased the target product. By processing the product trend charts of the historical products and the candidate products in the predetermined time period, the obtained feature category can more accurately reflect the product characteristics in the predetermined time period, so that the same candidate product can be recommended to different target users at different times throughout the life cycle of the candidate product by using the product recommendation method. Since the feature categories of multiple candidate products are determined based on their respective product trend charts within a predetermined time period before the current moment, the feature categories of multiple candidate products can accurately reflect the features of the multiple candidate products within the predetermined time period before the current moment, and can ensure that the feature category of the target product is the same as the feature category of the historical product when the user purchased the historical product, thereby improving the accuracy of product recommendations.
[0061] According to an embodiment of the present disclosure, at least one target product is determined from multiple candidate products based on the intended feature category and the feature categories of each of the multiple candidate products, including: matching the feature categories of each of the multiple candidate products with the intended feature category to obtain matching results corresponding to each of the multiple candidate products, wherein when the feature category of the candidate product is the same as the intended feature category, the matching result of the candidate product represents a successful match; and determining the candidate product corresponding to the successful matching result as the target product.
[0062] According to an embodiment of the present disclosure, the feature categories of each of a plurality of candidate products are matched with the intended feature categories to obtain matching results corresponding to each of the plurality of candidate products, wherein the matching results corresponding to the candidate products can be determined by comparing whether the feature categories of the candidate products are the same as the intended feature categories. When the feature categories of the candidate products are the same as the intended feature categories, the matching results of the candidate products represent a successful match.
[0063] According to an embodiment of the present disclosure, since the feature category of the candidate product corresponding to the successfully matched matching result is the same as the intended feature category, that is, the target user may be interested in the candidate product, the candidate product corresponding to the successfully matched matching result is determined as the target product.
[0064] According to an embodiment of the present disclosure, by matching the feature categories of multiple candidate products with the intended feature categories to determine the target product, it is possible to ensure that the feature category of the target product is the same as the intended feature category, that is, the feature of the target product is the same as or similar to the feature of the historical product when the target user purchased the historical product, thereby making the determined target product have a higher probability of being a product that the target user is interested in, thereby improving the accuracy and recommendation effect of product recommendations.
[0065] According to an embodiment of the present disclosure, when the number of historical products is one, the intended feature category of the target user is determined based on a product trend chart of at least one historical product within a predetermined time period before the transaction moment, including: determining the feature category of the historical product based on the product trend chart of the historical product within a predetermined time period before the transaction moment; and determining the feature category to which the feature category of the historical product belongs as the intended feature category of the target user.
[0066] According to an embodiment of the present disclosure, when the number of historical products is one, it can be determined that the target user is interested in the feature category to which the historical product belongs. Therefore, the feature category of the historical product can be determined based on the product trend chart of the historical product in a predetermined time period before the transaction moment, and the feature category to which the feature category of the historical product belongs can be determined as the intended feature category of the target user.
[0067] According to an embodiment of the present disclosure, when the number of historical products is one, it can be determined that the target user is interested in the feature category to which the historical product belongs, and thus the feature category is determined as an intended feature category, thereby improving the recommendation success rate when making recommendations to the target user based on the intended feature category.
[0068] According to an embodiment of the present disclosure, when the number of historical products is greater than one, determining the intended feature category of the target user based on a product trend chart of at least one historical product within a predetermined time period before the transaction moment includes: determining the feature categories of each of the multiple historical products based on the respective product trend charts of the multiple historical products within the predetermined time period before the transaction moment; determining the number of historical products included in each of the multiple feature categories; and determining the feature category that includes the most historical products as the intended feature category of the target user.
[0069] According to an embodiment of the present disclosure, when the number of historical products is greater than one, the multiple historical products may belong to different feature categories, and it is impossible to directly determine the intended feature category that the target user is most likely to be interested in from the multiple feature categories.
[0070] According to an embodiment of the present disclosure, it is possible to determine the feature categories of each of the multiple historical products based on their respective product trend charts within a predetermined time period before the transaction moment, and count the number of historical products included in each of the multiple feature categories, thereby determining the feature category that includes the largest number of historical products purchased by the target user, and determining this feature category as the intended feature category that the target user is most likely to be interested in.
[0071] According to an embodiment of the present disclosure, when the number of historical products is greater than one, a feature category including the most historical products is determined as the intended feature category. When the target user has purchased products of multiple different feature categories, the intended feature category that the target user is most likely to be interested in can be determined based on the number of historical products included in the multiple feature categories, thereby improving the recommendation success rate when making recommendations to the target user based on the intended feature category.
[0072] According to an embodiment of the present disclosure, the feature categories of each of the multiple candidate products are obtained in the following manner, including: clustering multiple product trend charts to obtain multiple cluster centers; and determining the feature categories of each of the multiple candidate products based on the features of each product trend chart and the multiple cluster centers.
[0073] According to an embodiment of the present disclosure, the feature categories of each of the multiple candidate products are obtained in the following manner: multiple product trend charts are clustered to obtain multiple cluster centers, wherein the multiple product trend charts can be clustered using algorithms such as K-means clustering (K-means) algorithm, time series clustering (for example, K-shape, etc.) algorithm, and each cluster center represents a feature category of the candidate product.
[0074] According to an embodiment of the present disclosure, based on the features of each product trend graph and a plurality of cluster centers, a cluster center corresponding to each product trend graph is determined, thereby determining the feature category to which each candidate product belongs.
[0075] According to the embodiments of the present disclosure, the feature categories of multiple candidate products are determined by clustering, and the similarities and relationships between multiple product trend charts can be discovered by clustering, so that product trend charts with similar features can be grouped into the same category, thereby improving the accuracy of the feature categories of multiple candidate products.
[0076] According to an embodiment of the present disclosure, based on the characteristics of each product trend chart and multiple cluster centers, the characteristic categories of multiple candidate products are determined, including: for each product trend chart, determining the Euclidean distances between the characteristics of the product trend chart and multiple cluster centers; and determining the characteristic category corresponding to the cluster center with the smallest Euclidean distance as the characteristic category of the candidate product corresponding to the product trend chart.
[0077] According to an embodiment of the present disclosure, for each product trend chart, the Euclidean distances between the characteristics of the product trend chart and multiple cluster centers are determined, and the product trend chart is divided into the category corresponding to the cluster center with the smallest Euclidean distance, and the feature category corresponding to the cluster center is determined as the feature category of the candidate product corresponding to the product trend chart.
[0078] For example, when using K-means to cluster multiple product trend charts, the multiple product trend charts can be mapped to hyperplanes respectively, and K sample points are randomly selected as initial cluster centers. For the sample points corresponding to other product trend charts, the Euclidean distance between the sample points and the K initial cluster centers is calculated respectively, and the sample points are divided into the categories described by the initial cluster center with the smallest Euclidean distance. After completing the division of all sample points, the centroids of the K clusters are calculated as new cluster centers, and the Euclidean distance between the sample points and the cluster centers is continued to be clustered until the Euclidean distance between the calculated centroid and the cluster center calculated in the previous round of iterations is less than the distance threshold, the cluster center is updated, and the clusters to which the multiple product trend charts belong are determined, thereby determining the feature categories of the multiple product trend charts.
[0079] According to an embodiment of the present disclosure, the Euclidean distances between the features of a product trend graph and a plurality of cluster centers are utilized to determine the cluster center to which the product trend graph belongs, and the cluster center is adjusted in an iterative manner, thereby being able to determine a more accurate cluster center, and to more accurately classify the categories of the features of the product trend graph, thereby further improving the accuracy of the feature categories of a plurality of candidate products.
[0080] According to an embodiment of the present disclosure, the product recommendation method also includes: for each candidate product, obtaining multiple resource values of the candidate product before the current moment; and when the number of resource values is greater than a predetermined number, preprocessing the multiple resource values to obtain multiple preprocessed resource values, wherein the predetermined number corresponds to a predetermined time period, and the preprocessing includes data completion.
[0081] According to an embodiment of the present disclosure, for each candidate product, multiple resource values of the candidate product before the current moment are obtained, wherein the resource value acquisition period can be set according to actual needs. For example, when the resource value period is 1 day, the resource value of the candidate product every day before the current moment is obtained.
[0082] According to an embodiment of the present disclosure, when the number of resource values is greater than a predetermined number, multiple resource values are preprocessed to obtain multiple preprocessed resource values, wherein the preprocessing includes data completion, for example, using values such as the mean and the median to complete missing data, using adjacent data to complete missing data, etc. The predetermined number corresponds to a predetermined time period. For example, the predetermined time period is one month, and the resource value acquisition cycle is 1 day, then 30 resource values need to be acquired. A quantity ratio threshold can be set to determine the predetermined number based on the number of resource values that need to be acquired. For example, when the quantity ratio threshold is set to 2 / 3, the predetermined number is 30*2 / 3=20, that is, when the number of resource values is greater than 20, data completion is performed on multiple resource values to obtain multiple preprocessed resource values.
[0083] According to an embodiment of the present disclosure, when the number of resource values is less than or equal to a predetermined number, if multiple resource values are completed and the completed data is used for subsequent processing or the number of missing data is too large, the accuracy of the completed data is low, thereby reducing the accuracy of product recommendations. Therefore, when the number of resource values is less than a predetermined number, the candidate products corresponding to the above resource values are filtered and the product is not used as a candidate product.
[0084] According to an embodiment of the present disclosure, preprocessing also includes data normalization, wherein after data normalization is performed on multiple resource values, the rate of change of the resource values will not change, and thus data normalization will not affect the feature categories of the candidate products determined based on the resource values.
[0085] According to the embodiments of the present disclosure, the number of multiple resource values of each candidate product is determined. When the number of resource values is greater than a predetermined number, the missing resource values are completed using a data completion method to ensure that the multiple resource values after completion can characterize the floating situation of the resource values of the candidate product, thereby avoiding changes in the characteristics of the product trend chart of the candidate product due to missing resource values. When the number of resource values of a candidate product is less than or equal to a predetermined number, the candidate product is filtered to avoid the problem that the multiple resource values after completion cannot correctly reflect the characteristics of the product trend chart due to too much supplementary data, thereby improving the accuracy of product recommendations.
[0086] According to an embodiment of the present disclosure, the product recommendation method also includes: determining the product trend charts of multiple candidate products within a predetermined time period before the current moment based on multiple preprocessed resource values; and determining the product trend charts of at least one historical product within a predetermined time period before the transaction moment based on multiple preprocessed resource values and the transaction moment.
[0087] According to an embodiment of the present disclosure, from among the multiple preprocessed resource values of each candidate product, the multiple preprocessed resource values of each candidate product within a predetermined time period before the current moment are screened respectively, and the screened multiple preprocessed resource values of each candidate product are mapped to a coordinate system to obtain a product trend chart of each candidate product, wherein the horizontal axis of the coordinate system is time, the value range is the time range within the predetermined time period before the current moment, and the vertical axis is the size of the resource value, and the value range can be determined based on the value range of the preprocessed multiple resource values.
[0088] According to an embodiment of the present disclosure, from the multiple processed resource values of at least one historical product, the multiple pre-processed resource values of each historical product within a predetermined time period before the transaction moment are respectively screened, and the screened multiple pre-processed resource values of at least one historical product are mapped to a coordinate system to obtain a product trend chart of each historical product, wherein the horizontal axis of the coordinate system is time, the value range is the time range within the predetermined time period before the transaction moment, and the vertical axis is the size of the resource value, and the value range can be determined based on the value range of the multiple pre-processed resource values.
[0089] According to the embodiments of the present disclosure, by determining the product trend graphs of multiple candidate products and at least one historical product in different time ranges through the current moment and the respective transaction moments of at least one historical product, the product trend graph of the historical product when the target user trades the historical product can be more accurately determined, thereby improving the accuracy of determining the intended feature category. In addition, the product trend graphs of multiple candidate products in a predetermined time period before the current moment can also be more accurately determined, thereby improving the accuracy of determining the special function category of each of the multiple candidate products.
[0090] Figure 3A A trend chart of the entire life cycle of a product according to an embodiment of the present disclosure is schematically shown.
[0091] like Figure 3A As shown, the horizontal axis of the trend chart coordinate system of the entire life cycle of the product is time, and the value range is from 0 to the current time. Among them, the transaction time when user A purchases the product is t0, corresponding to partial trend chart 301, the product trend chart of the product is obtained at time t1, corresponding to partial trend chart 302, and the transaction time when user B purchases the product is t2, corresponding to partial trend chart 303.
[0092] By setting the change rate threshold, since both partial trend graph 301 and partial trend graph 302 are monotonically increasing, and the slopes of partial trend graph 301 and partial trend graph 302 are both less than the change rate threshold, the feature categories corresponding to partial trend graph 301 and partial trend graph 302 are both steadily increasing. Since partial trend graph 303 is monotonically increasing, and the slope of partial trend graph 303 is greater than the change rate threshold, the feature category corresponding to partial trend graph 303 is rapidly increasing.
[0093] Figure 3B The product trend chart of historical products determined by the product recommendation method according to an embodiment of the present disclosure is schematically shown.
[0094] like Figure 3B As shown, the transaction time when user A purchased the product is t0, and the length of the predetermined time period is set to t. Based on multiple preprocessed resource values between t0-t and t0, the product trend chart of the historical product between t0-t and t0 is determined, and the feature category is determined to be steady growth based on the product trend chart. In the case that user A's historical products only include this product, the intended feature category of user A is determined to be steady growth.
[0095] Figure 3C The product trend chart of candidate products determined by the product recommendation method according to an embodiment of the present disclosure is schematically shown.
[0096] like Figure 3C As shown, at time t1, a product is recommended to user A, and the product is used as a candidate product. Based on multiple preprocessed resource values between t1-t and t1, the product trend chart of the candidate product between t0-t and t0 is determined, and the feature category is determined to be steady growth based on the product trend chart. Since the feature category of the product is the same as the intended feature category of user A, the candidate product can be determined as the target product, and since user A has purchased the product, the product is not recommended to user A. Since the feature category of the product is different from the intended feature category of user B, the product is not recommended to user B. In the case that the intended feature category of user C is steady growth and user C has not purchased the product, the product is recommended to user C.
[0097] Based on the above product recommendation method, the present disclosure also provides a product recommendation device. Figure 4 The device is described in detail.
[0098] Figure 4 The structural block diagram of the product recommendation device according to an embodiment of the present disclosure is schematically shown.
[0099] like Figure 4As shown, the product recommendation device 400 of this embodiment includes a historical product determination module 410 , a category determination module 420 , a target product determination module 430 and a product recommendation module 440 .
[0100] The historical product determination module 410 is used to determine at least one historical product purchased by the target user based on the user historical transaction information of the target user, wherein the user historical transaction information includes the transaction time when the target user purchased the historical product. In one embodiment, the historical product determination module 410 can be used to perform the operation S210 described above, which will not be repeated here.
[0101] The category determination module 420 is used to determine the intended feature category of the target user based on the product trend chart of at least one historical product in a predetermined time period before the transaction time. In one embodiment, the category determination module 420 can be used to perform the operation S220 described above, which will not be repeated here.
[0102] The target product determination module 430 is used to determine at least one target product from multiple candidate products based on the intended feature category and the feature categories of each of the multiple candidate products, wherein the feature categories of each of the multiple candidate products are determined based on the product trend charts of each of the multiple candidate products within a predetermined time period before the current moment. In one embodiment, the target product determination module 430 can be used to perform the operation S230 described above, which will not be repeated here.
[0103] The product recommendation module 440 is used to recommend the target product to the target user when the historical products do not include the target product. In one embodiment, the product recommendation module 440 can be used to perform the operation S240 described above, which will not be described in detail here.
[0104] According to an embodiment of the present disclosure, the target product determination module 430 includes a feature matching submodule and a target product determination submodule.
[0105] The feature matching submodule is used to match the feature categories of multiple candidate products with the intended feature categories to obtain matching results corresponding to each of the multiple candidate products. When the feature category of the candidate product is the same as the intended feature category, the matching result of the candidate product indicates a successful match.
[0106] The target product determination submodule is used to determine the candidate product corresponding to the successfully matched matching result as the target product.
[0107] According to an embodiment of the present disclosure, the category determination module 420 includes a first category determination submodule and a second category determination submodule.
[0108] The first category determination submodule is used to determine the feature category of the historical product based on the product trend chart of the historical product within a predetermined time period before the transaction time.
[0109] The second category determination submodule is used to determine the feature category to which the feature category of the historical product belongs as the intended feature category of the target user.
[0110] According to an embodiment of the present disclosure, the category determination module 420 includes a third category determination submodule, a quantity determination submodule, and a fourth category determination submodule.
[0111] The third category determination submodule is used to determine the characteristic categories of the plurality of historical products based on their respective product trend charts within a predetermined time period before the transaction moment.
[0112] The quantity determination submodule is used to determine the quantity of historical products included in each of the multiple feature categories.
[0113] The fourth category determination submodule is used to determine the feature category including the most historical products as the intended feature category of the target user.
[0114] According to an embodiment of the present disclosure, the target product determination module 430 includes a cluster center determination submodule and a feature category determination submodule.
[0115] The cluster center determination submodule is used to cluster multiple product trend charts to obtain multiple cluster centers.
[0116] The feature category determination submodule is used to determine the feature categories of multiple candidate products based on the features of each product trend chart and multiple cluster centers.
[0117] According to an embodiment of the present disclosure, the feature category determination submodule includes a distance determination unit and a feature category determination unit.
[0118] The distance determination unit is used to determine the Euclidean distances between the characteristics of each product trend graph and multiple cluster centers.
[0119] The feature category determination unit is used to determine the feature category corresponding to the cluster center with the smallest Euclidean distance as the feature category of the candidate product corresponding to the product trend chart.
[0120] According to an embodiment of the present disclosure, the product recommendation device 400 further includes a resource value determination module and a data preprocessing module.
[0121] The resource value determination module is used to obtain, for each candidate product, a plurality of resource values of the candidate product before the current moment.
[0122] The data preprocessing module is used to preprocess multiple resource values to obtain multiple preprocessed resource values when the number of resource values is greater than a predetermined number, wherein the predetermined number corresponds to a predetermined time period, and the preprocessing includes data completion.
[0123] According to an embodiment of the present disclosure, the product recommendation device 400 further includes a first trend graph determination module and a second trend graph determination module.
[0124] The first trend chart determination module is used to determine the product trend charts of multiple candidate products within a predetermined time period before the current moment based on multiple preprocessed resource values.
[0125] The second trend chart determination module is used to determine the product trend chart of at least one historical product within a predetermined time period before the transaction time based on multiple preprocessed resource values and transaction times.
[0126] According to an embodiment of the present disclosure, any multiple modules of the historical product determination module 410, the category determination module 420, the target product determination module 430, and the product recommendation module 440 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the historical product determination module 410, the category determination module 420, the target product determination module 430, and the product recommendation module 440 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in an appropriate combination of any of them. Alternatively, at least one of the historical product determination module 410, the category determination module 420, the target product determination module 430, and the product recommendation module 440 may be at least partially implemented as a computer program module, which may perform a corresponding function when executed.
[0127] Figure 5 A block diagram of an electronic device suitable for implementing a product recommendation method according to an embodiment of the present disclosure is schematically shown.
[0128] like Figure 5As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0129] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0130] According to an embodiment of the present disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the I / O interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage portion 508 as needed.
[0131] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0132] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.
[0133] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present disclosure.
[0134] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 501. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0135] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0136] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0137] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0138] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0139] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0140] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A product recommendation method, characterized in that: The method comprises: Determine at least one historical product purchased by the target user based on the target user's historical transaction information, wherein the user's historical transaction information includes the transaction time when the target user purchased the historical product; Determining the intended feature category of the target user based on a product trend chart of at least one of the historical products within a predetermined time period before the transaction moment; Determining at least one target product from the plurality of candidate products based on the intended feature category and the feature categories of each of the plurality of candidate products, wherein the feature categories of each of the plurality of candidate products are determined based on the respective product trend charts of the plurality of candidate products within the predetermined time period before the current moment; and In a case where the historical products do not include the target product, the target product is recommended to the target user.
2. The method according to claim 1, characterized in that The step of determining at least one target product from the plurality of candidate products based on the intended feature category and the feature categories of the plurality of candidate products comprises: Matching the feature categories of each of the plurality of candidate products with the intended feature category to obtain matching results corresponding to each of the plurality of candidate products, wherein when the feature category of the candidate product is the same as the intended feature category, the matching result of the candidate product indicates a successful match; and The candidate product corresponding to the successfully matched matching result is determined as the target product.
3. The method according to claim 1, characterized in that: In the case that the number of the historical product is one, determining the intention feature category of the target user based on a product trend chart of at least one of the historical products within a predetermined time period before the transaction moment includes: Determining a feature category of the historical product based on a product trend chart of the historical product within a predetermined time period before the transaction moment; and The feature category to which the feature category of the historical product belongs is determined as the intended feature category of the target user.
4. The method according to claim 1, characterized in that: In the case that the number of the historical products is greater than one, determining the intention feature category of the target user based on a product trend chart of at least one of the historical products within a predetermined time period before the transaction moment includes: Determining the characteristic categories of the plurality of historical products based on their respective product trend charts within a predetermined time period before the transaction moment; determining the number of the historical products included in each of the plurality of the feature categories; and The feature category including the most historical products is determined as the intended feature category of the target user.
5. The method according to claim 1, characterized in that: The characteristic categories of each of the plurality of candidate products are obtained in the following manner, including: Clustering the plurality of product trend graphs to obtain a plurality of cluster centers; and Based on the characteristics of each of the product trend charts and the multiple cluster centers, the characteristic categories of the multiple candidate products are determined.
6. The method according to claim 5, characterized in that The determining of the feature categories of the plurality of candidate products based on the features of each of the product trend graphs and the plurality of cluster centers includes: For each of the product trend graphs, determining the Euclidean distances between the features of the product trend graph and the multiple cluster centers; and The feature category corresponding to the cluster center with the smallest Euclidean distance is determined as the feature category of the candidate product corresponding to the product trend chart.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: For each of the candidate products, obtaining a plurality of resource values of the candidate product before the current moment; and In the case that the number of the resource values is greater than a predetermined number, the multiple resource values are preprocessed to obtain a plurality of preprocessed resource values, wherein the predetermined number corresponds to the predetermined time period, and the preprocessing includes data completion.
8. The method according to claim 7, characterized in that The method further comprises: Determining the product trend graphs of the plurality of candidate products within a predetermined time period before a current moment based on the plurality of preprocessed resource values; and Based on the multiple preprocessed resource values and the transaction time, a product trend chart of each of the at least one historical product within a predetermined time period before the transaction time is determined.
9. A product recommendation device, characterized in that: The device comprises: A historical product determination module, configured to determine at least one historical product purchased by the target user based on the user historical transaction information of the target user, wherein the user historical transaction information includes the transaction time when the target user purchased the historical product; A category determination module, configured to determine the intended feature category of the target user based on a product trend chart of at least one of the historical products within a predetermined time period before the transaction moment; a target product determination module, configured to determine at least one target product from the plurality of candidate products based on the intended feature category and the feature categories of the plurality of candidate products, wherein the feature categories of the plurality of candidate products are determined based on the product trend charts of the plurality of candidate products within the predetermined time period before the current moment; and A product recommendation module is used to recommend the target product to the target user when the historical products do not include the target product.
10. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, The method is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
