Policy information recommendation method and device, electronic equipment and storage medium
By constructing information knowledge graphs and user portraits, and combining user feedback information for model optimization, the problem of low priority in policy information push and dissatisfaction with user needs has been solved, and accurate recommendation of policy information and improvement of user stickiness have been achieved.
Patent Information
- Application Number
- CN202410717116.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-27
AI Technical Summary
Policy information has a low priority when pushed on the Internet, and extensive recommendations cannot meet the needs of users in different fields, resulting in a decrease in user stickiness.
By constructing information knowledge graphs and user portraits, the policy recommendation results are determined based on the knowledge graph and user portraits, and incremental training is performed through user feedback information to optimize the recommendation model.
It achieves accurate recommendation of policy information, improves user stickiness, and meets the needs of users in different fields.
Smart Images

Figure CN118708707A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information push, and in particular to a policy information recommendation method, device, electronic device and storage medium. Background Art
[0002] As more and more policies are introduced, policy information is springing up on the Internet. However, compared with entertainment information, which is easier to attract traffic, policy information is often not given as high a priority as entertainment information. Secondly, users in different fields have different needs for different policies. Broad and untargeted recommendations will only gradually reduce the relevance of policy information to users. Therefore, how to achieve accurate recommendations to improve user stickiness has become the core issue in building a policy information recommendation system. Summary of the invention
[0003] In view of this, an object of the present invention is to provide a policy information recommendation method, device, electronic device and storage medium to achieve accurate recommendation of policy information, thereby improving user stickiness.
[0004] In the first aspect, an embodiment of the present invention provides a policy information recommendation method, which constructs an information knowledge graph corresponding to the policy information to be recommended; constructs a user portrait corresponding to the user to be recommended based on the user feature information of the user to be recommended; and determines the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait.
[0005] In a preferred embodiment of the present invention, the above-mentioned determination of the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait includes: constructing a policy recommendation model based on the information knowledge graph and the user portrait; making policy recommendations to the user to be recommended based on the policy recommendation model, and obtaining the policy recommendation result corresponding to the user to be recommended.
[0006] In a preferred embodiment of the present invention, the above method also includes: obtaining user feedback information of the recommended user regarding the policy recommendation result; based on the user feedback information, performing incremental training on the policy recommendation model to obtain a trained policy recommendation model.
[0007] In a preferred embodiment of the present invention, the user feedback information includes user feedback sub-information of at least one feedback action for the user to be recommended; wherein the feedback action includes at least one of click, browsing time, like, comment, and forward.
[0008] In a preferred embodiment of the present invention, the above-mentioned incremental training of the policy recommendation model based on user feedback information to obtain the trained policy recommendation model includes: determining the influence weight corresponding to each user feedback sub-information; based on each user feedback sub-information, and the influence weight corresponding to each user feedback sub-information, incremental training of the policy recommendation model to obtain the trained policy recommendation model.
[0009] In a preferred embodiment of the present invention, the above-mentioned construction of the information knowledge graph corresponding to the policy information to be recommended includes: obtaining structured policy information of at least one user and unstructured policy information of at least one user; based on the structured policy information and the unstructured policy information, constructing the information knowledge graph corresponding to the policy information to be recommended.
[0010] In a preferred embodiment of the present invention, the above-mentioned construction of an information knowledge graph corresponding to the policy information to be recommended based on structured policy information and unstructured policy information includes: defining a policy information ontology; constructing an initial knowledge graph containing the relationship between policy information and applicable group conceptual entities based on the policy information ontology and structured policy information; integrating the unstructured policy information into the initial knowledge graph to obtain an information knowledge graph corresponding to the policy information to be recommended.
[0011] In a second aspect, an embodiment of the present invention further provides a policy information recommendation device, the device comprising: an information knowledge graph construction module, used to construct an information knowledge graph corresponding to the policy information to be recommended;
[0012] The user portrait construction module is used to construct the user portrait corresponding to the user to be recommended based on the user feature information of the user to be recommended; the policy recommendation result determination module is used to determine the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait.
[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the policy information recommendation method of the first aspect mentioned above.
[0014] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the policy information recommendation method of the first aspect mentioned above.
[0015] The embodiments of the present invention bring the following beneficial effects:
[0016] The embodiment of the present invention provides a policy information recommendation method, device, electronic device and storage medium, which constructs an information knowledge graph corresponding to the policy information to be recommended, constructs a user portrait corresponding to the user to be recommended based on the user feature information of the user to be recommended, and then determines the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait. In this method, by constructing the information knowledge graph and the user portrait, and determining the policy recommendation result based on the knowledge graph and the user portrait, accurate recommendation of policy information is achieved, thereby improving user stickiness.
[0017] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0018] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A flowchart of a policy information recommendation method provided by an embodiment of the present invention;
[0021] Figure 2 A flowchart of another policy information recommendation method provided by an embodiment of the present invention;
[0022] Figure 3 A flowchart of another policy information recommendation method provided by an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of the structure of a policy information recommendation device provided by an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] As more and more policies are introduced, policy information is springing up on the Internet. However, compared with entertainment information, which is easier to attract traffic, policy information is often not given as high a priority as entertainment information. Secondly, users in different fields have different needs for different policies. Broad and untargeted recommendations will only gradually reduce the relevance of policy information to users. Therefore, how to achieve accurate recommendations to improve user stickiness has become the core issue in building a policy information recommendation system.
[0027] Furthermore, most current recommendations only focus on the construction of policy information, while ignoring the construction of user portraits, which makes the recommendation system still insufficient in terms of accurate recommendation of policy information.
[0028] Based on this, the embodiments of the present invention provide a policy information recommendation method, device, electronic device and storage medium, which can construct an information knowledge graph corresponding to the policy information to be recommended, construct a user portrait corresponding to the user to be recommended based on the user feature information of the user to be recommended, and then determine the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait. In this method, by constructing the information knowledge graph and the user portrait, and determining the policy recommendation result based on the knowledge graph and the user portrait, accurate recommendation of policy information is achieved, thereby improving user stickiness.
[0029] To facilitate understanding of this embodiment, a policy information recommendation method disclosed in an embodiment of the present invention is first introduced in detail.
[0030] Example 1
[0031] The embodiment of the present invention provides a policy information recommendation method. Figure 1 Flow chart of a policy information recommendation method provided by an embodiment of the present invention. Figure 1 As shown, the policy information recommendation method may include the following steps:
[0032] Step S101, constructing an information knowledge graph corresponding to the policy information to be recommended.
[0033] Among them, data can be collected first, and then an information knowledge graph can be constructed based on the collected data.
[0034] Among them, n user data U can be collectedC = {u 1 ,u 2 ,u 3 ,…,u n} and the corresponding m s Structured policy information With m u Unstructured policy information An information knowledge graph is constructed through the user's structured policy information and the user's unstructured policy information.
[0035] Among them, structured policy information can be information such as policy information subject, policy information publication time, policy information applicable groups and policy information application scenarios, which are stored in SQL (Structured Query Language) database. Policy information applicable groups indicate that a certain type of policy information is suitable for a certain group of people to read, for example, livelihood policies are suitable for the general public, and agricultural policies are suitable for people engaged in farming.
[0036] Among them, the user information is stored in the SQL database, and the user information may include user ID (Identification), personal tags, preferences, posts, likes, comments, reposts, follow and follow information, and user interaction history records.
[0037] The crawler can filter out unstructured policy information that meets the requirements by obtaining HTML (HyperText Markup Language) tags, and save the information including but not limited to title, body content and comment details in an SQL database.
[0038] Step S102: construct a user portrait corresponding to the user to be recommended based on the user feature information of the user to be recommended.
[0039] The user characteristic information may include user characteristics and user community information, and the user characteristics may include text user characteristic information and non-text characteristic information.
[0040] Among them, the text user feature information is obtained by extracting key information from the text information in the collected data through natural language processing technology, and the user community information is extracted through community detection technology on the user's social network.
[0041] Among them, text information may include but is not limited to user posts, user comments and other information, non-text information may include but is not limited to the number of fans, number of likes and other information, and the user social network is built based on the user's follow list and followed list.
[0042] Specifically, the key information of the text information is extracted through the TF-IDF algorithm, and the non-text information is embedded through the Doc2Vec algorithm. The embedded information is given different weights through the attention network and aggregated into user node embedding.
[0043] Among them, the stored data can be obtained from the SQL database, and the text information therein can be used to extract key information through the TF-IDF algorithm to obtain the core information, and then embedded through the Doc2Vec algorithm to embed the non-text information, and the embedded information is given different weights through the attention network to aggregate the information into user node embedding to obtain the embedding vector E 1 .
[0044] The user ID in the user information is simplified into a digital index for embedding, and the embedding vector U is obtained. C = {u 1 ,u 2 ,…,u n}, the rest of the user information except the user ID is embedded as features to obtain the feature embedding vector E 2 ,…,E n .
[0045] Among them, the text information and feature embedding can be aggregated by assigning different weights through the attention network according to the following formula (1) to obtain the aggregated embedding
[0046]
[0047] in, represents aggregate embedding, σ(·) represents the activation function, W represents the weight in the learnable parameter, n represents the number of feature embeddings, a represents the feature embedding index, represents the embedding weight of user attributes under the attention network, E a represents the feature embedding vector, and b represents the bias in the learnable parameters.
[0048] Furthermore, the aggregate embedding is concatenated with the user index embedding, i.e. To construct a user node embedding containing user features, where u i ∈U C .
[0049] Specifically, the fn (fast newman) algorithm is used to divide and record user community information, and all user nodes in the same community are aggregated with the user nodes through the attention network to construct a user portrait.
[0050] Among them, the user social network is constructed by the user's following and followed lists, and the user is embedded in ui ∈U C As a network node, the fn (fast newman) algorithm is used to divide the user community information, and the user community C is obtained as (c 1 ,c 2 ,…,c u ). The neighbor node embedding of the user's community is aggregated through the attention network according to the following formula (2) and then connected with the user node embedding, that is,
[0051]
[0052] Among them, α c represents the embedding weight coefficient of the user community neighbor node in the attention network, u c Represents user u i Community 1 Neighbor user node, u i ∈U C By updating user u i The embedded representation of C = {u 1 ,u 2 ,…,u n}.
[0053] Step S103, based on the information knowledge graph and user portrait, determine the policy recommendation result corresponding to the user to be recommended.
[0054] Among them, a policy recommendation model can be constructed through information knowledge graph and user portrait, and then the policy recommendation model can be used to make policy recommendations to the recommended users to obtain the policy recommendation results corresponding to the recommended users.
[0055] Among them, the policy recommendation model can be trained through pre-processed policy information and user portraits, and a recommendation list can be constructed according to the output of the trained policy recommendation model to recommend relevant policy information to users.
[0056] Among them, the policy recommendation model can be incrementally trained according to the user's recommendation feedback after the recommendation to the user. Specifically, the user's feedback information can be collected and assigned different weights, and then input into the policy recommendation model for incremental training to improve the quality of policy recommendations.
[0057] The policy information recommendation method provided by the embodiment of the present invention can construct an information knowledge graph corresponding to the policy information to be recommended, construct a user portrait corresponding to the user to be recommended based on the user feature information of the user to be recommended, and then determine the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait. In this method, by constructing the information knowledge graph and the user portrait, and determining the policy recommendation result based on the knowledge graph and the user portrait, accurate recommendation of policy information is achieved, thereby improving user stickiness.
[0058] Example 2
[0059] An embodiment of the present invention also provides another policy information recommendation method; this method is implemented on the basis of the method in the above embodiment; this method focuses on describing the specific implementation method of determining the policy recommendation results corresponding to the user to be recommended based on the information knowledge graph and user portrait.
[0060] Figure 2 A flowchart of another policy information recommendation method provided by an embodiment of the present invention, such as Figure 2 As shown, the method for determining the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait may include the following steps:
[0061] Step S201, construct a policy recommendation model based on the information knowledge graph and user portrait.
[0062] Among them, the data set is constructed by information knowledge graph, specifically the policy information I that users have interacted with P ={i 1 ,i 2 ,…,i p} as positive samples, and n policy information that has not been interacted with is randomly selected from the information knowledge graph corresponding to each positive sample as negative samples I N ={i 1 ,i 2 ,…,i n}. Positive and negative samples and corresponding user information constitute the dataset I of the recommendation system u =I P ∪I N , and thus construct the user-item graph G = (U c ,I u ,E), the edge set is
[0063] Among them, the recommendation system project embedding construction is that for each policy information entity point in the information knowledge graph, the recommendation system embeds the policy information entity point through TransE u At the same time, the m neighboring entity points with the same applicable group relationship of the entity point are embedded through TransE The m neighbor nodes are aggregated by the attention network according to the following formula (3) and given different weights, and connected to the entity point, that is, Get the project embed:
[0064]
[0065] in, represents item embedding, σ(·) represents activation function, W represents the weight in learnable parameters, represents the embedding of the ath neighbor node, α a represents the embedding coefficient of the neighbor node under the attention network, and b represents the bias in the learnable parameters.
[0066] At this time, the item embedding set corresponding to each user node is
[0067] Among them, the recommendation system user embedding construction, for each user node, the recommendation system reads the user portrait U C = {u 1 ,u 2 ,…,u n Different weights are assigned to user-item interaction information including but not limited to clicks, browsing time, likes, comments, and forwarding φ={β 1 ,β 2 ,…,β k}, the item embeddings are fused with the interaction information weights to update the policy information embedding for subsequent training.
[0068] Specifically, the policy information embedding and interaction information weight are integrated through the following formula (4):
[0069] )
[0070] Among them, i u ∈I u . β k represents the weight, i u Indicates that the item is embedded.
[0071] Among them, the output probability prediction is specifically to use the user-item interaction graph G as the index and read the user portrait embedding U in the dataset C Embedded with Policy Information Project I u , connect the embedding of user nodes and policy information entity points, that is, The final click probability p is obtained by multi-layer perceptron output through the following formula (5):
[0072] p=softmax(W 2 (W 1 p+b 1 )+b2 ) (5)
[0073] Among them, p represents the click probability, softmax(·) represents the normalization function, and W 1 , W 2 represents the weight of the learnable parameters, b 1 , b 2 represents the bias in the learnable parameters.
[0074] Among them, the click probability will be used to construct the user-policy information click probability matrix P rows×cols , the subscript rows is U c The number of users in the subscript cols is I u The total number of positive and negative sample items in . The cross entropy loss between the click probability of the user-item and the actual interaction value is calculated by the following formula (6):
[0075]
[0076] in, represents the cross entropy loss, U c is the user set, I u is the user's interactive item set, p represents the click probability, R u,i represents the user-item click label under the user-item interaction graph G of the recommendation module, R u,i =1 means interaction, R u,i = 0 means no interaction. Iteratively update the trainable parameters in the recommendation module and train the policy recommendation model.
[0077] Among them, constructing the recommendation list is to take the click probability matrix P of the user node and the policy information entity point, where the column index cols is the policy information embedding index, the row index rows is the user embedding index, and the matrix value corresponds to (rows i ,cols j )’s click probability p ij For each user, take the corresponding rows of the probability matrix i The policy information corresponding to the probability of the first k_hop items is used as the recommendation list.
[0078] Step S202: performing policy recommendations on the user to be recommended based on the policy recommendation model, and obtaining policy recommendation results corresponding to the user to be recommended.
[0079] Furthermore, the method may also include: obtaining user feedback information of the recommended user regarding the policy recommendation result; and performing incremental training on the policy recommendation model based on the user feedback information to obtain a trained policy recommendation model.
[0080] The user feedback information includes user feedback sub-information of at least one feedback action for the user to be recommended; the feedback action includes at least one of click, browsing time, like, comment, and forward.
[0081] Among them, the cross entropy loss between the click probability of the user-item and the actual interaction value under the user-item is calculated, and the trainable parameters in the recommendation module are iteratively updated to train the policy recommendation model.
[0082] Specifically, based on user feedback information, incrementally training the policy recommendation model to obtain the trained policy recommendation model can include: determining the influence weight corresponding to each user feedback sub-information; based on each user feedback sub-information, and the influence weight corresponding to each user feedback sub-information, incrementally training the policy recommendation model to obtain the trained policy recommendation model.
[0083] Among them, the recommendation system records each user's interaction information on the policy information in the recommendation list, and assigns different weights to different feedback actions, such as different weights for clicks, browsing time, likes, comments, and forwarding.
[0084] The policy information recommendation method provided in the embodiment of the present invention adopts an information knowledge graph to construct a policy information database and uses community detection to classify user groups, thereby making up for the deficiency of existing recommendation systems that ignores user portrait construction and cannot accurately recommend policy information, making the recommendation results more in line with actual needs, and by continuously collecting user feedback information and returning it to the policy recommendation model for incremental training, the recommendation effect can be gradually improved.
[0085] Example 3
[0086] An embodiment of the present invention also provides another policy information recommendation method; this method is implemented on the basis of the method in the above embodiment; this method focuses on describing the specific implementation method of constructing an information knowledge graph corresponding to the policy information to be recommended.
[0087] Figure 3 A flowchart of another policy information recommendation method provided by an embodiment of the present invention, such as Figure 3 As shown, the construction of the information knowledge graph corresponding to the policy information to be recommended may include the following steps:
[0088] Step S301: acquiring structured policy information of at least one user and unstructured policy information of at least one user.
[0089] Among them, the user's structured policy information and unstructured policy information can be obtained from the SQL database.
[0090] Step S302: construct an information knowledge graph corresponding to the policy information to be recommended based on the structured policy information and the unstructured policy information.
[0091] Among them, the policy information ontology can be used to construct an information knowledge graph, and establish the relationship between policy information and the conceptual entities of the policy information applicable groups.
[0092] Specifically, based on structured policy information and unstructured policy information, constructing an information knowledge graph corresponding to the policy information to be recommended can include: defining a policy information ontology; based on the policy information ontology and structured policy information, constructing an initial knowledge graph containing the relationship between policy information and applicable group conceptual entities; integrating the unstructured policy information into the initial knowledge graph to obtain an information knowledge graph corresponding to the policy information to be recommended.
[0093] The policy information ontology at least includes the policy information subject, policy information publication time, policy information applicable groups and policy information application scenarios, and the relationship between the policy information concept entities. The relationship between the policy information subject and the policy information applicable groups can be the category of policy information, the relationship between the policy information publication time and other entities can be the validity, and the relationship between the policy information application scenario and the policy information subject and the policy information user group can be the category of policy information.
[0094] Specifically, relevant policy information concept words of policy information and applicable groups are extracted from structured policy information to obtain conceptual entities of policy information and applicable groups; the extracted policy information and applicable groups are labeled according to the policy information ontology; the relationship between the policy information and applicable group conceptual entities is extracted according to the labeled description in the policy information ontology; the relationship between the policy information and applicable group conceptual entities is connected in the policy information ontology to construct an initial knowledge graph.
[0095] Specifically, the structured policy information data is parsed to obtain structured policy information concepts that at least include the policy information topic, policy information publication time, and applicable group application scenarios; the unstructured policy information is refined by removing transition words and useless adjectives, and the TF-IDF algorithm is used to count the word frequency to extract unstructured policy information concepts that at least include the policy information neighborhood and policy information publication time. In the policy information knowledge graph, the extracted structured policy information concepts are merged with the synonymous entities of the unstructured policy information concepts; the connections between the structured policy information concepts and the unstructured policy information concepts of the same user interaction are connected to form the user's individual policy information data subgraph G′ u Repeat the above steps to merge different users’ policy information data subgraphs into the initial knowledge graph and construct the information knowledge graph G u .
[0096] The policy information recommendation method provided in the embodiment of the present invention can clarify the connection between policies and groups through the construction of a knowledge graph, and then build a policy recommendation model in conjunction with user portraits, and obtain policy recommendation results through the policy recommendation model, thereby achieving accurate recommendation of policy information and improving user stickiness.
[0097] Example 4
[0098] Corresponding to the above method embodiment, the embodiment of the present invention provides a policy information recommendation device, Figure 4 A schematic diagram of the structure of a policy information recommendation device provided by an embodiment of the present invention, such as Figure 4 As shown, the policy information recommendation device may include:
[0099] The information knowledge graph construction module 401 is used to construct the information knowledge graph corresponding to the policy information to be recommended.
[0100] The user portrait building module 402 is used to build a user portrait corresponding to the user to be recommended based on the user feature information of the user to be recommended.
[0101] The policy recommendation result determination module 403 is used to determine the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait.
[0102] The policy information recommendation device provided by the embodiment of the present invention can construct an information knowledge graph corresponding to the policy information to be recommended, construct a user portrait corresponding to the user to be recommended based on the user feature information of the user to be recommended, and then determine the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait. In this method, by constructing the information knowledge graph and the user portrait, and determining the policy recommendation result based on the knowledge graph and the user portrait, accurate recommendation of policy information is achieved, thereby improving user stickiness.
[0103] In some embodiments, the policy recommendation result determination module is also used to build a policy recommendation model based on the information knowledge graph and user portrait; make policy recommendations to the user to be recommended based on the policy recommendation model, and obtain the policy recommendation results corresponding to the user to be recommended.
[0104] In some embodiments, the policy recommendation result determination module is also used to obtain user feedback information from the recommended user regarding the policy recommendation result; based on the user feedback information, the policy recommendation model is incrementally trained to obtain a trained policy recommendation model.
[0105] In some embodiments, the user feedback information includes user feedback sub-information of at least one feedback action for the user to be recommended; wherein the feedback action includes at least one of click, browsing time, like, comment, and forward.
[0106] In some embodiments, the policy recommendation result determination module is also used to determine the influence weight corresponding to each user feedback sub-information; based on each user feedback sub-information and the influence weight corresponding to each user feedback sub-information, the policy recommendation model is incrementally trained to obtain a trained policy recommendation model.
[0107] In some embodiments, the information knowledge graph construction module is also used to obtain structured policy information of at least one user and unstructured policy information of at least one user; based on the structured policy information and the unstructured policy information, construct an information knowledge graph corresponding to the policy information to be recommended.
[0108] In some embodiments, the information knowledge graph construction module is also used to define the policy information ontology; based on the policy information ontology and structured policy information, construct an initial knowledge graph containing the relationship between policy information and applicable group conceptual entities; integrate unstructured policy information into the initial knowledge graph to obtain the information knowledge graph corresponding to the policy information to be recommended.
[0109] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0110] Example 5
[0111] The embodiment of the present invention also provides an electronic device for executing the above-mentioned policy information recommendation method; see Figure 5 A structural diagram of an electronic device is shown, which includes a memory 500 and a processor 501, wherein the memory 500 is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor 501 to implement the above-mentioned policy information recommendation method.
[0112] Further, Figure 5 The electronic device shown further includes a bus 502 and a communication interface 503 , and the processor 501 , the communication interface 503 and the memory 500 are connected via the bus 502 .
[0113] The memory 500 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 503 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 502 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0114] The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 500, and the processor 501 reads the information in the memory 500 and completes the steps of the method of the above embodiment in combination with its hardware.
[0115] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned policy information recommendation method. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0116] The computer program product for the policy information recommendation method provided in the embodiment of the present invention includes a computer-readable storage medium storing a non-volatile program code executable by a processor. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0118] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0120] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0121] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0122] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A policy information recommendation method, characterized in that: The method comprises: Construct an information knowledge graph corresponding to the policy information to be recommended; Based on the user characteristic information of the user to be recommended, construct a user portrait corresponding to the user to be recommended; Based on the information knowledge graph and the user portrait, a policy recommendation result corresponding to the user to be recommended is determined.
2. The method according to claim 1, characterized in that: The determining, based on the information knowledge graph and the user portrait, a policy recommendation result corresponding to the to-be-recommended user includes: Building a policy recommendation model based on the information knowledge graph and the user portrait; Based on the policy recommendation model, policy recommendations are made to the user to be recommended, and policy recommendation results corresponding to the user to be recommended are obtained.
3. The method according to claim 2, characterized in that: The method further comprises: Obtaining user feedback information of the to-be-recommended user regarding the policy recommendation result; Based on the user feedback information, the policy recommendation model is incrementally trained to obtain a trained policy recommendation model.
4. The method according to claim 3, characterized in that: The user feedback information includes user feedback sub-information of at least one feedback action for the user to be recommended; wherein the feedback action includes at least one of click, browsing time, like, comment, and forward.
5. The method according to claim 4, characterized in that: The incrementally training the policy recommendation model based on the user feedback information to obtain the trained policy recommendation model includes: Determine the influence weight corresponding to each of the user feedback sub-information; Based on each of the user feedback sub-information and the influence weight corresponding to each of the user feedback sub-information, incremental training is performed on the policy recommendation model to obtain a trained policy recommendation model.
6. The method according to claim 1, characterized in that: The step of constructing the information knowledge graph corresponding to the policy information to be recommended includes: Obtaining structured policy information of at least one user and unstructured policy information of at least one user; Based on the structured policy information and the unstructured policy information, an information knowledge graph corresponding to the policy information to be recommended is constructed.
7. The method according to claim 6, characterized in that: The step of constructing an information knowledge graph corresponding to the policy information to be recommended based on the structured policy information and the unstructured policy information includes: Define policy information ontology; Based on the policy information ontology and the structured policy information, construct an initial knowledge graph including the relationship between the policy information and the applicable group concept entity; The unstructured policy information is integrated into the initial knowledge graph to obtain an information knowledge graph corresponding to the policy information to be recommended.
8. A policy information recommendation device, characterized in that: The device comprises: An information knowledge graph construction module is used to construct an information knowledge graph corresponding to the policy information to be recommended; A user portrait building module, used to build a user portrait corresponding to the user to be recommended based on the user feature information of the user to be recommended; The policy recommendation result determination module is used to determine the policy recommendation result corresponding to the user to be recommended based on the information knowledge graph and the user portrait.
9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the policy information recommendation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the policy information recommendation method described in any one of claims 1 to 7.
