Method, medium and device for optimizing products recommended to users based on clustering labels

By optimizing the recommendation method through clustering tags, precise user tags and recommendation models are generated, which solves the problem of inaccurate recommendation results in the existing technology and achieves more efficient product push that meets user needs.

CN118013120BActive Publication Date: 2024-09-24DINGDIAN SOFTWARE FUJIAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410163487.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-05
Publication Date
2024-09-24
Estimated Expiration
2044-02-05

AI Technical Summary

Technical Problem

Existing product recommendation methods take a lot of time and the recommendation results are not accurate enough to effectively meet user needs. In particular, they fail to consider the impact of tags on recommendation results and changes in user interests.

Method used

Using a method based on clustering tags, preprocessing is done by obtaining the browsing data of corporate users, using a cluster analysis algorithm to generate first-level tags, and using decision trees to generate second-level tags such as marketing, risk, and preference, and establishing a product recommendation model. User purchasing behavior and historical data, optimize recommendation results, and regularly update labels to adapt to user changes.

Benefits of technology

It improves the accuracy of recommendation results and the matching of user needs, shortens network training time, optimizes label quality and the fit of user portraits, and enhances the efficiency and cost-effectiveness of product push.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118013120B
    Figure CN118013120B
Patent Text Reader

Abstract

The present invention discloses a method, medium and device for optimizing products recommended to users based on clustering labels, the method comprising: obtaining browsing data of enterprise users and preprocessing to obtain a feature set; clustering analysis of the feature set using a clustering analysis algorithm to obtain enterprise user classification and primary labels; processing the primary labels through a decision tree to obtain secondary labels, the secondary labels including marketing labels, risk labels and preference labels; establishing a product recommendation model based on the secondary labels, recording the purchase behavior of a certain enterprise user for a certain product, calculating other enterprise user sets that are associated with the enterprise user and have not purchased the product, and recommending the product to other enterprise users in the other enterprise user sets that meet the first preset condition. The present invention generates secondary labels using a decision tree, effectively reduces the number of labels and improves the quality of labels, and optimizes the network training speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a method, medium and device for optimizing products recommended to users based on clustering tags. Background Art

[0002] With the rapid development of Internet technology, the amount of Internet information is also growing rapidly. In the past, when Internet users wanted to obtain information, they needed to search for content-related information on the Internet. Now, Internet users can search for the information they need according to their actual needs. However, it is difficult to obtain the latest information that meets the needs of Internet users from the massive amount of information on the Internet, which is one of the problems that need to be solved.

[0003] When users browse websites, they leave behind a variety of network data, which are automatically recognized and collected by the Internet, such as the preferences, living habits, occupations, consumption levels, etc. of network users. The network platform will select effective information data as tags for the network user's personal information, and then build an abstract model belonging to the network user based on the tag information, and then recommend the products that the user is interested in. The current mainstream recommendation algorithms include content-based recommendation, collaborative filtering recommendation, rule-based recommendation, hybrid recommendation, etc.

[0004] Traditional recommendation algorithms do not take into account the impact of tags on recommendation results. They only unilaterally explore user interests based on their ratings of resources, fail to effectively divide user interests, and also ignore changes in user interests over time. They take a lot of time, and the products recommended to users do not meet user needs very well. Summary of the invention

[0005] In view of the above problems, the present application provides a technical solution for security log alarms based on smart tags to solve the problem that the existing product recommendation method takes a lot of time, the recommended information is not accurate enough, and cannot meet user needs.

[0006] To achieve the above objectives, in a first aspect, the present application provides a method for optimizing products recommended to users based on clustering tags, the method comprising:

[0007] Obtain and preprocess the browsing data of enterprise users to obtain a feature set;

[0008] Using a cluster analysis algorithm to perform cluster analysis on the feature set to obtain enterprise user classification and primary labels;

[0009] Processing the primary labels through a decision tree to obtain secondary labels, wherein the secondary labels include marketing labels, risk labels, and preference labels;

[0010] A product recommendation model is established based on the secondary tags, the purchase behavior of a certain enterprise user for a certain product is recorded, and a set of other enterprise users who are associated with the enterprise user and have not yet purchased the product is calculated, and the product is recommended to other enterprise users in the set of other enterprise users who meet the first preset condition, where the first preset condition is the correlation between the current enterprise user and other enterprise users for the same product calculated based on the secondary tags.

[0011] Further, the decision tree includes a first decision tree, a second decision tree and a third decision tree;

[0012] The first decision tree corresponds to the output of the marketing tag, the opportunity nodes of the first decision tree are the business capabilities and business risks of the enterprise user, and the endpoint of the first decision tree is the risk level of the product that the enterprise user can bear;

[0013] The second decision tree outputs the risk label accordingly, the opportunity nodes of the second decision tree are the time periods and average transaction amounts of browsing product information in the historical data of enterprise users, and the endpoints of the second decision tree are the ideal time periods and transaction amount levels for recommending products;

[0014] The third decision tree corresponds to the output of the preference label, the opportunity nodes of the third decision tree are the search keyword information and the time periods for browsing product information in the enterprise user's historical data, and the endpoints of the third decision tree are the product types that users like to browse.

[0015] Furthermore, the method comprises:

[0016] Regularly obtain relevant data of the enterprise user, and when the second preset condition is met, update the secondary tag corresponding to the enterprise user;

[0017] The second preset condition includes any one or more of the following:

[0018] Changes in the business capabilities and operating risks of corporate users;

[0019] The time period for browsing product information and the average transaction amount in the historical data of enterprise users have changed;

[0020] Changes in the search keyword information and the time period for browsing product information in the enterprise user's historical data;

[0021] It is detected that the risk type of the product purchased by the enterprise user does not match the risk level corresponding to the current enterprise user and the number of purchases exceeds the preset number.

[0022] Furthermore, the adopting a cluster analysis algorithm to perform cluster analysis on the feature set includes:

[0023] Perform cluster analysis on the feature set using the k-means clustering algorithm to obtain a preliminary classification result;

[0024] All the first-level labels belonging to the same cluster in the preliminary analysis results are used as the cluster center and the similarity is recalculated until the cluster center no longer changes, and the data that meet the preset specific values ​​are classified into first-level labels to obtain the first-level label cluster set C = {c1, c2, ...c n}.

[0025] Furthermore, the method comprises:

[0026] The Pearson correlation coefficient is used to analyze the correlation between the primary label data. The specific calculation method is shown in formula (1). The formula (1) is as follows:

[0027] simi=cov(X,Y) / (std(X)*std(Y))

[0028] Among them, cov(X, Y) represents the covariance of X and Y, std(X) and std(Y) represent the standards of X and Y respectively, and simi represents the Pearson coefficient, which ranges from -1 to 1. 1 represents a perfect positive correlation, 0 represents no correlation, and -1 represents a perfect negative correlation.

[0029] Furthermore, the method comprises:

[0030] Recommend products to associated users according to formula (2), which is as follows:

[0031] T m*n =[w(e1,r1),w(e1,r2),...,w(e1,r n );

[0032] w(e2, r1), w(e2, r2),..., w(e2, r n );

[0033] …

[0034] w(e m , r1), w(e m , r2), ..., w(e m , r n );]

[0035]

[0036]

[0037] p j =p j +q1*A+q2*(B+C)+q3*D

[0038] Re=max(p j ), 0<j<n+1

[0039] Among them, T m*n is an association matrix, the row vector of which represents the association between the same enterprise user and different products, and the column vector of which represents the association between different users and the same product. i is the secondary label corresponding to the i-th user, 0<i<m+1, r j is the jth product, 0<j<n+1, w(e,r) is the weight of the correlation between the user and the product, p j is the recommendation degree of the jth product, Re is the product to be recommended to the enterprise user, m represents the number of enterprise users, and n represents the number of products; A is the average value of all users’ preferences for the current product, B is the average value of the scores collected from all users for the current product, C is the transaction frequency of the activity, and D is the corresponding user preference; q1 and q2 are custom weight values ​​(0, 1), and q3 is the inverse of the user stickiness corresponding to the interested users.

[0040] Furthermore, the method comprises:

[0041] The data in the first-level label is visualized in the form of a dashboard, and the content of the visualization includes any one or more of the number of transaction registrations corresponding to the enterprise users, the total transaction amount and the average transaction amount of the enterprise users, and the geographical distribution of the enterprise users and the industry distribution of the enterprise customers.

[0042] Furthermore, the relevance of the enterprise user is determined based on the following factors: the similarity of the secondary tags corresponding to the enterprise user and the geographical location area where the enterprise user is located;

[0043] The method comprises:

[0044] When a purchase behavior of a business user in a certain geographical location area for a certain recommended product is detected, the recommendation weight of the recommended product for business users in the geographical location area who have not purchased the recommended product is adaptively increased.

[0045] In a second aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for optimizing products recommended to users based on clustering labels as described in the first aspect of the present application.

[0046] In a third aspect, the present application provides an electronic device having a computer program stored thereon, comprising a processor and a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by the processor, the method for optimizing products recommended to users based on clustering labels as described in the first aspect of the present application is implemented.

[0047] Different from the prior art, the method, medium and device for optimizing the products recommended to users based on clustering labels in the above technical scheme include: obtaining the browsing data of enterprise users and preprocessing it to obtain a feature set; clustering analysis is performed on the feature set using a clustering analysis algorithm to obtain enterprise user classification and primary labels; the primary labels are processed through a decision tree to obtain secondary labels, and the secondary labels include marketing labels, risk labels and preference labels; a product recommendation model is established based on the secondary labels, the purchase behavior of a certain enterprise user for a certain product is recorded, and a set of other enterprise users that are associated with the enterprise user and have not yet purchased the product are calculated, and the product is recommended to other enterprise users in the set of other enterprise users who meet the first preset condition.

[0048] Compared with the prior art, the present invention has the following significant features: (1) pre-processing the collected data and generating primary labels, extracting a feature set that is more conducive to analysis, and converting a large amount of data into data that can represent user behavior characteristics; (2) customizing the rules of the decision tree and generating three secondary labels that can represent user behavior, effectively reducing the number of labels while improving the label quality, optimizing the network training speed, and at the same time, the hierarchical relationship between the primary and secondary labels can ensure the quality of clustering; (3) combining historical label data and the user's recent operation data to update the secondary labels, so that the user's label data can be adjusted regularly to better fit the user's recent operation habits; (4) optimizing the recommendation model based on collaborative filtering, using the user's preference for the product and the user's feedback on the recommendation results to update the product's recommendation value to obtain better prediction results, and using the primary labels for data visualization analysis, which can better reflect the user's characteristics and preferences than traditional methods.

[0049] The above-mentioned records related to the invention content are only an overview of the technical solution of the present application. In order to enable ordinary technicians in the field to more clearly understand the technical solution of the present application, and then implement it according to the text of the specification and the contents recorded in the drawings, and to make the above-mentioned purpose and other purposes, features and advantages of the present application easier to understand, the following is an explanation in combination with the specific implementation mode and drawings of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The drawings are only used to illustrate the principles, implementation methods, applications, characteristics and effects of the specific embodiments of the present invention and other related contents, and shall not be considered as limiting the present application.

[0051] In the drawings of the specification:

[0052] Figure 1 A flowchart of a method for optimizing products recommended to users based on cluster labels according to the first exemplary embodiment of the present application;

[0053] Figure 2 A flowchart of a method for optimizing products recommended to users based on cluster labels according to a second exemplary embodiment of the present application;

[0054] Figure 3 A flowchart of a method for optimizing products recommended to users based on cluster labels according to a third exemplary embodiment of the present application;

[0055] Figure 4 A schematic diagram of a recommendation model according to an exemplary embodiment of the present application;

[0056] Figure 5 A schematic diagram of an electronic device according to a first exemplary embodiment of the present application;

[0057] Figure 6 A schematic diagram of a decision tree rule for a secondary tag according to an exemplary embodiment of the present application;

[0058] The reference numerals in the above drawings are described as follows:

[0059] 10. Electronic equipment;

[0060] 101. Processor;

[0061] 102. Storage medium. DETAILED DESCRIPTION

[0062] In order to explain in detail the possible application scenarios, technical principles, specific schemes that can be implemented, and the purposes and effects that can be achieved, the following is a detailed description of the specific embodiments listed in conjunction with the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0063] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.

[0064] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which this application belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit this application.

[0065] In the description of this application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that three relationships may exist, for example, A and / or B, which means: A exists, B exists, and A and B exist at the same time. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" logical relationship.

[0066] In the present application, terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship of quantity, priority or sequence between these entities or operations.

[0067] Without further limitations, in this application, the words "include", "comprises", "has" or other similar open-ended expressions used in sentences are intended to cover non-exclusive inclusion. These expressions do not exclude the presence of additional elements in the process, method or product including the elements, so that the process, method or product including a series of elements may include not only those limited elements, but also other elements not explicitly listed, or also include elements inherent to such process, method or product.

[0068] Similar to the understanding in the Examination Guidelines, in this application, expressions such as "greater than", "less than", "exceed" and the like are understood to exclude the number itself; expressions such as "above", "below", "within" and the like are understood to include the number itself. In addition, in the description of the embodiments of this application, "multiple" means more than two (including two), and similar expressions related to "multiple" are also understood in this way, such as "multiple groups", "multiple times", etc., unless otherwise clearly and specifically limited.

[0069] In the description of the embodiments of the present application, space-related expressions used, such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or position relationship based on the orientation or position relationship shown in the specific embodiments or drawings, and are only for the convenience of describing the specific embodiments of the present application or facilitating the reader's understanding, and do not indicate or imply that the referred device or component must have a specific position, a specific orientation, or be constructed or operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.

[0070] Unless otherwise expressly specified or limited, in the description of the embodiments of the present application, the terms such as "install", "connect", "connect", "fix", "set", etc. used should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integrated setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For technicians in the technical field to which the present application belongs, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0071] like Figure 1 As shown, in a first aspect, the present application provides a method for optimizing products recommended to users based on clustering tags, the method comprising:

[0072] First, proceed to step S101 to obtain browsing data of enterprise users and perform preprocessing to obtain a feature set;

[0073] Then, step S102 is performed to perform cluster analysis on the feature set using a cluster analysis algorithm to obtain enterprise user classification and primary labels;

[0074] Then, step S103 is entered to process the first-level labels through a decision tree to obtain second-level labels, which include marketing labels, risk labels, and preference labels;

[0075] Then enter step S104 to establish a product recommendation model based on the secondary tag, record the purchase behavior of a certain enterprise user for a certain product, calculate the set of other enterprise users who are associated with the enterprise user and have not purchased the product, and recommend the product to other enterprise users in the set of other enterprise users who meet the first preset condition. The first preset condition is the correlation between the current enterprise user and other enterprise users for the same product calculated based on the secondary tag.

[0076] In step S101, browsing data refers to the data of users visiting business websites and the data generated by the Internet, which may specifically include the number of transaction registrations, the number of transaction completions, the cumulative transaction amount, the average transaction amount, the browsing time, the number of searches, the number of follows, the number of shares, the number of activity participations, the number of quotations, as well as the acquired business information of the corporate users (such as basic information, registered capital, paid-in capital), financial data (operating income, profit, assets and liabilities) and operating risks (guarantee information, equity pledge).

[0077] In step S102, the preprocessing includes standardizing the browsing data for further analysis. For the data obtained in step S101, if labels are directly generated, there are the following problems: first, the amount of data is relatively large, and it takes a lot of time to train the network; second, the data itself is not representative enough. If labels are generated directly, it is difficult to generate a user portrait that can reflect the characteristics of current enterprise users. Therefore, it is necessary to reconstruct the features of these data, extract a feature set that is more conducive to subsequent analysis, and improve the process of establishing the first-level label.

[0078] In order to obtain more dimensional analysis angles, different data can be further divided by referring to different dimensions. For example, for browsing time, the time points of daily visits can be divided into several time periods; for search times, the keywords that users are interested in can be extracted; the activities that users are most interested in can be extracted from the number of activity participations, and the quotation habits of users can be extracted from the number of quotations. The amount can be divided into several intervals, and the intervals where the average transaction amount is mainly concentrated can be extracted. The reconstructed data can be aggregated into a feature set T = {t1, t2, ...t n}; This feature set not only includes the personal information, financial capabilities, and risk information of corporate users, but also includes the company's transaction information, information on activities of interest, etc., laying the foundation for the subsequent generation of corporate user portraits.

[0079] At the same time, this application also divides the pages of the business website according to different functions, and makes specific divisions according to different business scenarios such as transactions and product recommendations, so as to facilitate the association of tags and pages later. After the feature reconstruction, the data can be analyzed through simple analysis and statistics to analyze the current user's interests, the time of browsing the website, the type of activities they are interested in, etc.

[0080] Furthermore, in some embodiments, the Pearson correlation coefficient may be used to analyze the correlation between the primary tag data. The specific calculation method is shown in formula (1). Formula (1) is as follows:

[0081] simi=cov(X,Y) / (std(X)*std(Y))

[0082] Among them, cov(X, Y) represents the covariance of X and Y, std(X) and std(Y) represent the standards of X and Y respectively, and simi represents the Pearson coefficient, which ranges from -1 to 1. 1 represents a perfect positive correlation, 0 represents no correlation, and -1 represents a perfect negative correlation.

[0083] Since the first-level labels mainly represent the user's operations and personal information, but cannot reflect the user's operation details, on this basis, this application constructs different decision trees according to different types of labels, takes the first-level labels as the input of the decision tree, and generates second-level labels. The generated second-level labels include marketing labels, risk labels and user preferences, and then establishes a recommendation model based on the second-level labels to achieve accurate and fast push of financial information and product information to users who are most likely to generate sales behavior, thereby effectively improving efficiency and reducing costs.

[0084] In step S103, the decision tree includes a first decision tree, a second decision tree and a third decision tree; the first decision tree corresponds to outputting the marketing label, the opportunity nodes of the first decision tree are the business capabilities and operating risks of the enterprise users, and the endpoint of the first decision tree is the risk level of the products that the enterprise users can bear; the second decision tree corresponds to outputting the risk label, the opportunity nodes of the second decision tree are the time periods for browsing product information in the historical data of the enterprise users and the average transaction amount, and the endpoint of the second decision tree is the ideal time period for recommending products and the transaction amount level; the third decision tree corresponds to outputting the preference label, the opportunity nodes of the third decision tree are the search keyword information and the time periods for browsing product information in the historical data of the enterprise users, and the endpoint of the third decision tree is the product types that users like to browse.

[0085] Taking risk labels as an example, assuming that a certain corporate user has an average profit of more than 5 million yuan over five years, has certain assets and liabilities, and the amount of liabilities is less than the profit value, according to the decision tree of the risk label of this application, it can be concluded that the risk label of the enterprise is conservative; for users who have purchased financial products, calculate the risk type of the most purchased products in the past week. If the user's original risk label is conservative, and the most purchased product type in recent times is medium risk, then update the risk label to medium risk. Secondary labels are more detailed label items, which effectively reduce the number of labels while improving the quality of labels. The labels can meet the needs of users rather than just user habits, and can better match suitable products when using the recommendation model in the future. The input at the root of the decision tree is C = {c1, c2, ...c n}, Q = {(c, r)}, c∈C, e∈E represents the connection relationship between the first and second level labels, which is learned by the decision tree, and branches and pruning are performed according to the classification rules, and the output second level label set E = {e1, e2, ...e m}.

[0086] In step S104, according to the generated user portrait (user portrait is a set of user tags), if the characteristics of the product match the marketing tag of the user portrait, and the user's risk tag is within the risk level range of the product, the corresponding product recommendation is made. Then, using the collaborative filtering algorithm, according to the users with the same tag, for users who have purchased a certain financial product, the similarity between two users is first calculated using the cosine of the angle, and then the similarity is weighted and recommended to users with the same tag but who have not yet purchased.

[0087] For example, for financial product A, the similarity obtained by enterprise user A according to the recommendation algorithm of this application is 0.8, and the similarity of enterprise user B is 0.7, so the comprehensive recommendation degree of product A is 1.5; for financial product B, the similarity obtained by enterprise user C according to the recommendation algorithm of this application is 0.3, and the similarity of enterprise user D is 0.6, so the recommendation degree of product B is 0.9. For product A and product B, the method of this application will give priority to recommending financial product A, and will store the similarities of the remaining financial products in the database, and then combine the user's feedback to decide whether to recommend the remaining financial products after a period of time. The labels used by traditional collaborative filtering algorithms are similar to the primary labels mentioned in this application, and the recommendation results obtained cannot match user needs well. However, since this method uses secondary labels to calculate similarity, and the secondary labels are more refined label items obtained on the basis of primary labels, the matching of recommendation results with user needs can be greatly improved.

[0088] In this embodiment, the method further includes: regularly updating the current secondary label according to the received user operation instructions and the historical data of the secondary label, and continuously training the relevant parameters of the neural network when the risk preference label is updated; for the generation of the secondary label, the initialization step and the update step are separate. When initializing the secondary label, the present application uses a decision tree to generate the initial prediction result, and when updating the secondary label, it uses the historical label and the operation data of some users to calculate. Figure 6 As shown, the specific calculation formula includes:

[0089] Risk label prediction = a*historical risk label;

[0090] Marketing tag prediction = b*historical marketing tags + adjustment factor*browsing frequency of historical recommended activities;

[0091] User preference prediction = c1*initial prediction of decision tree + c2*historical activity participation frequency + c3*historical browsing frequency;

[0092] For the update of risk labels, the a value in the above calculation formula is adjusted in real time according to the obtained user's participation in high-risk activities. The user's participation in high-risk activities includes the number of transactions and views of the user in high-risk activities. If the user's participation is high, the a value is appropriately increased; if the participation is low, the a value is appropriately decreased. Preferably, the initial value of the a value can be set to 0.6.

[0093] For the update of marketing labels, the update process is similar to that of risk labels. The b value in the above calculation formula is adjusted in real time based on the user's participation in historical recommendation activities. The user's participation in historical recommendation activities includes the number of transactions and views of the historical recommendation activities by the user. The adjustment factor is generated based on the user's feedback results. For example, questionnaires can be conducted regularly on users, and the adjustment factor can be enlarged or reduced based on the satisfaction feedback from users. The initial value of the adjustment factor can be set to 0.5.

[0094] For the update of user preference labels, the weight values ​​(i.e., the values ​​of c1, c2, c3, with initial values ​​of 0.6, 0.5, and 0.3, respectively) are similar to those of risk labels and marketing labels, except for the difference in training. For the calculation of user preference labels, after the results are generated, they will continue to be used as training sets to train the decision tree corresponding to the label. In other words, each time the user preference label is updated, the corresponding data is first input into the decision tree as a test set to obtain an initial prediction result, and then the prediction result is optimized according to the above formula to obtain a further prediction result; then the prediction result value (i.e., the batch data of [primary label; secondary label] corresponding to the user preference label) is used as the input user preference decision tree to continue training, realizing the optimization process of the label.

[0095] Taking user preference labels as an example, for a certain user, if the initial prediction result of the decision tree is short-term bonds (assuming that the corresponding value of short-term bonds in this embodiment is 5), the user has recently participated in five bond-related activities, and the average number of views of this type of activity is 20 times a day, then the new prediction result can be calculated as 0.6*5+0.5*(5 / number of recommended bond activities in the past week)+0.3*(20 / average daily views in the past month), and the calculated value is used as the result to continue training the decision tree.

[0096] Adding influencing factors and user feedback results to the recommendation model based on the collaborative filtering algorithm can make the predicted data more accurate, mainly including three aspects: the overall preference of customers, user feedback and the preference of users with lower stickiness, and visual analysis of the data; user feedback includes collected user rating data and the transaction frequency of user activities in the database mobile phone, and the transaction frequency is defined as the ratio of the number of activity transactions to the total number of activities. The labels used by the traditional collaborative filtering algorithm are similar to the primary labels mentioned in this method, and the recommendation results obtained cannot match user needs well. However, the method of this application uses secondary labels to calculate similarity. The secondary labels are more refined label items obtained on the basis of the primary labels, and the matching of the recommendation results with user needs can be greatly improved.

[0097] In this embodiment, the recommendation relationship model between products and users is as follows: Figure 4 Assume that the set of financial products is R = {r1, r2, ...r m}, products can be recommended to associated users according to formula (2), which is as follows:

[0098] T m*n =[w(e1,r1),w(e1,r2),...,w(e1,r n );

[0099] w(e2, r1), w(e2, r2),..., w(e2, r n );

[0100] …

[0101] w(e m , r1), w(e m , r2), ..., w(e m , r n );]

[0102]

[0103]

[0104] p j =p j +q1*A+q2*(B+C)+q3*D

[0105] Re=max(p j ),0 <j<n+1

[0106] Among them, T m*n is an association matrix, the row vector of which represents the association between the same enterprise user and different products, and the column vector of which represents the association between different users and the same product.i is the secondary label corresponding to the i-th user, 0<i<m+1, r j is the jth product, 0<j<n+1, w(e,r) is the weight of the correlation between the user and the product, p j is the recommendation degree of the jth product, Re is the product to be recommended to the enterprise user, m represents the number of enterprise users, and n represents the number of products; A is the average value of all users’ preferences for the current product, B is the average value of the scores collected from all users for the current product, C is the transaction frequency of the activity, and D is the corresponding user preference; q1 and q2 are custom weight values ​​(0,1), and q3 is the inverse of the user stickiness corresponding to the interested users.

[0107] This application first uses a collaborative filtering algorithm to obtain an initial recommendation value, and then updates and adjusts the initial recommendation value in real time based on three factors. The three factors are mainly the comprehensive customer preference, user feedback, and the preference of users with lower stickiness. The comprehensive customer preference is the average of the preference of all users in the system for the product. User feedback is the feedback of the recommended user on the historically recommended products. User feedback includes the user scoring data we collected and the transaction frequency of user activities on the database phone. The transaction frequency is defined as the ratio of the number of activity transactions to the total number of activities. For example, the comprehensive customer preference is 1-5 from low to high, and the number of transactions and visits of each user to the activity is divided into five intervals, corresponding to the five levels of preference, and then the average is taken to obtain the comprehensive preference. User feedback is the rating of the historical recommended activities by the receiving users, from low to high, 1-5.

[0108] Therefore, the recommended product values ​​are updated as shown in the following table:

[0109]

[0110] Table 1 Product recommended value update table

[0111] The recommendation model is continuously optimized according to the algorithm. For a product, the more customers like it, the greater the probability that new users will like it. From the perspective of user stickiness, if users with low stickiness like it, the greater the probability that users with high stickiness will like it. For example, for a financial product, users who have purchased it first use the cosine of the angle to calculate the similarity between two users, then weight the similarity to get an initial recommendation value for the product, and then use the expression proposed by this method to update the recommendation value. It should be noted that all values ​​must be standardized after calculation.

[0112] Regarding the calculation of the initial recommendation value, based on a company's actual business data, for financial product A, we obtained a similarity of 0.8 for corporate user one and 0.7 for corporate user two based on the recommendation algorithm, so the initial recommendation value of product A is 1.5; for financial product B, we obtained a similarity of 0.3 for corporate user three and 0.6 for corporate user four based on the recommendation algorithm, so the initial recommendation value of product B is 0.9. After getting the initial value, this method updates the value according to the expression. Assume that the average preference of all users of the system for products A and B in the past month is standardized to 0.48 and 0.6 respectively, the average rating of users who purchased products A and B is 4 points, the number of transactions of activities A and B in the past month is 35 and 20 respectively, and the total number of transactions in the past month is 1231. For all users of the system in the past month, the value of the weighted cumulative preference is standardized to 0.17 and 0.18 respectively. Then the comprehensive recommendation value of product A is 2.06, and the comprehensive recommendation value of product B is 1.5. Therefore, among products A and B, product A is finally recommended. Then, according to the clustering results of the first step, spark is used to realize data visualization. The visualization results include the number of customer transaction registrations, the total transaction amount and average transaction amount of customers, the geographical distribution of customers, the distribution of customers' industries, etc. The visualization results are presented in the form of a dashboard, which can intuitively reflect the user classification and data characteristics.

[0113] In certain embodiments, the method includes: regularly acquiring relevant data of enterprise users, and updating the secondary label corresponding to the enterprise user when a second preset condition is met; the second preset condition includes any one or more of the following: changes in the business capabilities and business risks of the enterprise user; changes in the time period for browsing product information and the average transaction amount in the enterprise user's historical data; changes in search keyword information and the time period for browsing product information in the enterprise user's historical data; it is detected that the risk type of the product purchased by the enterprise user does not match the risk level corresponding to the current enterprise user and the number of purchases exceeds the preset number.

[0114] In short, the latest user data of the enterprise user can be obtained regularly to recalculate the corresponding secondary label (including marketing label, risk label and preference label) of the enterprise user, so that relevant products can be recommended to the user more accurately based on the latest secondary label. For enterprise users who purchase financial products, for example, the risk type of the most purchased products in the past week can be calculated. If the original risk label of the enterprise user is conservative, and the most purchased product type in the recent period is medium risk, then the risk label of the enterprise user can be updated to medium risk.

[0115] In certain embodiments, such as Figure 2As shown, the clustering analysis of the feature set using a clustering analysis algorithm includes:

[0116] First, enter step S201 to perform cluster analysis on the feature set using the k-means clustering algorithm to obtain a preliminary classification result;

[0117] Then, step S202 is entered to take all the first-level labels belonging to the same cluster in the preliminary analysis results as the cluster center and recalculate the similarity until the cluster center no longer changes, and classify the data that meets the preset specific value to generate first-level labels, and obtain a first-level label cluster set.

[0118] Cluster analysis is an unsupervised learning method for dividing objects into classes or groups. The K-means clustering algorithm divides objects into k clusters and optimizes by minimizing the sum of the distances between the samples in each cluster and their cluster centers. In other embodiments, the clustering analysis method can also be a hierarchical clustering algorithm, DBSCAN (density clustering algorithm), GMM (Gaussian mixture model), OPTICS clustering analysis algorithm, etc. The hierarchical clustering algorithm is based on a strategy of gradually merging similar objects into larger clusters or dividing and conquering. Common hierarchical clustering methods include agglomeration (bottom-up) and splitting (top-down). The density clustering algorithm identifies high-density areas by defining density accessibility and density connectivity, and treats them as clusters. GMM (Gaussian mixture model) assumes that the data set consists of multiple Gaussian distributions, estimates the model parameters by maximizing the likelihood function, and assigns each sample to its most likely distribution. OPTICS is a clustering algorithm based on density accessibility and minimum distance, which can find clusters of any shape and does not require the number of clusters to be specified.

[0119] In some embodiments, the method includes: visually displaying the data in the primary tag in the form of a dashboard, wherein the content of the visual display includes any one or more of the number of transaction registrations corresponding to the enterprise user, the total transaction amount and average transaction amount of the enterprise user, and the geographical distribution of the enterprise user and the industry distribution of the enterprise customers. In this way, using the primary tag for data visualization analysis can better reflect the characteristics and preferences of users compared to traditional methods.

[0120] In some embodiments, the relevance of the enterprise user is determined based on the following factors: the similarity of the secondary tags corresponding to the enterprise user and the geographical location of the enterprise user; the method includes:

[0121] When a purchase behavior of a business user in a certain geographical location area for a certain recommended product is detected, the recommendation weight of the recommended product for business users in the geographical location area who have not purchased the recommended product is adaptively increased.

[0122] In the specific implementation, the enterprise users within the same area can be first recorded in the same enterprise user relationship table. For the first enterprise user to purchase a product, the initial value of the enterprise user's influence factor on the product is set to 0. Starting from a certain point in time, if other enterprise users (whose coordinates belong to the same area as the first enterprise user who purchased the product) browse or purchase the product again, the influence factor of the first enterprise user on the product will be adjusted. Specifically, if a later enterprise user browses the product once (in some embodiments, it can also be a product of the same type), the influence factor of other enterprise users whose transaction time point occurs before this browsing (including the first enterprise user and all enterprise users who have purchased the product from the first enterprise user to the current browsing behavior) on the product will be increased by 0.1; if the enterprise user who operates the product later purchases the product once, the influence factor of other enterprise users whose purchase time point occurs before this purchase will be increased by 1. In this way, through big data calculation and statistics, whenever an enterprise user executes an operation instruction on a product, the influence factor of each enterprise user on the product in the enterprise user relationship table corresponding to the enterprise user can be updated, and the influence factor distribution map of each enterprise user within the same regional coordinate position on a certain product can be obtained, and then product recommendations can be completed based on the influence factor distribution map, thereby considering the recommendation factors of spatial scope in addition to time, thereby improving the accuracy of product recommendations.

[0123] like Figure 3 As shown, the present invention discloses a method for optimizing products recommended to users based on clustering labels, which mainly includes: preprocessing data on customers' visits to business websites and Internet data, reconstructing features of the data, generating primary labels while clustering, and generating relatively rough user portraits while users are classified; using the primary labels to generate secondary labels through a decision tree, the secondary labels are more representative and closer to user behavior; finally, establishing a recommendation model in combination with the generated secondary labels, and using the primary labels to visualize and analyze user data, so as to accurately and quickly push financial information and product information to users who are most likely to generate sales behavior, thereby effectively improving efficiency, reducing costs, and achieving more efficient marketing activities.

[0124] The salient features of the present invention are: (1) pre-processing the collected data and generating primary labels, extracting a feature set that is more conducive to analysis, and converting a large amount of data into data that can represent user behavior characteristics; (2) customizing the rules of the decision tree and generating three secondary labels that can represent user behavior, effectively reducing the number of labels while improving the label quality, optimizing the network training speed, and at the same time, the hierarchical relationship between the primary and secondary labels can ensure the quality of clustering; (3) combining historical label data and the user's recent operation data to update the secondary labels, so that the user's label data can be regularly adjusted to better fit the user's recent operation habits; (4) optimizing the recommendation model based on collaborative filtering, using the user's preference for the product and the user's feedback on the recommendation results, updating the product's recommendation value to obtain better prediction results, and using the primary labels for data visualization analysis, which can better reflect the user's characteristics and preferences than traditional methods.

[0125] In a second aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for optimizing products recommended to users based on clustering labels as described in the first aspect of the present invention.

[0126] The computer-readable storage medium may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories.

[0127] The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD ROM); the magnetic surface memory can be a disk memory or a tape memory.

[0128] The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The computer-readable storage medium described in the embodiments of the present invention is intended to include these and any other suitable types of memory.

[0129] like Figure 5 As shown, in a third aspect, the present invention provides an electronic device 10, comprising a processor 101 and a storage medium 102, wherein a computer program is stored on the storage medium, and when the computer program is executed by the processor, the method for optimizing products recommended to users based on clustering labels as described in the first aspect of the present invention is implemented.

[0130] In some embodiments, the processor can be implemented by software, hardware, firmware or a combination thereof, and can use circuits, single or multiple application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), digital signal processing devices (Digital Signal Processing Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field Programmable Gate Array, FPGA), central processing units (Central Processing Unit, CPU), controllers, microcontrollers, at least one of microprocessors, so that the processor can execute part of the steps or all of the steps or any combination of the steps in the method of optimizing products recommended to users based on clustering labels described in the various embodiments of the present application.

[0131] Finally, it should be noted that although the above embodiments have been described in the specification and drawings of this application, this does not limit the scope of patent protection of this application. All technical solutions generated by replacing or modifying equivalent structures or equivalent processes based on the essential concept of this application using the contents recorded in the specification and drawings of this application, as well as directly or indirectly implementing the technical solutions of the above embodiments in other related technical fields, are included in the scope of patent protection of this application.

Claims

1. A method for optimizing products recommended to users based on clustering labels, characterized in that: The method comprises: Obtain and preprocess the browsing data of enterprise users to obtain a feature set; Using a cluster analysis algorithm to perform cluster analysis on the feature set to obtain enterprise user classification and primary labels; Processing the primary labels through a decision tree to obtain secondary labels, wherein the secondary labels include marketing labels, risk labels, and preference labels; Establish a product recommendation model based on the secondary tags, record the purchase behavior of a certain enterprise user for a certain product, calculate a set of other enterprise users who are associated with the enterprise user and have not purchased the product, and recommend the product to other enterprise users in the set of other enterprise users who meet a first preset condition, where the first preset condition is the degree of association between the current enterprise user and other enterprise users for the same product calculated based on the secondary tags; The decision tree includes a first decision tree, a second decision tree and a third decision tree; The first decision tree corresponds to the output of the marketing tag, the opportunity nodes of the first decision tree are the business capabilities and business risks of the enterprise user, and the endpoint of the first decision tree is the risk level of the product that the enterprise user can bear; The second decision tree outputs the risk label accordingly, the opportunity nodes of the second decision tree are the time periods and average transaction amounts of browsing product information in the historical data of enterprise users, and the endpoints of the second decision tree are the ideal time periods and transaction amount levels for recommending products; The third decision tree outputs the preference label accordingly, the opportunity nodes of the third decision tree are the search keyword information and the time period of browsing product information in the enterprise user's historical data, and the endpoint of the third decision tree is the product type that the user likes to browse; The method further comprises: Regularly obtain relevant data of enterprise users, and when the second preset condition is met, update the secondary label corresponding to the enterprise user, and train the relevant parameters of the neural network when the risk preference label is updated; The second preset condition includes any one or more of the following: Changes in the business capabilities and operating risks of corporate users; The time period for browsing product information and the average transaction amount in the historical data of enterprise users have changed; Changes in the search keyword information and the time period for browsing product information in the enterprise user's historical data; It is detected that the risk type of the product purchased by the enterprise user does not match the risk level corresponding to the current enterprise user and the number of purchases exceeds the preset number; Among them, the initialization step and the update step of the secondary label are separate. When the secondary label is initialized, the decision tree is used to generate the initial prediction result. When the secondary label is updated, the historical label and the operation data of some users are used for calculation. The specific calculation formula includes: Formula (x): Risk label prediction = a*historical risk label; Formula (y): Marketing tag prediction = b*historical marketing tag + adjustment factor*browsing frequency of historical recommended activities; Formula (z): User preference prediction = c1*initial prediction of decision tree + c2*historical activity participation frequency + c3*historical browsing frequency; For the update of risk labels, the a value in the above formula (x) is adjusted in real time according to the obtained user's participation in high-risk activities. The user's participation in high-risk activities includes the number of transactions and views of the user in high-risk activities. If the user's participation is high, the a value is appropriately increased; if the participation is low, the a value is appropriately reduced; For the update of marketing tags, the b value in the above formula (y) is adjusted in real time according to the obtained user's participation in historical recommendation activities. The user's participation in historical recommendation activities includes the number of transactions and views of the historical recommendation activities by the user; the adjustment factor is enlarged or reduced according to the satisfaction feedback of the user; For the update of user preference labels, the corresponding data is first input into the decision tree as a test set to obtain an initial prediction result, and then the prediction result is optimized according to the above formula (z) to obtain a further prediction result; then the batch data of the primary label and the secondary label corresponding to the user preference label is input into the third decision tree for further training to realize the optimization process of the label; The method also includes: using a collaborative filtering algorithm to obtain an initial recommendation value of the product recommendation model, and then updating and adjusting the initial recommendation value in real time according to the comprehensive preference of customers, user feedback, and the preference of users with lower stickiness. The comprehensive preference of customers is the average preference of all users for the product. The user feedback includes user scoring data and user activity transaction frequency. The user activity transaction frequency is the ratio of the number of activity transactions to the total number of activities.

2. The method for optimizing products recommended to users based on clustering labels according to claim 1, characterized in that: The adopting a cluster analysis algorithm to perform cluster analysis on the feature set comprises: Perform cluster analysis on the feature set using the k-means clustering algorithm to obtain a preliminary classification result; All the first-level labels belonging to the same cluster in the preliminary analysis results are taken as the cluster center and the similarity is recalculated until the cluster center no longer changes, and the data that meets the preset specific values ​​are classified into first-level labels to obtain a first-level label cluster set.

3. The method for optimizing products recommended to users based on clustering labels according to claim 1, characterized in that: The method comprises: The Pearson correlation coefficient is used to analyze the correlation between the primary label data. The specific calculation method is shown in formula (1). The formula (1) is as follows: simi=cov(X,Y) / (std(X)*std(Y) Among them, cov(X, Y) represents the covariance of X and Y, std(X) and std(Y) represent the standards of X and Y respectively, and simi represents the Pearson coefficient, which ranges from -1 to 1. 1 represents a perfect positive correlation, 0 represents no correlation, and -1 represents a perfect negative correlation.

4. The method for optimizing products recommended to users based on clustering labels according to claim 1, characterized in that: The method comprises: The data in the first-level label is visualized in the form of a dashboard, and the content of the visualization includes any one or more of the number of transaction registrations corresponding to the enterprise users, the total transaction amount and the average transaction amount of the enterprise users, and the geographical distribution of the enterprise users and the industry distribution of the enterprise customers.

5. The method for optimizing products recommended to users based on clustering labels according to claim 1, characterized in that: The relevance of the enterprise user is determined based on the following factors: the similarity of the secondary tags corresponding to the enterprise user and the geographical location of the enterprise user; The method comprises: When a purchase behavior of a business user in a certain geographical location area for a certain recommended product is detected, the recommendation weight of the recommended product for business users in the geographical location area who have not purchased the recommended product is adaptively increased.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for optimizing products recommended to users based on clustering tags as described in any one of claims 1 to 5 is implemented.

7. An electronic device having a computer program stored thereon, characterized in that: It includes a processor and a storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed by the processor, the method for optimizing products recommended to users based on clustering tags as described in any one of claims 1 to 5 is implemented.