Item recommendation method, device, server and storage medium based on classification label
By extracting user portraits and project category preferences from business data, combining the category similarity and classification label information in the project library, comprehensively considering user preference project table, similar project table and project table to be recommended, the inconsistency of labels in traditional project recommendations is solved. The accuracy problems caused by the achievement of more accurate project recommendations.
Patent Information
- Application Number
- CN202011602485.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2040-12-29
AI Technical Summary
In traditional project recommendation schemes, similar projects may use different labels or the same label to mark different types of projects, which will affect the accuracy of recommendations.
By extracting user portraits from business data, determine user similarity and project category preferences, combine the category similarity and classification label information in the project library, comprehensively consider user preference project table, similar project table and project table to be recommended, and select targets Project recommendations.
Improve the accuracy of project recommendations, avoid recommendation errors caused by inconsistent labels, and ensure the accuracy of recommendation results.
Smart Images

Figure CN112685635B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a project recommendation method, device, server and storage medium based on classification labels. Background Art
[0002] In traditional recommendation schemes, user-rating matrix is usually used for recommendation, which is as follows: the project provider, third party or user himself labels the projects to be recommended, and then determines the user's rating of a certain type of project based on the user's interaction (such as acquisition or browsing) with certain projects, and recommends the corresponding project to the user based on the rating. When adopting the above recommendation scheme, in the process of labeling the projects to be recommended, the same type of projects may be labeled with different labels (such as synonymous labels), or the same label may be labeled with different types of projects, thereby affecting the accuracy of the recommendation. Summary of the invention
[0003] Based on this, it is necessary to provide a project recommendation method, device, server and storage medium based on classification labels to address the above technical problems, which can improve the accuracy of project recommendations.
[0004] A project recommendation method based on classification labels, the method comprising:
[0005] Extract multiple user portraits from business data;
[0006] Determine user similarity and the degree of preference of different users for different project categories based on the association between the user portrait and the historical project information;
[0007] According to the user similarity and the preference degree, obtaining a user preference item list from an item library;
[0008] Acquire a similar project list from the project library according to the category similarities between the different project categories and the preference levels;
[0009] In the project library, a list of projects to be recommended is obtained based on classification labels of project contents corresponding to the different project categories and association information between the project contents;
[0010] A target item is selected for recommendation from the user preference item list, the similar item list and the to-be-recommended item list.
[0011] In one embodiment, extracting multiple user portraits from the business data includes:
[0012] Extract basic data of different users from business data;
[0013] Acquire user tags and user features from the basic data;
[0014] User portraits of different users are formed according to the user tags and the user features.
[0015] In one embodiment, determining the user similarity and the preference of different users for different project categories according to the association between the user portrait and the historical project information includes:
[0016] Searching for historical project information with associated relationships according to the user portrait;
[0017] Determining user similarity based on the association relationship between the user portrait and the historical project information;
[0018] Obtaining the frequency of operations performed by different users on the historical project information under different project categories;
[0019] The preference of different users for different item categories is determined according to the frequency of the operation.
[0020] In one embodiment, obtaining the user preference item list from the item library according to the user similarity and the preference degree includes:
[0021] Inputting the user similarity and the preference degree into a first recommendation model based on user relationship;
[0022] Using the first recommendation model, obtaining user preference candidate items from an item library based on the user similarity, and selecting user preference items that match the preference degree from the user preference candidate items;
[0023] A user preference item table is generated according to the user preference items.
[0024] In one embodiment, acquiring a similar project list from the project library according to the category similarity between the different project categories and the preference degree includes:
[0025] determining category similarities between the different categories of items;
[0026] inputting the category similarity and the preference degree into a second recommendation model based on item relationship;
[0027] By using the second recommendation model, selecting candidate similar items under similar categories from the item library according to the category similarity, and selecting similar items matching the preference degree from the candidate similar items;
[0028] A similar item table is generated according to the similar items.
[0029] In one embodiment, before selecting candidate similar items under similar categories from the item library according to the category similarity, the method further includes:
[0030] Performing weighted processing on similar items under similar categories in the item library based on a similarity weight value; the similarity weight value is a weight value greater than one;
[0031] The selecting candidate similar items under similar categories from the item library according to the category similarity comprises:
[0032] Sorting the items under similar categories in the item library in descending order to obtain an item sequence corresponding to each similar category;
[0033] Selecting a project whose ranking reaches a first ranking threshold from the project sequence;
[0034] The selected items are taken as candidate similar items.
[0035] In one embodiment, in the project library, obtaining a list of projects to be recommended based on classification labels of project contents corresponding to the different project categories and association information between the project contents includes:
[0036] Inputting the classification labels of the project contents corresponding to the different project categories and the association information between the project contents into a third recommendation model based on label relationships;
[0037] Using the third recommendation model, classifying the items in the item library based on the classification labels and the associated information to obtain an item classification result;
[0038] A list of items to be recommended is generated according to the item classification results.
[0039] In one embodiment, selecting a target item for recommendation from the user preference item list, the similar item list, and the to-be-recommended item list includes:
[0040] Calculating the intersection between the user preference item list and the similar item list;
[0041] Taking the intersection between the intersection and the list of items to be recommended as the target item;
[0042] The target item is recommended to the different users.
[0043] In one embodiment, selecting a target item for recommendation from the user preference item list, the similar item list, and the to-be-recommended item list includes:
[0044] Deduplication of items in the user preference item list, the similar item list, and the to-be-recommended item list to obtain deduplicated candidate items;
[0045] Calculating the distances between the candidate items and the reference items respectively;
[0046] sorting the candidate items according to the calculated distances;
[0047] Selecting a project whose ranking reaches a second ranking threshold from the candidate projects;
[0048] The selected items are recommended as target items to the different users.
[0049] A project recommendation device based on classification labels, the device comprising:
[0050] The extraction module is used to extract multiple user portraits from business data;
[0051] A determination module, used to determine user similarity and the degree of preference of different users for different project categories based on the association relationship between the user portrait and the historical project information;
[0052] A first acquisition module, used for acquiring a user preference item list from an item library according to the user similarity and the preference degree;
[0053] A second acquisition module, configured to acquire a similar project list from the project library according to the category similarity between the different project categories and the preference degree;
[0054] A third acquisition module is used to acquire a list of items to be recommended in the item library based on the classification labels of the item contents corresponding to the different item categories and the association information between the item contents;
[0055] The recommendation module is used to select target items for recommendation from the user preference item list, the similar item list and the to-be-recommended item list.
[0056] In one of the embodiments, the extraction module is also used to extract basic data of different users from the business data; obtain user tags and user features from the basic data; and compose user portraits of different users based on the user tags and the user features.
[0057] In one embodiment, the determination module is further used to search for historical project information with an associated relationship based on the user portrait; determine user similarity based on the associated relationship between the user portrait and the historical project information; obtain the frequency of different users operating on the historical project information under different project categories; and determine the degree of preference of different users for different project categories based on the frequency of the operations.
[0058] In one embodiment, the first acquisition module is further used to input the user similarity and the preference level into a first recommendation model based on user relationship; through the first recommendation model, user candidate preference items are acquired from the item library based on the user similarity, and user preference items that match the preference level are selected from the user candidate preference items; and a user preference item table is generated based on the user preference items.
[0059] In one embodiment, the second acquisition module is further used to determine the category similarity between the different project categories; input the category similarity and the preference level into a second recommendation model based on project relationships; through the second recommendation model, select candidate similar projects under similar categories from the project library according to the category similarity, and select similar projects that match the preference level from the candidate similar projects; and generate a similar project table based on the similar projects.
[0060] In one embodiment, the device further comprises:
[0061] A weighting module, used for weighting similar items under similar categories in the item library based on a similar weight value; the similar weight value is a weight value greater than one;
[0062] The second acquisition module is further used to sort the items under similar categories in the item library in descending order to obtain a project sequence corresponding to each similar category; select items whose ranking reaches a first ranking threshold from the project sequence; and use the selected items as candidate similar items.
[0063] In one embodiment, the third acquisition module is further used to input the classification labels of the project contents corresponding to the different project categories and the association information between the project contents into a third recommendation model based on label relationships; through the third recommendation model, the projects in the project library are classified based on the classification labels and the association information to obtain project classification results; and a list of projects to be recommended is generated based on the project classification results.
[0064] In one embodiment, the recommendation module is further used to calculate the intersection between the user preference item list and the similar item list; use the intersection between the intersection and the to-be-recommended item list as the target item; and recommend the target item to the different users.
[0065] In one embodiment, the recommendation module is further used to deduplicate items in the user preference item list, the similar item list and the to-be-recommended item list to obtain deduplicated candidate items; calculate the distances between the candidate items and the reference items respectively; sort the candidate items according to the calculated distances; select items whose sorting rank reaches a second ranking threshold from the candidate items; and recommend the selected items as target items to the different users.
[0066] A server comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0067] Extract multiple user portraits from business data;
[0068] Determine user similarity and the degree of preference of different users for different project categories based on the association between the user portrait and the historical project information;
[0069] According to the user similarity and the preference degree, obtaining a user preference item list from an item library;
[0070] Acquire a similar project list from the project library according to the category similarities between the different project categories and the preference levels;
[0071] In the project library, a list of projects to be recommended is obtained based on classification labels of project contents corresponding to the different project categories and association information between the project contents;
[0072] A target item is selected for recommendation from the user preference item list, the similar item list and the to-be-recommended item list.
[0073] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0074] Extract multiple user portraits from business data;
[0075] Determine user similarity and the degree of preference of different users for different project categories based on the association between the user portrait and the historical project information;
[0076] According to the user similarity and the preference degree, obtaining a user preference item list from an item library;
[0077] Acquire a similar project list from the project library according to the category similarities between the different project categories and the preference levels;
[0078] In the project library, a list of projects to be recommended is obtained based on classification labels of project contents corresponding to the different project categories and association information between the project contents;
[0079] A target item is selected for recommendation from the user preference item list, the similar item list and the to-be-recommended item list.
[0080] The above-mentioned project recommendation method, device, server and storage medium based on classification labels extract multiple user portraits from business data; determine user similarity and the preference degree of different users for different project categories according to the association relationship between user portraits and historical project information; obtain the user preference project table from the project library according to the user similarity and preference degree, so that the preference projects corresponding to each similar user can be obtained, and the source of the preference projects is expanded. According to the category similarity and preference degree between different project categories, the similar project table is obtained from the project library, which avoids only obtaining a certain type of project and ignoring similar projects, thereby causing omissions in the obtained projects. In the project library, based on the classification labels of the project contents corresponding to different project categories and the association information between the project contents, the to-be-recommended project table is obtained; and the target project is selected from the user preference project table, the similar project table and the to-be-recommended project table for recommendation. By comprehensively considering the user preference project table, the similar project table and the to-be-recommended project table to select the target project, it is possible to avoid affecting the accuracy of the recommendation due to the use of different labels (such as synonymous labels) for the same type of projects, or the same label for different types of projects, thereby effectively improving the accuracy of the project recommendation. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 An application environment diagram of an item recommendation method based on classification tags in one embodiment;
[0082] Figure 2 A schematic diagram of a flow chart of a method for recommending items based on classification labels in one embodiment;
[0083] Figure 3 is a schematic diagram of obtaining a user preference item list through a first recommendation model in one embodiment;
[0084] Figure 4 A schematic diagram of obtaining a similar item list through a first recommendation model in one embodiment;
[0085] Figure 5 A schematic diagram of selecting a target project through the common intersection of each project table in an embodiment;
[0086] Figure 6 A schematic diagram of selecting a target item by calculating the distance between items in one embodiment;
[0087] Figure 7 It is a schematic diagram of obtaining a target item by finding the intersection of a user preference item list, a similar item list and a to-be-recommended item list obtained by using a first recommendation model, a second recommendation model and a third recommendation model in one embodiment;
[0088] Figure 8 A structural block diagram of an item recommendation device based on classification tags in one embodiment;
[0089] Fig. 9 It is a structural block diagram of an item recommendation device based on classification tags in another embodiment;
[0090] Fig.10 FIG. 4 is a diagram showing the internal structure of a server in one embodiment. DETAILED DESCRIPTION
[0091] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0092] It should be noted that the terms "first", "second", "third", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, such as to distinguish different similar item lists, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0093] The project recommendation method based on classification labels provided in this application can be applied to Figure 1 In the application environment shown. In the application environment, a terminal 102, a server 104 and a database 106 are included. The server 104 extracts multiple user portraits from the business data stored in the database 106; determines the user similarity and the preference of different users for different project categories based on the association between the user portraits and the historical project information; obtains a user preference project table from the project library according to the user similarity and preference; obtains a similar project table from the project library according to the category similarity and preference between different project categories; obtains a to-be-recommended project table in the project library based on the classification labels of the project contents corresponding to different project categories and the association information between the project contents; selects a target project from the user preference project table, the similar project table and the to-be-recommended project table for recommendation to the terminal 102.
[0094] Among them, the terminal 102 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to these.
[0095] Server 104 can be an independent physical server or a server cluster composed of multiple physical servers. It can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0096] The terminal 102, the server 104 and the database 106 may be connected via Bluetooth, USB (Universal Serial Bus) or a network or other communication connection methods, which are not limited in the present application.
[0097] In one embodiment, Figure 2 As shown in the figure, a project recommendation method based on classification labels is provided. Figure 1 Taking the server 104 in the example as an example, the following steps are included:
[0098] S202, extracting multiple user portraits from the business data.
[0099] Among them, business data can be personal data and project data about members of various departments of the enterprise (hereinafter referred to as users) generated during the production process of the enterprise, and can also include other work data generated by users during the work process. User portraits can be data used to describe the characteristics and / or behaviors of users. When a server recommends a project to a user, in addition to extracting the user portrait corresponding to the user, it can also extract user portraits corresponding to other similar users. For example, when the server recommends a project to user a, it can obtain the user portrait corresponding to user a, as well as the user portraits corresponding to users similar to user a.
[0100] In one embodiment, the server obtains business data from a business database, and then extracts basic data of different users from the business data; obtains user tags and user features from the basic data; and composes user portraits of different users based on the user tags and user features.
[0101] The business data may be data extracted from the basic information library and project library of the enterprise, and the extracted data is structured and then stored in the business database.
[0102] S204: Determine user similarity and the degree of preference of different users for different project categories based on the association between the user portrait and the historical project information.
[0103] The project information may refer to various information about the project, such as brief information of the project, project files, and user information involved in the project, etc. The historical project information may refer to project information corresponding to historically completed projects.
[0104] The association relationship can indicate whether the user has participated in or paid attention to a certain project in the past. If so, it means that there is an association relationship between the user profile corresponding to the user and the historical project information.
[0105] Project category may refer to the category to which the project belongs, such as home security monitoring projects and traffic monitoring projects belong to the monitoring category.
[0106] User similarity can be used to describe whether different users have participated in or followed the same or similar projects, and the number of the same or similar projects they have participated in or followed; or whether different users have searched and / or browsed historical project information, and the number of times they have searched and / or browsed historical project information. In addition, user similarity can also describe whether users are in the same enterprise department or the same project group. For example, in different business departments or project groups, the projects that users participate in or follow may be different.
[0107] In one embodiment, S204 may specifically include: the server searches for historical project information with an associated relationship based on the user portrait; determines the user similarity based on the associated relationship between the user portrait and the historical project information; obtains the frequency of different users operating on the historical project information under different project categories; and determines the degree of preference of different users for different project categories based on the frequency of operations.
[0108] The above operations may refer to the user's historical participation in or attention to one or more projects, or searching and / or browsing historical project information.
[0109] Specifically, the server determines whether different users have historically participated in or paid attention to the same project based on the user portrait and historical project information, and determines the user similarity between different users based on the determination result. Alternatively, when it is determined that different users have historically participated in or paid attention to the same project, the server determines the data of participating in or paying attention to the same project, and determines the user similarity between different users based on the data of participating in or paying attention to the same project.
[0110] In addition, the server can also determine whether different users have participated in or paid attention to a certain project in the past based on the user portrait and historical project information, and then obtain the project category corresponding to the project, so as to determine the degree of preference of different users for different project categories. Alternatively, the user participates in or pays attention to multiple projects, and then determines the project categories to which the multiple projects belong, and determines the degree of preference of different users for different project categories based on the number of projects under the project category. For example, assuming that user a participates in projects b1 to b10, where project b1 belongs to project category 1, projects b2 to b8 belong to project category 2, and projects b9 to b10 belong to project category 3, the degree of preference can be determined based on the number of projects in project categories 1 to 3, that is, user a has the greatest preference for project category 2.
[0111] It should be noted that the server can also determine user similarity and preference based on whether different users search and / or browse historical project information, and the number of times they search and / or browse historical project information. The specific steps can be referred to the above embodiment and will not be repeated here.
[0112] In one embodiment, the server can establish a unit attribute file based on the project for the enterprise's budget department or budget unit, and a project attribute file based on the project tag for the project, and then calculate a preference matrix based on the unit attribute file, the project attribute file and the weights of each project tag. The preference matrix includes the preference degree of each user for different project categories.
[0113] S206, obtaining a user preference item list from the item library according to user similarity and preference degree.
[0114] In one embodiment, S206 may specifically include: the server inputs user similarity and preference level into a first recommendation model based on user relationship; through the first recommendation model, obtains user candidate preference items from the item library based on user similarity, and selects user preference items that match the preference level from the user candidate preference items; generates a user preference item table based on the user preference items.
[0115] Among them, user relationship refers to the relationship between users. The project classification and some tags filled in when applying for a project can reflect the user's interest in the project. Therefore, whether different users are interested in the same project can determine the user relationship.
[0116] The first recommendation model may be a network model for recommending similar items, and the network model may be a model constructed by a content-based recommendation algorithm, a collaborative filtering recommendation algorithm, or a knowledge-based recommendation algorithm.
[0117] Regarding the acquisition of user candidate preference items, since users with high user similarity have similar preferred items, the items preferred by similar users can be acquired from the item library according to the user similarity, and the acquired items are used as user candidate preference items.
[0118] Specifically, the above-mentioned step of obtaining user candidate preference items from the project library based on user similarity through the first recommendation model may specifically include: the server extracts project information and enterprise function identification through the first recommendation model and vectorizes them, and then performs feature cross-processing on the user similarity, the vectorized project information and the enterprise function identification to obtain cross-features, and determines the user candidate preference items based on the cross-features.
[0119] For example, Figure 3 As shown, the server extracts the business data of the budget unit from the business database. The business data contains the basic data of the user and the budget execution information. The user features of different users are extracted from the basic data of the business data, and the different users are labeled to obtain user tags. The user tags and user features constitute the user portrait. According to the basic data and the three-determination scheme, the historical project information is matched to obtain the user similarity; the historical reported data is mined to obtain the user's preference for the project category. The specific mining steps may include: the historical project information contains user information recorded when different users participate in or pay attention to the project. By mining the user information, the user's preference for the project category can be determined. Finally, the preference for the project and the user similarity are input into the first recommendation model to obtain a set of similar project tables.
[0120] S208, obtaining a similar project list from the project library according to the category similarity and preference degree between different project categories.
[0121] In one embodiment, S208 may specifically include: the server determines the category similarity between different project categories; inputs the category similarity and preference level into a second recommendation model based on project relationships; through the second recommendation model, selects candidate similar projects under similar categories from the project library according to the category similarity, and selects similar projects that match the preference level from the candidate similar projects; and generates a similar project table based on the similar projects.
[0122] Among them, the project relationship refers to the relationship between projects. When the budget unit fills in the project, the server can provide similar projects to the budget unit for user reference based on the project relationship, which can alleviate the problem of "information confusion". The relationship between projects can come from the budget units and project tags that share the project information.
[0123] like Figure 4As shown, when the project content is obtained from the business database, a semantic analysis is performed on the project content to obtain the keywords of each project, and then these keywords are cleaned and classified to obtain effective keywords for the classification; the project category to which each project belongs is determined based on each effective keyword, and the category similarity between different project categories is determined. On the one hand, the corresponding keywords, project categories, category similarities and corresponding preference levels are stored, and on the other hand, the category similarities and preference levels are input into the second recommendation model to output a similar project table.
[0124] In one embodiment, before selecting candidate similar projects under similar categories from the project library according to category similarity, the method further includes: the server weights each similar project under similar categories in the project library based on a similar weight value; the similar weight value is a weight value greater than one. The step of selecting candidate similar projects under similar categories from the project library according to category similarity may specifically include: the server sorts each project under similar categories in the project library in descending order to obtain a project sequence corresponding to each similar category; selects a project whose ranking reaches a first ranking threshold from the project sequence; and uses the selected project as a candidate similar project.
[0125] S210, in the project library, based on the classification labels of the project contents corresponding to the different project categories and the association information between the project contents, a list of projects to be recommended is obtained.
[0126] In one embodiment, S208 may specifically include: the server inputs the classification labels of project contents corresponding to different project categories and the association information between project contents into a third recommendation model based on label relationships; through the third recommendation model, the projects in the project library are classified based on the classification labels and the association information to obtain project classification results; and a list of projects to be recommended is generated according to the project classification results.
[0127] Among them, the tag relationship refers to the relationship between tags, such as similar relationships between similar tags. When users search based on tags, they can fully retrieve related items.
[0128] S212, selecting a target item for recommendation from the user preference item list, the similar item list and the to-be-recommended item list.
[0129] For the selection of target items, the target items can be selected by the common intersection of each item table, or by calculating the distance between each item. The specific method is as follows:
[0130] Method 1: Select the target project through the common intersection of each project table.
[0131] In one embodiment, the server calculates the intersection between the user preference item list and the similar item list; uses the intersection between the intersection and the to-be-recommended item list as the target item; and recommends the target item to different users. Figure 5 As shown in the figure, the area pointed by the arrow is the common intersection of the three project tables, and the items in this area are the target items recommended to the user.
[0132] Method 2: Select the target item by calculating the distance between each item.
[0133] In one embodiment, the server deduplicates items in the user preference item list, the similar item list, and the to-be-recommended item list to obtain deduplicated candidate items; calculates the distances between the candidate items and the reference items respectively; sorts the candidate items according to the calculated distances; selects items from the candidate items whose sorting rank reaches a second ranking threshold; and recommends the selected items as target items to different users.
[0134] The above distance can be a Euclidean distance. The larger the distance, the smaller the similarity with the reference item and the smaller the probability of being recommended. The smaller the distance, the greater the similarity with the reference item and the greater the probability of being recommended. Deduplication refers to removing duplicate items to obtain non-duplicate items. For example, there are items a and b in the user preference item list, items b and b' in the similar item list, and items a and c in the recommended item list. Before deduplication, there are items a, a, b, b, b' and c. After deduplication, items a, b, b' and c are obtained.
[0135] The reference project can also be called a virtual optimal project, which is a project obtained by calculating the center point of the projects in the user preference project table, the similar project table, and the to-be-recommended project table. For example, the projects in the user preference project table, the similar project table, and the to-be-recommended project table are vectorized, that is, the keywords of the projects in the three tables are vectorized to obtain the corresponding vectors or matrices, and then the center point is calculated based on the elements in the obtained vector or matrix, and the center point is the optimal project.
[0136] like Figure 6 As shown in the figure, point a represents the optimal project, and the other points represent the projects in the three project tables after deduplication processing. Then the distance between point a and other points is calculated, and then the corresponding projects are sorted according to the distance, and then the top ranked projects are selected as target projects for recommendation.
[0137] In one embodiment, after calculating the distance, the server arranges the candidate items in ascending order according to the calculated distance, that is, the items with smaller distances are arranged in front and the items with larger distances are arranged in the back; then the selection is performed from the front to the back until the ranking of the selected items reaches the second ranking threshold, and the selection is stopped to obtain the target item. In addition, the server can also adopt a descending arrangement method, in which case the selection is performed from the back to the front, and the selection is stopped when the ranking of the selected items reaches the second ranking threshold, and the target item is obtained.
[0138] In the above embodiment, multiple user portraits are extracted from the business data; according to the association between the user portraits and the historical project information, the user similarity and the preference degree of different users for different project categories are determined; according to the user similarity and preference degree, the user preference project table is obtained from the project library, so that the preference projects corresponding to each similar user can be obtained, and the source of the preference projects is expanded. According to the category similarity and preference degree between different project categories, the similar project table is obtained from the project library, which avoids only obtaining a certain type of project and ignoring similar projects, thereby causing omissions in the obtained projects. In the project library, based on the classification labels of the project contents corresponding to different project categories and the association information between the project contents, the recommended project table is obtained; from the user preference project table, the similar project table and the recommended project table, the target project is selected for recommendation. By comprehensively considering the user preference project table, the similar project table and the recommended project table to select the target project, it can be avoided that the accuracy of the recommendation is affected by the use of different labels (such as synonymous labels) for the same type of projects, or the same label is marked with different types of projects, thereby effectively improving the accuracy of project recommendation.
[0139] As an example, the project recommendation method based on classification labels is applied to the financial field, as described below:
[0140] In order to solve the problem of inaccurate recommendations caused by information overload and information disorientation in traditional two-dimensional recommendation systems, this application gradually analyzes and reduces the dimensionality of the three-dimensional label system, so that the two-dimensional recommendation system can smoothly make recommendations based on project classification labels. The above two-dimensional recommendation system can be constructed based on user-user relationships, project-project relationships, and label-label relationships to obtain three recommendation systems that can predict the items that need to be recommended to users.
[0141] User-user relationship refers to the relationship between users. The project classification and some tags filled in when applying for a project can reflect the user's interest in the project. Therefore, whether different users are interested in the same project can determine the user relationship.
[0142] For example, when a budget unit submits a project application, the project classification and some tags it fills in reflect the budget unit's interest in the project. Therefore, by establishing a project-based unit attribute file for the budget unit user and a project attribute file based on project tags for the project, and comprehensively considering the weights of each tag, the budget unit project expenditure preference matrix is calculated.
[0143] Project-project relationship, that is, the relationship between projects. When budget units fill in projects, the system can provide similar projects for users to refer to, which can alleviate the problem of "information confusion". The relationship between projects in the system mainly comes from their shared budget units and project labels. When calculating the similarity of projects, these two situations are taken into account and a project-based collaborative filtering recommendation algorithm is used.
[0144] Tag-tag relationship, research project classification and tag customization. When users search based on tags, they can fully retrieve related projects.
[0145] Next, we will introduce how to obtain the recommended item tables based on user-user relationships, item-item relationships, and tag-tag relationships, as follows:
[0146] (I) Obtaining a list of items to be recommended based on user-user relationships, the steps include: obtaining user portraits, calculating user similarity, calculating item category preferences, and predicting recommendation results. The specific contents of the above steps are as follows:
[0147] 1) Obtaining user portraits First, extract the basic information of budget unit users, budget execution and other information to generate user portraits;
[0148] 2) According to the basic data and the three-determination plan, the historical project information is matched to obtain the behavior vector of similar budget units;
[0149] 3) Process and mine historical reporting data to obtain preferences for project categories;
[0150] 4) Finally, the item preferences and similarities are input to generate a set of recommendation lists (i.e., the user preference item list mentioned above).
[0151] (ii) Obtain a list of items to be recommended based on user-user relationships.
[0152] Since the reported project categories are quite arbitrary, we use clustering, neural network and other algorithms to classify and infer historical project data, thereby obtaining rules, and then use the rules to identify and predict project categories. The basic process is as follows:
[0153] 1) Labeling: manually classifying a batch of items accurately to serve as a training set (material for machine learning);
[0154] 2) Training: mining some rules that can effectively classify documents and generating a classifier (a set of summarized rules);
[0155] 3) Classification: Apply the generated classifier to the set of items to be classified to obtain the classification results of the items.
[0156] In the recommendation model based on user-user relationship, the user's preference for each item category is derived, so it can be directly used in the recommendation model based on item-item relationship. Then, according to the item association rules and the user's preference for item categories, similar weights are assigned to every two items of similar categories. Then, based on the known category preference and category similarity module, a similar item table is predicted.
[0157] (III) Based on the tag-tag relationship, the basic information of the project and other reported contents are tagged, and a list of projects to be recommended (i.e., the list of projects to be recommended in the above embodiment) is predicted based on the association information between the project content tags and the project content.
[0158] (iv) Reprocess the recommendation results using the k-means algorithm.
[0159] By defining a virtual optimal project, and calculating the distance (such as Euclidean distance) between each project in the above three project tables and the optimal project, as Figure 6 Then, each item in the above three item tables is sorted according to the calculated distance, and a plurality of items with relatively high rankings are taken to form a similar item recommendation list, which is then recommended to the user.
[0160] In addition, if Figure 7 As shown, the common intersection of the above three project tables can also be calculated, and then the projects in the intersection part are combined into a similar project recommendation list, which is then recommended to the user.
[0161] The above embodiments can achieve the following technical effects:
[0162] 1) By defining new similarity calculation steps and recommendation result reprocessing steps, the accuracy of finding similar items is improved, thereby improving the recommendation accuracy of similar items;
[0163] 2) Avoid the problem of arbitrary classification of project categories;
[0164] 3) Reduce the labor consumption in the project application process;
[0165] 4) It lays the foundation for the standardization of project expenditures.
[0166] It should be understood that although Figure 2The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0167] In one embodiment, Figure 8 As shown, a device for recommending items based on classification labels is provided. The device can adopt a software module or a hardware module, or a combination of the two to become a part of the server. The device specifically includes: an extraction module 802, a determination module 804, a first acquisition module 806, a second acquisition module 808, a third acquisition module 810 and a recommendation module 812, wherein:
[0168] An extraction module 802 is used to extract multiple user portraits from the business data;
[0169] A determination module 804 is used to determine user similarity and the degree of preference of different users for different project categories based on the association between the user portrait and the historical project information;
[0170] A first acquisition module 806 is used to acquire a user preference item list from an item library according to user similarity and preference degree;
[0171] The second acquisition module 808 is used to acquire a similar project list from the project library according to the category similarity and preference degree between different project categories;
[0172] The third acquisition module 810 is used to acquire a list of recommended projects in the project library based on the classification labels of project contents corresponding to different project categories and the association information between project contents;
[0173] The recommendation module 812 is used to select target items for recommendation from the user preference item list, the similar item list and the to-be-recommended item list.
[0174] In one of the embodiments, the extraction module 802 is further used to extract basic data of different users from the business data; obtain user tags and user features from the basic data; and compose user portraits of different users based on the user tags and user features.
[0175] In one embodiment, the determination module 804 is further used to search for historical project information with associated relationships based on user portraits; determine user similarity based on the associated relationship between the user portraits and the historical project information; obtain the frequency of different users operating on the historical project information under different project categories; and determine the degree of preference of different users for different project categories based on the frequency of operations.
[0176] In one of the embodiments, the first acquisition module 806 is also used to input user similarity and preference level into a first recommendation model based on user relationship; through the first recommendation model, user candidate preference items are obtained from the item library based on user similarity, and user preference items that match the preference level are selected from the user candidate preference items; and a user preference item table is generated based on the user preference items.
[0177] In one embodiment, the second acquisition module 808 is also used to determine the category similarity between different project categories; input the category similarity and preference level into a second recommendation model based on project relationships; select candidate similar projects under similar categories from the project library according to the category similarity through the second recommendation model, and select similar projects that match the preference level from the candidate similar projects; and generate a similar project table based on the similar projects.
[0178] In one embodiment, Fig. 9 As shown, the device also includes:
[0179] A weighting module 814 is used to perform weighting processing on similar items under similar categories in the item library based on a similar weight value; the similar weight value is a weight value greater than one;
[0180] The second acquisition module 808 is also used to sort the projects under similar categories in the project library in descending order to obtain a project sequence corresponding to each similar category; select projects whose ranking reaches the first ranking threshold from the project sequence; and use the selected projects as candidate similar projects.
[0181] In one embodiment, the third acquisition module 810 is further used to input the classification labels of the project contents corresponding to different project categories and the association information between the project contents into a third recommendation model based on the label relationship; through the third recommendation model, the projects in the project library are classified based on the classification labels and the association information to obtain the project classification results; and a list of projects to be recommended is generated according to the project classification results.
[0182] In one embodiment, the recommendation module 812 is further configured to calculate the intersection between the user preference item list and the similar item list; use the intersection between the intersection and the to-be-recommended item list as the target item; and recommend the target item to different users.
[0183] In one embodiment, the recommendation module 812 is also used to deduplicate items in the user preference item list, the similar item list and the to-be-recommended item list to obtain deduplicated candidate items; calculate the distances between the candidate items and the reference items respectively; sort the candidate items according to the calculated distances; select items from the candidate items whose sorting rank reaches a second ranking threshold; and recommend the selected items as target items to different users.
[0184] In the above embodiment, multiple user portraits are extracted from the business data; according to the association between the user portraits and the historical project information, the user similarity and the preference degree of different users for different project categories are determined; according to the user similarity and preference degree, the user preference project table is obtained from the project library, so that the preference projects corresponding to each similar user can be obtained, and the source of the preference projects is expanded. According to the category similarity and preference degree between different project categories, the similar project table is obtained from the project library, which avoids only obtaining a certain type of project and ignoring similar projects, thereby causing omissions in the obtained projects. In the project library, based on the classification labels of the project contents corresponding to different project categories and the association information between the project contents, the recommended project table is obtained; from the user preference project table, the similar project table and the recommended project table, the target project is selected for recommendation. By comprehensively considering the user preference project table, the similar project table and the recommended project table to select the target project, it can be avoided that the accuracy of the recommendation is affected by the use of different labels (such as synonymous labels) for the same type of projects, or the same label is marked with different types of projects, thereby effectively improving the accuracy of project recommendation.
[0185] For the specific definition of the project recommendation device based on classification tags, please refer to the definition of the project recommendation method based on classification tags above, which will not be repeated here. Each module in the above-mentioned project recommendation device based on classification tags can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the server in hardware form, or stored in the memory in the server in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0186] In one embodiment, a server is provided, and its internal structure diagram may be shown in Figure Y. The server includes a processor, a memory, and a network interface connected via a system bus. The processor of the server is used to provide computing and control capabilities. The memory of the server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the server is used to store project data and personal basic data. The network interface of the server is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a project recommendation method based on classification tags is implemented.
[0187] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. The specific server may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0188] In one embodiment, a server is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0189] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0190] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a server reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the server performs the steps in the above-mentioned method embodiments.
[0191] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0192] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0193] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A project recommendation method based on classification labels, characterized in that: The method comprises: Extract multiple user portraits from business data; Determine user similarity and the degree of preference of different users for different project categories based on the association between the user portrait and the historical project information; Based on the user similarity, user candidate preference items are obtained from the item library, and user preference items matching the preference degree are selected from the user candidate preference items; and a user preference item table is generated according to the user preference items; From the project library, select candidate similar projects under similar categories according to the category similarities between the different project categories, and select similar projects matching the preference degree from the candidate similar projects; generate a similar project table according to the similar projects; Based on the classification labels of the project contents corresponding to the different project categories and the association information between the project contents, the projects in the project library are classified to obtain project classification results; and a list of projects to be recommended is generated according to the project classification results; A target item is selected for recommendation from the user preference item list, the similar item list and the to-be-recommended item list.
2. The method according to claim 1, characterized in that: Extracting multiple user portraits from the business data includes: Extract basic data of different users from business data; Acquire user tags and user features from the basic data; User portraits of different users are formed according to the user tags and the user features.
3. The method according to claim 1, characterized in that Determining user similarity and preference of different users for different project categories according to the association relationship between the user portrait and the historical project information includes: Searching for historical project information with associated relationships according to the user portrait; Determining user similarity based on the association relationship between the user portrait and the historical project information; Obtaining the frequency of operations performed by different users on the historical project information under different project categories; The preference of different users for different item categories is determined according to the frequency of the operation.
4. The method according to claim 1, characterized in that: The method comprises acquiring user preference candidate items from an item library based on the user similarity, and selecting user preference items that match the preference degree from the user preference candidate items; Generating a user preference item table according to the user preference items includes: Inputting the user similarity and the preference degree into a first recommendation model based on user relationship; Through the first recommendation model, user candidate preference items are obtained from the item library based on the user similarity, and user preference items matching the preference degree are selected from the user candidate preference items; and a user preference item table is generated according to the user preference items.
5. The method according to claim 1, characterized in that selecting candidate similar items under similar categories from the item library according to the category similarities between the different item categories, and selecting similar items matching the preference degree from the candidate similar items; Generating a similar project table according to the similar projects comprises: determining category similarities between the different categories of items; inputting the category similarity and the preference degree into a second recommendation model based on item relationship; By using the second recommendation model, candidate similar items under similar categories are selected from the item library according to the category similarity, and similar items matching the preference degree are selected from the candidate similar items; and a similar item table is generated according to the similar items.
6. The method according to claim 5, characterized in that Before selecting candidate similar items under similar categories from the item library according to the category similarity, the method further includes: Performing weighted processing on similar items under similar categories in the item library based on a similarity weight value; the similarity weight value is a weight value greater than one; The selecting candidate similar items under similar categories from the item library according to the category similarity comprises: Sorting the items under similar categories in the item library in descending order to obtain an item sequence corresponding to each similar category; Selecting a project whose ranking reaches a first ranking threshold from the project sequence; The selected items are taken as candidate similar items.
7. The method according to claim 1, characterized in that Based on the classification labels of the project contents corresponding to the different project categories and the association information between the project contents, the projects in the project library are classified to obtain project classification results; Generating a list of recommended projects according to the project classification results includes: Inputting the classification labels of the project contents corresponding to the different project categories and the association information between the project contents into a third recommendation model based on label relationships; The projects in the project library are classified based on the classification labels and the associated information through the third recommendation model to obtain project classification results; and a list of projects to be recommended is generated according to the project classification results.
8. The method according to any one of claims 1 to 7, characterized in that: The selecting a target item for recommendation from the user preference item list, the similar item list and the to-be-recommended item list comprises: Calculating the intersection between the user preference item list and the similar item list; Taking the intersection between the intersection and the list of items to be recommended as the target item; The target item is recommended to the different users.
9. The method according to any one of claims 1 to 7, characterized in that: The selecting a target item for recommendation from the user preference item list, the similar item list and the to-be-recommended item list comprises: Deduplication of items in the user preference item list, the similar item list, and the to-be-recommended item list to obtain deduplicated candidate items; Calculating the distances between the candidate items and the reference items respectively; sorting the candidate items according to the calculated distances; Selecting a project whose ranking reaches a second ranking threshold from the candidate projects; The selected items are recommended as target items to the different users.
10. An item recommendation device based on classification labels, characterized in that: The device comprises: The extraction module is used to extract multiple user portraits from business data; A determination module, used to determine user similarity and the degree of preference of different users for different project categories based on the association relationship between the user portrait and the historical project information; A first acquisition module is used to acquire user preference candidate items from an item library based on the user similarity, select user preference items that match the preference degree from the user preference candidate items; and generate a user preference item table according to the user preference items; A second acquisition module is used to select candidate similar items under similar categories from the item library according to the category similarity, select similar items matching the preference degree from the candidate similar items; and generate a similar item table according to the similar items; A third acquisition module is used to classify the projects in the project library to obtain project classification results based on the classification labels of the project contents corresponding to the different project categories and the association information between the project contents; and generate a list of projects to be recommended according to the project classification results; The recommendation module is used to select target items for recommendation from the user preference item list, the similar item list and the to-be-recommended item list.
11. A server, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
