Data pushing method and device, equipment and storage medium
By building a target map, learning user preference information and pushing target data, the problem of low data recommendation accuracy in the existing technology is solved, and more efficient user preference data recommendation is achieved.
Patent Information
- Application Number
- CN202410208895.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2024-10-18
AI Technical Summary
Existing data recommendation methods use manually defined rules, resulting in low accuracy of data to be pushed, and cannot effectively improve user experience.
By constructing a target map, it captures users' relative preference information and data labels between different data in the database, learns the implicit information of user preferences, generates preference feature information, and finds and pushes target data that meets preset conditions.
It improves the accuracy of the data to be pushed, accurately understands the user's preference relationship for each data, fully explores the intrinsic relationship between the user's browsing data, and improves the user experience.
Smart Images

Figure CN118797147A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology and big data technology, and in particular, relates to a data push method, device, equipment and storage medium. Background Art
[0002] The online real-time analysis system is a system that has high requirements for display speed. As the online real-time analysis system carries more and more business, in order to reduce the time for user access and search, it is necessary to study a user preference data recommendation system that actively recommends user preference data after the user logs in to improve the user experience.
[0003] In existing data recommendation methods, rules are manually defined, and then the data is weighted according to the rules to obtain a preference score, and finally the data to be pushed is determined based on the preference score.
[0004] However, this method may result in lower accuracy of the data to be pushed. Summary of the invention
[0005] The embodiments of the present application provide a data push method, apparatus, device and storage medium, which can improve the accuracy of data to be pushed.
[0006] In one aspect of an embodiment of the present application, a data push method is provided, including:
[0007] In response to a login operation of the first user, determining a user group corresponding to the first user according to the user identification information of the first user, wherein the data access rights of the users in the user group are the same;
[0008] According to each user in the user group, the user's relative preference information between each two different data in the database, each data in the database and the data label corresponding to each data, a target graph is constructed, wherein the target graph includes a user layer constructed based on each user in the user group, a preference layer constructed based on the user's relative preference information between each two different data in the database, a data layer constructed based on each data in the database and a label layer constructed based on the data label corresponding to each data;
[0009] Allocate corresponding resources to the second user and candidate data corresponding to the second user through the target graph, where the second user is a user other than the first user in the user group, and the candidate data is data in the database that has not been accessed by the first user;
[0010] Generate preference feature information of the first user according to the resource amount of the candidate data corresponding to each second user;
[0011] Searching for data to be pushed corresponding to the preferred characteristic information from a database;
[0012] According to the data to be pushed, target data is pushed to the first user, where the target data is data in the data to be pushed that meets a preset push condition.
[0013] In one aspect of an embodiment of the present application, a data push device is provided, including:
[0014] A user group determination module, configured to determine, in response to a login operation of a first user, a user group corresponding to the first user according to the user identification information of the first user, wherein each user in the user group has the same data access rights;
[0015] A graph construction module is used to construct a target graph based on each user in the user group, the user's relative preference information between each two different data in the database, each data in the database, and the data label corresponding to each data. The target graph includes a user layer constructed based on each user in the user group, a preference layer constructed based on the user's relative preference information between each two different data in the database, a data layer constructed based on each data in the database, and a label layer constructed based on the data label corresponding to each data;
[0016] A resource allocation module, used to allocate corresponding resources to a second user and candidate data corresponding to the second user through a target graph, wherein the second user is a user in the user group other than the first user, and the candidate data is data in a database that has not been accessed by the first user;
[0017] An information generation module, used to generate preference feature information of the first user according to the resource amount of the candidate data corresponding to each second user;
[0018] A data search module is used to search the data to be pushed corresponding to the preference feature information from the database;
[0019] The data push module is used to push target data to the first user according to the data to be pushed, where the target data is the data that meets the preset push conditions in the data to be pushed.
[0020] In one aspect of an embodiment of the present application, an electronic device is provided, which includes: a memory and a program or instruction stored in the memory and executable on a processor, wherein when the program or instruction is executed by the processor, a data push method as provided in any aspect of the above-mentioned embodiment of the present application is implemented.
[0021] In one aspect of an embodiment of the present application, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, a data push method provided in any aspect of the above-mentioned embodiment of the present application is implemented.
[0022] According to one aspect of an embodiment of the present application, a computer program product is provided. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a data push method provided by any aspect of the above-mentioned embodiment of the present application.
[0023] In the data push method provided in the embodiment of the present application, a target map is constructed according to each user in the user group, the user's relative preference information between each two different data in the database, each data in the database, and the data label corresponding to each data. By capturing the relative preference information of the pairwise comparison, the implicit information of the user's preference can be learned, so that a more accurate preference prediction can be generated. Then, through the target map, the corresponding resources are allocated to the second user and the candidate data corresponding to the second user. Through the target map, the user's preference relationship for each data can be accurately and clearly known, so that the resource amount of each candidate data can be accurately determined. Finally, according to the resource amount of each candidate data, preference feature information is generated, so that the corresponding data to be pushed is searched according to the preference feature information, and the target data is pushed to the first user according to the data to be pushed. In this way, the embodiment of the present application can accurately and clearly know the user's preference relationship for each data through the target map, and can also learn the implicit information of the user's preference, so as to fully dig out the intrinsic connection information between the data browsed by the user, and then the accuracy of the data to be pushed can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0025] Figure 1 It is a flowchart of an embodiment of a data push method provided by the present application;
[0026] Figure 2 It is a schematic diagram of the process of the target map construction method provided in this application;
[0027] Figure 3 It is a flowchart of the user clustering method provided by this application;
[0028] Figure 4 It is a structural schematic diagram of an embodiment of a data push device provided by the present application;
[0029] Figure 5 It is a structural diagram of an embodiment of a data push device provided by the present application. DETAILED DESCRIPTION
[0030] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0031] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0032] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0033] In the related art, in the existing data recommendation method, the rules are manually defined, and then the data is weighted according to the rules to obtain the preference score, and finally the data to be pushed is determined according to the preference score. However, this method will result in low accuracy of the data to be pushed.
[0034] The purpose of the present application is to provide a data push method, device, equipment and storage medium. In the data push method provided in the embodiment of the present application, a target map is constructed according to each user in the user group, the user's relative preference information between each two different data in the database, each data in the database and the data label corresponding to each data. By capturing the relative preference information of the pairwise comparison, the implicit information of the user's preference can be learned, so that a more accurate preference prediction can be generated. Then, through the target map, the corresponding resources are allocated to the second user and the candidate data corresponding to the second user. Through the target map, the user's preference relationship for each data can be accurately and clearly known, so that the resource amount of each candidate data can be accurately determined. Finally, according to the resource amount of each candidate data, preference feature information is generated, so that the corresponding data to be pushed is found according to the preference feature information, and the target data is pushed to the first user according to the data to be pushed. In this way, the embodiment of the present application can accurately and clearly know the user's preference relationship for each data through the target map, and can also learn the implicit information of the user's preference, so as to fully dig out the intrinsic connection information between the data browsed by the user, and thus improve the accuracy of the data to be pushed.
[0035] The following describes specific embodiments of the data push method, device, equipment and storage medium provided by the embodiments of the present application. First, the data push method is introduced.
[0036] Figure 1 A flow chart of a data push method is provided. The data push method is applied to a user preference data recommendation system. The data push method may include the following steps S101 to S106.
[0037] S101, in response to a login operation of a first user, determining a user group corresponding to the first user according to user identification information of the first user, wherein each user in the user group has the same data access rights.
[0038] In this embodiment, the user identification information is used to identify the corresponding user. A user group includes multiple users, and the data access rights of the users in the same user group are the same.
[0039] For example, the user preference data recommendation system clusters each user into multiple user groups based on the data access permissions of each user in the user database.
[0040] In response to a login operation of the first user, the user preference data recommendation system obtains user identification information of the first user, and determines the user group to which the first user belongs according to the user identification information of the first user.
[0041] S102, constructing a target graph based on each user in the user group, the user's relative preference information for each two different data in the database, each data in the database, and the data label corresponding to each data. The target graph includes a user layer constructed based on each user in the user group, a preference layer constructed based on the user's relative preference information for each two different data in the database, a data layer constructed based on each data in the database, and a label layer constructed based on the data label corresponding to each data.
[0042] In this embodiment, the target graph includes a user layer, a preference layer, a data layer, and a label layer. The user layer is constructed based on each user included in the user group, the preference layer is constructed based on the relative preference information between each two different data in the database by each user, the data layer is constructed based on each data in the database, and the label layer is constructed based on the data label corresponding to each data.
[0043] Relative preference information is used to characterize the user's preference relationship between two different data in the database. For example, there are two types of data, A and B, in the database. The user's access time to data A is 20 minutes, and the user's access time to data B is 10 minutes. Then the user's relative preference information can be obtained as A is greater than B.
[0044] For example, the user preference data recommendation system constructs a user layer based on the users included in the user group, constructs a preference layer based on the relative preference information of each user between each two different data in the database, constructs a data layer based on the data in the database, and constructs a label layer based on the data labels corresponding to each data.
[0045] After constructing the user layer, preference layer, data layer and label layer, the corresponding users in the user layer, the relative preference information in the preference layer, the data in the data layer and the data labels in the label layer are linked to obtain the target graph.
[0046] S103, allocating corresponding resources to the second user and candidate data corresponding to the second user through the target graph, the second user is a user in the user group other than the first user, and the candidate data is data in the database that has not been accessed by the first user.
[0047] In this embodiment, the second users are users in the user group except the first user, and the candidate data are data in the database that have not been accessed by the first user.
[0048] For example, the user preference data recommendation system allocates corresponding resources to the second user according to the target graph, and then reallocates the resources allocated to the second user to the candidate data corresponding to the second user according to the target graph, thereby obtaining the resource amount of the candidate data corresponding to each second user.
[0049] S104: Generate preference feature information of the first user according to the resource amount of the candidate data corresponding to each second user.
[0050] In this embodiment, the preference characteristic information is used to represent information corresponding to the data preferred by the first user.
[0051] For example, the user preference data recommendation system sorts the candidate data corresponding to each second user from large to small according to the resource quantity, and then selects a target number of candidate data according to the size of the resource quantity of the candidate data, and generates the preference feature information of the first user based on the target number of candidate data.
[0052] S105, searching the database for data to be pushed corresponding to the preference characteristic information.
[0053] In this embodiment, the user preference data recommendation system searches the database for the data to be pushed corresponding to the preference characteristic information according to the preference characteristic information of the first user.
[0054] S106: Push target data to the first user according to the data to be pushed, where the target data is data that meets a preset push condition in the data to be pushed.
[0055] In this embodiment, by way of example, the preset push condition may include whether the user has access rights to the corresponding data or whether the amount of resources corresponding to the data to be pushed is greater than a preset resource threshold.
[0056] For example, after the user preference data recommendation system finds the data to be pushed corresponding to the preference feature information from the database, it determines whether each data to be pushed meets the preset push conditions, and pushes the target data in the data to be pushed that meets the preset push conditions to the first user.
[0057] Through this embodiment, a target map is constructed according to each user in the user group, the user's relative preference information between each two different data in the database, each data in the database, and the data label corresponding to each data. By capturing the relative preference information of the pairwise comparison, the implicit information of the user's preference can be learned, so that a more accurate preference prediction can be generated. Then, through the target map, the corresponding resources are allocated to the second user and the candidate data corresponding to the second user. Through the target map, the user's preference relationship for each data can be accurately and clearly known, so that the resource amount of each candidate data can be accurately determined. Finally, according to the resource amount of each candidate data, preference feature information is generated, so that the corresponding data to be pushed is searched according to the preference feature information, and the target data is pushed to the first user according to the data to be pushed. In this way, the embodiment of the present application can accurately and clearly know the user's preference relationship for each data through the target map, and can also learn the implicit information of the user's preference, so as to fully dig out the intrinsic connection information between the data browsed by the user, and thus improve the accuracy of the data to be pushed.
[0058] As an optional embodiment, S102 may specifically include:
[0059] Create a node for each user in the user group, each data in the database, and the data label corresponding to each data, and obtain the user layer, data layer, and label layer of the target graph;
[0060] Based on each data in the database, a target number of preference nodes are established to obtain a preference layer of the target graph. The target number is the number of data in the database minus one.
[0061] Link the data nodes of each data in the data layer with the corresponding target number of preference nodes and the label nodes of the corresponding data labels;
[0062] Based on the user's relative preference information between each two different data in the database, the user node of each user in the user layer is linked to the corresponding preference node in the preference layer;
[0063] Based on the linked user layer, preference layer, data layer and label layer, the target graph is obtained.
[0064] In this embodiment, the target number is the number of data in the database minus 1. For example, if there are three data in the database, three preference nodes are established for each data.
[0065] For example, if Figure 2As shown, the user preference data recommendation system first establishes a user node for each user User1, User2 and User3 in the user group to obtain the user layer of the target graph; then establishes a data node for each data report A, report B, report C, report D in the database to obtain the data layer of the target graph; then establishes a tag node for the data tags Atag, Btag, Ctag, Dtag corresponding to each data report A, report B, report C, report D in the database to obtain the tag layer of the target graph.
[0066] Then, three preference nodes are established for each data in the database. The three preference nodes corresponding to report A are A>B, A>C and A>D, the three preference nodes corresponding to report B are B>A, B>C and B>D, the three preference nodes corresponding to report C are C>A, C>B and C>D, and the three preference nodes corresponding to report D are D>A, D>B and D>C, thus obtaining the preference layer of the target graph.
[0067] Then, the data nodes corresponding to each data in the data layer are linked to the corresponding three preference nodes and the label nodes of the corresponding data labels. At the same time, based on the relative preference information of each user between every two different data in the database, the user node of each user in the user layer is linked to the corresponding preference node in the preference layer to obtain the target graph.
[0068] The specific form of the target graph is: G = <(U, P, R, T), (E up ,E pr ,E rt )>, where G represents the target graph, U is the set of all users in the user group, P is the set of all preference nodes, R is the set of all data in the database, and T is the set of data labels corresponding to all data.
[0069] E up is the set of all edges in the target graph that connect the user nodes in the user layer and the corresponding preference nodes in the preference layer; E pr is the set of all edges in the target graph that connect the preference nodes in the preference layer and the corresponding data nodes in the data layer; E rt It is the set of all edges between data nodes in the data layer and corresponding label nodes in the label layer in the target graph.
[0070] Through this embodiment, a target graph is constructed based on each user in the user group, the user's relative preference information between each two different data in the database, each data in the database, and the data label corresponding to each data. This helps to subsequently allocate corresponding resources to the candidate data corresponding to the second user through the target graph, thereby improving the accuracy of the data to be pushed.
[0071] As an optional embodiment, S103 may specifically include:
[0072] Allocate corresponding resources to the second user through the target graph;
[0073] The resources obtained by the second user are reallocated to the candidate data linked to the second user in the target graph.
[0074] In this embodiment, the user preference data recommendation system first allocates corresponding resources to the second user who has similar preferences to the first user through the target graph.
[0075] Then, relative preference information of the second user is obtained according to the target graph, and the resources obtained by the second user are reallocated to candidate data linked to the second user in the target graph based on the relative preference information of the second user.
[0076] Through this embodiment, through the target graph, the corresponding resources are first allocated to the second user with similar preferences to the first user, and then the resources obtained by the second user are allocated to the candidate data linked to the second user in the target graph. In this way, it is helpful to directly sort the candidate data according to the amount of resources they have, thereby determining the preference feature information of the first user and improving the accuracy of the data to be pushed.
[0077] As an optional embodiment, allocating corresponding resources to the second user through the target graph may specifically include:
[0078] Determine the preference intersection between the second user and the first user through the target graph, where the preference intersection is used to represent the same information between the relative preference information between each two different data in the database by the second user and the relative preference information between each two different data in the database by the first user;
[0079] Obtaining a first resource allocation quota corresponding to the second user according to the number of data nodes in the data layer of the target graph and the intersection of preferences between the second user and the first user;
[0080] Based on the first resource allocation quota corresponding to the second user, corresponding resources are allocated to the second user.
[0081] In this embodiment, the preference intersection is used to represent the same information between the relative preference information between each two different data in the database by the second user and the relative preference information between each two different data in the database by the first user.
[0082] For example, the relative preference information of user A is A>B, A>C and C>D, and the relative preference information of user B is A>B, B>C and C>D, then the preference intersection of user A and user B is A>B and C>D.
[0083] For example, the user preference data recommendation system first allocates a unit resource to each data accessed by the first user through the target graph. Then, the preference intersection between the second user and the first user is determined through the target graph, and then the first resource allocation quota corresponding to the second user is obtained based on the number of data nodes in the data layer of the target graph and the preference intersection between the second user and the first user. Finally, the corresponding resources are allocated to the second user based on the first resource allocation quota corresponding to the second user.
[0084] Specifically, the first resource allocation amount corresponding to the second user is determined by the following formula 1:
[0085]
[0086] Among them, r u′ represents the first resource allocation quota corresponding to the second user u′, m is the number of data nodes in the data layer of the target graph, represents the preference intersection between the second user u′ and the first user, and e represents the unit resource.
[0087] Through this embodiment, the first resource allocation quota corresponding to the second user can be obtained through the number of data nodes in the data layer of the target graph and the intersection of preferences between the second user and the first user. Finally, the corresponding resources are allocated to the second user according to the first resource allocation quota. In this way, it is helpful to allocate corresponding amounts of resources according to the different similarities of preferences between each second user and the first user, so that more resources are allocated to the second user with higher preference similarity with the first user, which helps to allocate more resources to the candidate data corresponding to the second user with higher preference similarity with the first user in the future, thereby improving the accuracy of the data to be pushed.
[0088] As an optional embodiment, reallocating the resources obtained by the second user to candidate data linked to the second user in the target graph includes:
[0089] Based on the preference intersection between the second user and the first user, a preference complement of the second user is obtained, and a subset corresponding to the preference complement of the second user is obtained, wherein the preference complement includes information that there is a difference between the relative preference information of the second user for each two different data in the database and the preference intersection;
[0090] Obtaining a second resource allocation quota corresponding to candidate data linked to the second user in the target graph based on the resources obtained by the second user, the second user's preference complement, and a subset corresponding to the second user's preference complement;
[0091] Based on the second resource allocation quota, corresponding resources are allocated to the candidate data linked to the second user in the target graph.
[0092] In this embodiment, the preference complement includes information that there is a difference between the relative preference information of the second user for each two different data in the database and the preference intersection.
[0093] For example, the relative preference information of user A is A>B, A>C and C>D, and the relative preference information of user B is A>B, B>C and C>D. The preference intersection of user A and user B is A>B and C>D, and the preference complement of user B is B>C.
[0094] For example, after the user preference data recommendation system allocates corresponding resources to the second user, the preference complement of the second user and the subset corresponding to the preference complement of the second user are obtained based on the preference intersection between the second user and the first user. Then, based on the resources obtained by the second user, the preference complement of the second user and the subset corresponding to the preference complement of the second user, the second resource allocation amount corresponding to the candidate data linked to the second user in the target graph is obtained. Finally, based on the second resource allocation amount corresponding to the candidate data linked to the second user, the corresponding resources are allocated to the candidate data linked to the second user in the target graph.
[0095] Specifically, the second resource allocation amount corresponding to the candidate data is determined by the following formula 2:
[0096]
[0097] Among them, r i u′ represents the second resource allocation quota corresponding to the i-th candidate data linked by the second user u′, r u′ represents the first resource allocation quota corresponding to the second user u′, represents the second user’s preference complement, Represents the subset corresponding to the i-th candidate data in the subset corresponding to the preference complement of the second user.
[0098] Through this embodiment, the second resource allocation quota corresponding to the candidate data linked to the second user in the target graph can be obtained through the resources obtained by the second user, the second user's preference complement, and the subset corresponding to the second user's preference complement. Finally, according to the second resource allocation quota, the corresponding resources are allocated to the candidate data linked to the second user in the target graph. In this way, it is helpful to allocate more resources to the candidate data corresponding to the second user with higher preference similarity with the first user, thereby improving the accuracy of the data to be pushed.
[0099] As an optional embodiment, S105 may specifically include:
[0100] Identifying the access address of the first user;
[0101] When it is identified that the access address of the first user is valid, the preference feature information of the first user is sent to the corresponding distributed data cache based on load balancing;
[0102] Searching the distributed data cache library for data to be pushed corresponding to the preference feature information of the first user;
[0103] When there is data to be pushed corresponding to the preference feature information of the first user in the distributed data cache, obtaining the corresponding data to be pushed in the distributed data cache;
[0104] When there is no data to be pushed corresponding to the preference feature information of the first user in the distributed data cache, the corresponding data to be pushed in the database is obtained.
[0105] In this embodiment, after generating the preference feature information of the first user, the user preference data recommendation system first identifies the access IP address of the first user. If the access IP address of the first user is on the blacklist or is an illegal request, the user preference data recommendation system will automatically filter and kick out. If the number of requests initiated by the first user within the target time range exceeds the preset threshold, the user preference data recommendation system will lock the first user, restrict the first user from accessing data, and add the corresponding access IP address of the first user to the blacklist.
[0106] When it is identified that the first user's access address is valid, the user preference data recommendation system will reasonably allocate the first user's preference feature information according to the Nginx cluster's own load balancing, and send the first user's preference feature information to the distributed redis cache module for data access to match authorized data.
[0107] Then, a search is performed in the distributed redis cache module to determine whether there is data to be pushed corresponding to the preference feature information of the first user. If the distributed redis cache module can access the corresponding data to be pushed through the redis cache, the corresponding data to be pushed is directly obtained from the redis cache. If the distributed redis cache module cannot access the corresponding data to be pushed through the redis cache, the oracle database is directly accessed to obtain the corresponding data to be pushed from the oracle database, and the data update module is notified to load the corresponding data to be pushed in the accessed oracle database into the redis cache module.
[0108] After obtaining the data to be pushed corresponding to the first user, the user preference data recommendation system will return the corresponding data to be pushed to the client, and the client will preload the function points and data through the VUE front-end framework routing technology. When the user clicks on the data recommendation function, the data can be directly obtained from the preloaded data on the front end without accessing the data interface.
[0109] Through this embodiment, the data to be pushed is pre-stored in the redis cache. When the user logs in to trigger the preference push function, the load balancing module requests the data to be pushed, and uses the redis cache module to respond to the data request, which can improve the data response speed and solve the problem that the current Internet device data access speed is limited by the database data access.
[0110] As an optional embodiment, before S101, the data push method may further include:
[0111] Based on the amount of data in the database and the number of users in the user database, determine the sparsity of the user topic matrix, which is a matrix constructed based on the behavior data of each user in the user database on each data in the database;
[0112] According to the sparsity of the user-topic matrix, a target user clustering method corresponding to the sparsity of the topic matrix is selected from the candidate user clustering methods;
[0113] The users in the user database are grouped by a target user clustering method to obtain at least one user group.
[0114] In this embodiment, the user topic matrix is a matrix constructed based on the behavior data of each user in the user library on each data in the database. For example, the behavior data may include at least one of access behavior data, collection behavior data, and comment behavior data.
[0115] For example, the user preference data recommendation system calculates the sparsity of the user topic matrix based on the amount of data in the database and the number of users in the user database. Specifically, it can be calculated by the following formula:
[0116] Formula 3 determines the sparsity of the user-topic matrix:
[0117]
[0118] Among them, SP represents the sparsity of the user-topic matrix, nR represents the number of non-zero elements in the user-topic matrix, nUSER represents the number of users in the user database, and nITEM represents the number of data in the database.
[0119] After determining the sparsity of the user topic matrix, a target user clustering method corresponding to the sparsity of the topic matrix is selected from each candidate user clustering method according to the sparsity of the user topic matrix. Finally, the users in the user database are grouped by the target user clustering method to obtain at least one user group.
[0120] Through this embodiment, an appropriate target user clustering method is selected according to the sparsity of the user topic matrix, and then the users in the user database are grouped by the target user clustering method to obtain at least one user group. This can adapt to the complex characteristics of data permissions between different users in the user preference data recommendation system, automatically group and model users, and avoid the problem of pushing data outside the permission caused by full user modeling.
[0121] As an optional embodiment, the target user clustering method is a hybrid clustering method.
[0122] By clustering the target users, the users in the user database are grouped to obtain at least one user group, which may specifically include:
[0123] According to the user's access time to each data in the database, the user's numerical vector is obtained;
[0124] According to the user's business role attributes, the user's classification vector is obtained;
[0125] The user's numerical vector is merged with the corresponding user's classification vector to obtain a mixed vector for each user in the user database;
[0126] According to the mixed vectors of the users in the user database, the users in the user database are grouped to obtain at least one user group.
[0127] In this embodiment, the numerical vector is used to represent the user's access time to each data in the database. The classification vector is used to represent the user's business role attributes. For example, the user's business role attributes include at least one of the number of reports within the user's authority, business category, department classification, rank category, and position category.
[0128] For example, if Figure 3 As shown, the user-topic matrix first calculates the sparsity of the user-topic matrix and then determines the sparsity of the user-topic matrix.
[0129] When the sparsity SP of the user topic matrix is less than the minimum threshold a, it is determined that the user topic matrix has low sparsity, and the numerical clustering method based on the k-means method is selected; when the sparsity SP of the user topic matrix is between the minimum threshold a and the maximum threshold b, it is determined that the user topic matrix has average sparsity, and the mixed clustering method of classification-numerical vector based on the ROCK algorithm is selected; when the sparsity SP of the user topic matrix is greater than the maximum threshold b, it is determined that the user topic matrix has high sparsity, and the two-stage clustering method is selected, with classification clustering in the first stage and numerical clustering in the second stage.
[0130] Finally, the users are clustered by the selected target user clustering method to obtain at least one user group.
[0131] When the target user clustering method is a hybrid clustering method, firstly, the user's numerical vector is obtained according to the user's access time to each data in the database, and the user's classification vector is obtained according to the user's business role attribute.
[0132] Then the numerical vector of the user is fused with the corresponding classification vector of the user to obtain a mixed vector of each user in the user library. Finally, the users in the user library are grouped according to the mixed vector of each user in the user library to obtain at least one user group.
[0133] Through this embodiment, according to the sparsity of the user topic matrix, an appropriate target user clustering method is selected. When the user topic matrix is of average sparsity, a hybrid clustering method of classification-numerical vector based on the ROCK algorithm is selected to group the users in the user database to obtain at least one user group. This can adapt to the complex characteristics of data permissions between different users in the user preference data recommendation system, automatically group and model users, and avoid the problem of pushing data outside the permission caused by full user modeling.
[0134] Based on the data push method, accordingly, the present application also provides a specific embodiment of the data push device.
[0135] like Figure 4 As shown, the data push device provided in the embodiment of the present application includes a user group determination module 410, a graph construction module 420, a resource allocation module 430, an information generation module 440, a data search module 450 and a data push module 460.
[0136] The user group determination module 410 is used to determine the user group corresponding to the first user according to the user identification information of the first user in response to the login operation of the first user, and the data access rights of the users in the user group are the same.
[0137] The graph construction module 420 is used to construct a target graph based on each user in the user group, the user's relative preference information between each two different data in the database, each data in the database, and the data label corresponding to each data. The target graph includes a user layer constructed based on each user in the user group, a preference layer constructed based on the user's relative preference information between each two different data in the database, a data layer constructed based on each data in the database, and a label layer constructed based on the data label corresponding to each data.
[0138] The resource allocation module 430 is used to allocate corresponding resources to the second user and the candidate data corresponding to the second user through the target graph. The second user is a user in the user group other than the first user, and the candidate data is data in the database that has not been accessed by the first user.
[0139] The information generating module 440 is used to generate preference characteristic information of the first user according to the resource amount of the candidate data corresponding to each second user.
[0140] The data search module 450 is used to search the data to be pushed corresponding to the preference characteristic information from the database.
[0141] The data pushing module 460 is used to push target data to the first user according to the data to be pushed, where the target data is data that meets a preset push condition in the data to be pushed.
[0142] Through this embodiment, a target map is constructed according to each user in the user group, the user's relative preference information between each two different data in the database, each data in the database, and the data label corresponding to each data. By capturing the relative preference information of the pairwise comparison, the implicit information of the user's preference can be learned, so that a more accurate preference prediction can be generated. Then, through the target map, the corresponding resources are allocated to the second user and the candidate data corresponding to the second user. Through the target map, the user's preference relationship for each data can be accurately and clearly known, so that the resource amount of each candidate data can be accurately determined. Finally, according to the resource amount of each candidate data, preference feature information is generated, so that the corresponding data to be pushed is searched according to the preference feature information, and the target data is pushed to the first user according to the data to be pushed. In this way, the embodiment of the present application can accurately and clearly know the user's preference relationship for each data through the target map, and can also learn the implicit information of the user's preference, so as to fully dig out the intrinsic connection information between the data browsed by the user, and thus improve the accuracy of the data to be pushed.
[0143] As an optional embodiment, the graph construction module 420 specifically includes the following units:
[0144] A node establishment unit is used to establish a node for each user in the user group, each data in the database, and the data label corresponding to each data, so as to obtain the user layer, data layer and label layer of the target graph;
[0145] The node establishment unit is further used to establish a target number of preference nodes based on each data in the database to obtain a preference layer of the target graph, where the target number is the number of data in the database minus one;
[0147] A node linking unit is used to link the data node of each data in the data layer with the corresponding target number of preference nodes and the label node of the corresponding data label;
[0148] The node linking unit is further used to link the user node of each user in the user layer with the corresponding preference node in the preference layer based on the relative preference information between each two different data in the database by the user;
[0149] The graph generation unit is used to obtain a target graph based on the linked user layer, preference layer, data layer and label layer.
[0150] As an optional embodiment, the resource allocation module 430 specifically includes the following units:
[0151] A first resource allocation unit, configured to allocate corresponding resources to the second user through a target graph;
[0152] The second resource allocation unit is used to reallocate the resources obtained by the second user to the candidate data linked to the second user in the target graph.
[0153] As an optional embodiment, the first resource allocation unit specifically includes the following subunits:
[0154] An intersection determination subunit, used to determine the preference intersection between the second user and the first user through the target graph, wherein the preference intersection is used to represent the same information between the relative preference information of the second user for each two different data in the database and the relative preference information of the first user for each two different data in the database;
[0155] A first quota determination subunit is used to obtain a first resource allocation quota corresponding to the second user according to the number of data nodes in the data layer of the target graph and the intersection of preferences between the second user and the first user;
[0156] The first resource allocation subunit is configured to allocate corresponding resources to the second user based on the first resource allocation quota corresponding to the second user.
[0157] As an optional embodiment, the second resource allocation unit specifically includes the following subunits:
[0158] a complement determination subunit, configured to obtain, based on the preference intersection between the second user and the first user, a preference complement of the second user and a subset corresponding to the preference complement of the second user, wherein the preference complement includes information on the difference between the relative preference information of the second user for each two different data in the database and the preference intersection;
[0159] A second quota determination subunit is used to obtain a second resource allocation quota corresponding to the candidate data linked to the second user in the target graph based on the resources obtained by the second user, the preference complement of the second user and the subset corresponding to the preference complement of the second user;
[0160] The second resource allocation subunit allocates corresponding resources to the candidate data linked to the second user in the target graph based on the second resource allocation quota.
[0161] As an optional embodiment, the data search module 450 specifically includes the following units:
[0162] An address identification unit, used to identify the access address of the first user;
[0163] A feature sending unit, configured to send the first user's preference feature information to a corresponding distributed data cache based on load balancing when recognizing that the first user's access address is valid;
[0164] A data search unit, used to search the distributed data cache for data to be pushed corresponding to the preference feature information of the first user;
[0165] A data acquisition unit, configured to acquire the corresponding data to be pushed in the distributed data cache when there is data to be pushed corresponding to the preference feature information of the first user in the distributed data cache;
[0166] The data acquisition unit is further used to acquire the corresponding data to be pushed in the database when there is no data to be pushed corresponding to the preference feature information of the first user in the distributed data cache.
[0167] As an optional embodiment, the data push device further includes the following modules:
[0168] A sparsity determination module, used to determine the sparsity of a user topic matrix based on the amount of data in the database and the amount of users in the user database, where the user topic matrix is a matrix constructed based on the behavior data of each user in the user database on each data in the database;
[0169] A method selection module is used to select a target user clustering method corresponding to the sparsity of the topic matrix from the candidate user clustering methods according to the sparsity of the user topic matrix;
[0170] The user grouping module is used to group users in the user database by means of target user clustering to obtain at least one user group.
[0171] As an optional embodiment, the target user clustering method is a hybrid clustering method, and the user grouping module specifically includes the following units:
[0172] A value determination unit, used to obtain a user's value vector according to the user's access duration to each data in the database;
[0173] A classification determination unit, used to obtain a classification vector of the user according to the business role attribute of the user;
[0174] A vector fusion unit, used to fuse the user's numerical vector with the corresponding user's classification vector to obtain a mixed vector for each user in the user database;
[0175] The user grouping unit is used to group the users in the user library according to the mixed vectors of the users in the user library to obtain at least one user group.
[0176] Based on the data push method, accordingly, the present application also provides a specific embodiment of the data push device.
[0177] Figure 5 A schematic diagram of the hardware structure of a data push device provided in an embodiment of the present application is shown.
[0178] The data push device may include a processor 501 and a memory 502 storing computer program instructions.
[0179] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0180] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.
[0181] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0182] The processor 501 implements any one of the data pushing methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .
[0183] In one example, the data push device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.
[0184] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0185] Bus 510 includes hardware, software or both, and the parts of data push equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0186] In addition, in combination with the data push method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data push methods in the above embodiment is implemented.
[0187] In addition, in combination with the data push method in the above embodiment, the embodiment of the present application can provide a computer program product to implement. When the instructions in the computer program product are executed by the processor of the electronic device, any one of the data push methods in the above embodiment is implemented.
[0188] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0189] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0190] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0191] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0192] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A data push method, It is characterized in that include: In response to a login operation of a first user, determining a user group corresponding to the first user according to the user identification information of the first user, wherein each user in the user group has the same data access rights; According to each user in the user group, the relative preference information of the user for each two different data in the database, each data in the database and the data label corresponding to each data, a target graph is constructed, wherein the target graph includes a user layer constructed with each user in the user group, a preference layer constructed with the relative preference information of the user for each two different data in the database, a data layer constructed with each data in the database and a label layer constructed with the data label corresponding to each data; Allocate corresponding resources to a second user and candidate data corresponding to the second user through the target graph, wherein the second user is a user in the user group other than the first user, and the candidate data is data in the database that has not been accessed by the first user; generating preference feature information of the first user according to the resource amount of the candidate data corresponding to each of the second users; Searching the database for data to be pushed corresponding to the preference feature information; According to the data to be pushed, target data is pushed to the first user, where the target data is data in the data to be pushed that meets a preset push condition.
2. The method according to claim 1, It is characterized in that The target graph is constructed according to each user in the user group, the relative preference information between each two different data in the database by the user, each data in the database and the data label corresponding to each data, including: A node is established for each user in the user group, each data in the database, and the data label corresponding to each data, respectively, to obtain the user layer, data layer, and label layer of the target graph; Based on each data in the database, respectively establish a target number of preference nodes to obtain a preference layer of a target graph, where the target number is the number of data in the database minus one; Link the data nodes of each data in the data layer with the corresponding target number of preference nodes and the label nodes of the corresponding data labels; Based on the relative preference information between each two different data in the database by the user, linking the user node of each user in the user layer with the corresponding preference node in the preference layer; Based on the linked user layer, preference layer, data layer and label layer, the target graph is obtained.
3. The method according to claim 1, It is characterized in that The allocating corresponding resources to the second user and the candidate data corresponding to the second user through the target graph includes: Allocating corresponding resources to the second user through the target graph; The resources obtained by the second user are reallocated to the candidate data linked to the second user in the target graph.
4. The method according to claim 3, It is characterized in that The allocating corresponding resources to the second user through the target graph includes: Determine, by using the target graph, a preference intersection between the second user and the first user, wherein the preference intersection is used to represent the same information between the relative preference information of the second user for each two different data in the database and the relative preference information of the first user for each two different data in the database; Obtaining a first resource allocation quota corresponding to the second user according to the number of data nodes in the data layer of the target graph and the intersection of preferences between the second user and the first user; Based on the first resource allocation quota corresponding to the second user, corresponding resources are allocated to the second user.
5. The method according to claim 3, It is characterized in that The reallocating the resources obtained by the second user to the candidate data linked to the second user in the target graph includes: Based on the preference intersection between the second user and the first user, obtaining a preference complement of the second user and a subset corresponding to the preference complement of the second user, wherein the preference complement includes information that there is a difference between the relative preference information of the second user for each two different data in the database and the preference intersection; Obtaining a second resource allocation amount corresponding to the candidate data linked to the second user in the target graph based on the resources obtained by the second user, the preference complement of the second user, and a subset corresponding to the preference complement of the second user; Based on the second resource allocation quota, corresponding resources are allocated to the candidate data linked to the second user in the target graph.
6. The method according to any one of claims 1 to 5, It is characterized in that The searching the database for the data to be pushed corresponding to the preference feature information includes: Identifying the access address of the first user; When it is identified that the access address of the first user is valid, the preference feature information of the first user is sent to the corresponding distributed data cache based on load balancing; Searching whether there is data to be pushed corresponding to the preference feature information of the first user in the distributed data cache; If there is data to be pushed corresponding to the preference feature information of the first user in the distributed data cache, acquiring the corresponding data to be pushed in the distributed data cache; When there is no data to be pushed corresponding to the preference feature information of the first user in the distributed data cache, the corresponding data to be pushed in the database is obtained.
7. The method according to any one of claims 1 to 5, It is characterized in that Before determining the user group corresponding to the first user according to the user identification information of the first user in response to the login operation of the first user, the method further includes: Based on the amount of data in the database and the number of users in the user library, determine the sparsity of the user topic matrix, where the user topic matrix is a matrix constructed based on the behavior data of each user in the user library on each data in the database; According to the sparsity of the user topic matrix, selecting a target user clustering method corresponding to the sparsity of the topic matrix from the candidate user clustering methods; The users in the user database are grouped by the target user clustering method to obtain at least one user group.
8. The method according to claim 7, It is characterized in that The target user clustering method is a hybrid clustering method. The step of grouping users in the user database by the target user clustering method to obtain at least one user group includes: Obtaining a user's numerical vector according to the user's access duration to each data in the database; According to the user's business role attributes, the user's classification vector is obtained; Merging the numerical vector of the user with the corresponding classification vector of the user to obtain a mixed vector of each user in the user database; The users in the user database are grouped according to the mixed vectors of the users in the user database to obtain at least one user group.
9. A data push device, It is characterized in that include: A user group determination module, configured to determine, in response to a login operation of a first user, a user group corresponding to the first user according to the user identification information of the first user, wherein the data access rights of the users in the user group are the same; A graph construction module, for constructing a target graph according to each user in the user group, the relative preference information between each two different data in the database by the user, each data in the database and the data label corresponding to each data, wherein the target graph includes a user layer constructed with each user in the user group, a preference layer constructed with the relative preference information between each two different data in the database by the user, a data layer constructed with each data in the database and a label layer constructed with the data label corresponding to each data; a resource allocation module, configured to allocate corresponding resources to a second user and candidate data corresponding to the second user through the target graph, wherein the second user is a user in the user group other than the first user, and the candidate data is data in the database that has not been accessed by the first user; An information generating module, configured to generate preference characteristic information of the first user according to the resource amount of the candidate data corresponding to each of the second users; A data search module, used for searching the database for data to be pushed corresponding to the preference feature information; The data push module is used to push target data to the first user according to the data to be pushed, wherein the target data is data in the data to be pushed that meets a preset push condition.
10. An electronic device, It is characterized in that The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the data push method according to any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data push method according to any one of claims 1 to 8 is implemented.
12. A computer program product, It is characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the data push method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Film recommendation method, device and equipment and readable storage medium
CN117061796A
