A data push method, system and storage medium based on knowledge graph

Through the data push method based on the knowledge graph and using user historical search records to build personalized models, it solves the problem of low efficiency for college students to acquire cross-professional knowledge, achieves fast and accurate knowledge push, and meets the immediate acquisition needs of college students.

CN114461813BActive Publication Date: 2024-08-27SHANGHAI NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210049886.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-17
Publication Date
2024-08-27
Estimated Expiration
2042-01-17

AI Technical Summary

Technical Problem

It is difficult for college students to obtain cross-professional knowledge in the era of big data. The existing knowledge push methods are inefficient and cannot be adjusted dynamically in time to meet the demand for instant access to knowledge.

Method used

The data push method based on the knowledge graph obtains the knowledge keywords in the user's search questions, establishes the minimum knowledge subtree, filters the candidate knowledge subtrees, and combines the user's historical search records to establish a personalized model to quickly push relevant knowledge nodes.

Benefits of technology

It improves the efficiency and accuracy of knowledge push, ensures that users obtain real-time and reasonable knowledge information, and meets the immediate acquisition needs of college students.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114461813B
    Figure CN114461813B
Patent Text Reader

Abstract

The present invention relates to a data push method, system and storage medium based on knowledge graph, wherein the method comprises the following steps: obtaining a question retrieved by a user, the question contains at least two knowledge keywords, extracting the knowledge keywords in the question, and obtaining the corresponding minimum knowledge subtree in the knowledge graph according to the knowledge keywords; establishing a candidate knowledge subtree according to all the side information related to the knowledge keywords in the minimum knowledge subtree, sorting all the candidate knowledge subtrees by scores according to the scoring rules, and screening the candidate knowledge subtrees; establishing a personalized model according to the candidate knowledge subtrees obtained each time in the user's historical search, and pushing the knowledge node with the highest function value of the personalized model. Compared with the prior art, the present invention has the advantages of high push efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of knowledge graphs, and in particular to a data push method, system and storage medium based on knowledge graphs. Background Art

[0002] In the era of knowledge explosion, higher education has entered a stage of large amount of knowledge, strong interdisciplinary and fast knowledge update, which also puts forward higher requirements for the cross-integration of professional knowledge. In order to grow into compound talents in colleges and universities, college students need to have the ability to build a comprehensive knowledge system. In the face of the explosive growth of educational knowledge resources in today's big data era, college students are in a dilemma of difficulty in accurately acquiring professional cross-disciplinary knowledge, which has become a challenge that must be faced by the training of cross-disciplinary talents in colleges and universities. However, the barriers to the establishment of disciplines and majors in many traditional colleges and universities still exist, and teaching practices are carried out independently and there are few interdisciplinary comprehensive courses. Students lack a systematic understanding of the knowledge points of their majors or cross-disciplinary courses, and there is a lack of systematic connection between knowledge points; the teaching content of different courses varies greatly and lacks knowledge coherence; the theoretical course arrangement and skill practice teaching cannot be quickly connected. These reasons lead to the incoherence of teaching, which in turn causes the knowledge points learned by students to be scattered and independent from a macro perspective.

[0003] Due to the limitation of students' own knowledge accumulation, it lacks accuracy and professionalism, and it is difficult to discover implicit associations and long-path associations between knowledge points. The existing knowledge push method mainly extracts the features of knowledge data, fuses the knowledge data based on the features, and pushes the fused results to users. However, since all knowledge data needs to be updated and processed in real time, this method cannot be adjusted dynamically in time. When students search, due to the large amount of data processed, it takes a long time to obtain the push, which is inefficient and cannot meet the needs of the current large number of college students to obtain knowledge instantly. Summary of the invention

[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a data push method, system and storage medium based on knowledge graph.

[0005] The purpose of the present invention can be achieved by the following technical solutions:

[0006] A data push method based on knowledge graph includes the following steps:

[0007] S1. Obtain the question retrieved by the user, which contains at least two knowledge keywords, extract the knowledge keywords in the question, and obtain the corresponding minimum knowledge subtree in the knowledge graph according to the knowledge keywords;

[0008] S2. Establish candidate knowledge subtrees based on all node information and edge information related to knowledge keywords in the minimum knowledge subtree, sort all candidate knowledge subtrees by scores according to scoring rules, and screen candidate knowledge subtrees;

[0009] S3. A personalized model is established based on the candidate knowledge subtree obtained each time in the user's historical search, and the knowledge node with the highest function value of the personalized model is pushed.

[0010] Furthermore, the scoring rules specifically include:

[0011] The candidate knowledge subtrees are scored according to the following expression:

[0012]

[0013] Among them, Score(target) represents the score, t represents the root node of the candidate knowledge subtree, α represents the compactness, β represents the accuracy, num(e k ) and n both represent the number of candidate knowledge subtree nodes, num(r k ) represents the number of candidate knowledge subtree edges, Represents the shortest distance from each node to the root node.

[0014] Furthermore, the method for establishing the personalized model is as follows:

[0015] A1. Obtain the distance from each node to other nodes in the candidate knowledge subtree and sum them up, and determine the central knowledge node according to the centrality;

[0016] A2. According to the user's historical search records, obtain the central knowledge node of the candidate knowledge subtree for each search and establish a central knowledge point set;

[0017] A3, calculating the correlation between the central knowledge point of the central knowledge point set and the central knowledge point of the next retrieval;

[0018] A4. Build a personalized model T(o) based on the relevance and centrality of the central knowledge node i+1 ), the expression is as follows:

[0019] T(o i+1 )=αsim(o i ,o i+1 )+βcore(o i+1 )

[0020] Among them, α represents the compactness, β represents the accuracy, sim(o i ,o i+1 ) indicates correlation, core(o i+1 ) represents the centrality.

[0021] Furthermore, the calculation expression of the centrality is as follows:

[0022]

[0023] Among them, e x represents the current node, N(e x ) means e x Neighboring nodes, l(e j ,e k )=0 indicates node e j and node e k There is no edge between them, l(e j ,e k )=1 indicates node e j and node e k There are edges between them.

[0024] Furthermore, the correlation sim(o k ,o k+1 ) is calculated as follows:

[0025]

[0026]

[0027]

[0028] Among them, dist represents the average path length, o k represents the central knowledge point in the kth retrieval of the central knowledge point set, p(e i ,e i+1 ) represents the relationship weight, sp.len(o i ,o i+1 ) means o i to i+1 The shortest path length between them, num(r) represents the number of times the relationship r appears in the path, e represents the knowledge points on the shortest path between two central knowledge points, and w represents the support.

[0029] Furthermore, after obtaining the central knowledge node, the central knowledge node is fed back to the user.

[0030] Furthermore, when the user has no historical search records, knowledge nodes are randomly pushed from the smallest knowledge subtree.

[0031] Furthermore, after executing step S2, the knowledge information corresponding to the top k candidate knowledge subtrees with the highest scores is transmitted to the user end.

[0032] A data push system based on a knowledge graph, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to implement the above-mentioned data push method based on the knowledge graph when executing the computer program.

[0033] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of a data push method based on a knowledge graph as described above.

[0034] Compared with the prior art, the present invention has the following advantages:

[0035] 1. Based on the knowledge graph, the present invention establishes the minimum knowledge subtree and establishes the candidate knowledge subtree according to the side information of the subtree, that is, the relationship between knowledge points. At the same time, it combines the user's historical search records to establish a personalized model to push to the user. Compared with the push method of the prior art that relies on data feature calculation, this method does not need to perform tedious calculations on data features, and can complete the push only through the relationship between existing knowledge points and knowledge points. When the user searches for knowledge points, the knowledge can be quickly fed back to the user, and the push efficiency is high. In addition, the knowledge graph has the characteristics of real-time update, which can ensure that users can obtain real-time knowledge information.

[0036] 2. The personalized model in the present invention combines the relevance and centrality of the knowledge nodes of the historical retrieval center, so that the personalized model can better reflect the needs of real user retrieval and ensure the rationality of the pushed content. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0038] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0039] This embodiment provides a data push method based on knowledge graph, such as Figure 1 As shown, the specific steps include:

[0040] Step S1: obtain the question retrieved by the user, which contains at least two knowledge keywords, extract the knowledge keywords in the question, and obtain the corresponding minimum knowledge subtree in the knowledge graph based on the knowledge keywords.

[0041] The knowledge graph is derived from teaching-related content such as expert systems, domain databases, CNKI, course selection systems, and literature, and specifically includes nodes and edges. The nodes store information about knowledge points, such as matching analysis methods and conditional probability, and the edges store association information between different knowledge points, such as the evaluation of the matching analysis method, and the evaluation is the edge information. According to the knowledge keywords in the retrieval question, the part of the knowledge graph that contains the knowledge keywords is extracted as the minimum knowledge subtree.

[0042] Step S2: Establish candidate knowledge subtrees based on all node information and edge information related to knowledge keywords in the minimum knowledge subtree, sort all candidate knowledge subtrees by scores according to scoring rules, and screen the candidate knowledge subtrees.

[0043] Among them, the process of establishing a candidate knowledge subtree is the process of connecting knowledge nodes with edges. For example, when retrieving the knowledge point "matching analysis method", the candidate knowledge subtree that may be obtained may be converted into complete knowledge point information containing node information and edge information, such as "conditional probability is a predecessor knowledge point of matching analysis method".

[0044] After obtaining all candidate knowledge subtrees, the candidate knowledge subtrees are scored according to the following expression:

[0045]

[0046] Among them, Score(target) represents the score, t represents the root node of the candidate knowledge subtree, α represents the compactness, β represents the accuracy, num(e k ) and n both represent the number of candidate knowledge subtree nodes, num(r k ) represents the number of candidate knowledge subtree edges, Represents the shortest distance from each node to the root node.

[0047] Finally, the candidate knowledge subtree with the highest score is retained.

[0048] Step S3: Establish a personalized model based on the candidate knowledge subtrees obtained each time in the user's historical search, and push the knowledge node with the highest function value of the personalized model.

[0049] The push method is based on the user's historical search records, and pushes the content that best suits the user's interests to the user based on the idea of ​​big data. If the user has never searched for content, that is, there is no historical search content, then a knowledge node is randomly pushed in the minimum knowledge subtree obtained in step S1 as the pushed content.

[0050] Each historical search record corresponds to a screened candidate knowledge subtree. A personalized model is established based on these candidate knowledge subtrees. The establishment process is as follows:

[0051] Step A1: Obtain the distance from each node to other nodes in the candidate knowledge subtree and sum them up, determine the central knowledge node according to the centrality, and feed it back to the user.

[0052] The calculation expression of centrality is as follows:

[0053]

[0054] Among them, e x represents the current node, N(e x ) means e x Neighboring nodes, l(e j ,e k )=0 indicates node e j and node e k There is no edge between them, l(e j ,e k )=1 indicates node e j and node e k There are edges between them.

[0055] Step A2: According to the user's historical search records, obtain the central knowledge node of the candidate knowledge subtree for each search, and establish the central knowledge point set O = {o1, o2, ..., o k}.

[0056] Step A3: Calculate the correlation between the central knowledge point of the central knowledge point set and the central knowledge point of the subsequent retrieval.

[0057] The correlation sim(o k ,o k+1 ) is calculated as follows:

[0058]

[0059]

[0060]

[0061] Among them, k represents the central knowledge point in the kth retrieval of the central knowledge point set, p(e i ,e i+1 ) represents the relationship weight, sp.len(o i ,o i+1 ) means o i to i+1 The shortest path length between them, num(r) represents the number of times relation r appears in the path, e represents the knowledge point on the shortest path between two central knowledge points, w represents the support, dist represents the average path length, and o is used.i to i+1 The shortest path length between sp.len(o i ,o i+1 ), where the side information score that determines the shortest path is artificially defined, for example, the scores of "predecessor" and "evaluation" are both 0.5, and the scores of other relationships are all 0. The average path length is specifically expressed as:

[0062]

[0063] Step A4: Establish a personalized model T(o) based on the relevance and centrality of the central knowledge node i+1 ), the expression is as follows:

[0064] T(o i+1 )=αsim(o i ,o i+1 )+βcore(o i+1 )

[0065] It can be seen from the expression that the personalized model reflects the relevance and centrality of the central knowledge point of each historical search record, including this one, and selects the central knowledge point with the highest personalized model function value and pushes it to the user.

[0066] The details are as follows:

[0067] First, the user asks a question, such as what is the relationship between "matching analysis" and "naive Bayes classifier".

[0068] Then, through the extraction of knowledge keywords "matching analysis method" and "naive Bayes classifier", the keywords are located in the knowledge graph, and candidate knowledge subtrees are established based on the side information. There are three knowledge trees that can locate the knowledge keywords.

[0069] The scores of the candidate knowledge subtrees are calculated according to the method in step S2 above. The scores of the three candidate knowledge subtrees are ranked as a <b<c。

[0070] Assuming that the top two candidate knowledge subtrees are selected as the subsequent push content, the user will receive the knowledge information and knowledge node information corresponding to these two candidate knowledge subtrees at the same time.

[0071] The candidate knowledge subtree b is selected as the content for establishing the personalized model. First, the central knowledge point is determined according to the centrality, and the personalized model is established in combination with the correlation. Finally, the knowledge point with the highest function value is selected in the personalized model for push, that is, the "Bernoulli model" is finally pushed.

[0072] This embodiment also provides a data push system based on a knowledge graph, including a memory and a processor; the memory is used to store computer programs; the processor executes the above-mentioned data push method based on the knowledge graph.

[0073] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by the processor, the data push method based on the knowledge graph mentioned in the embodiment of the present invention is implemented, and any combination of one or more computer-readable media can be used. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0074] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A data push method based on knowledge graph, It is characterized in that The following steps are involved: S1. Obtain a question retrieved by a user, which contains at least two knowledge keywords, extract the knowledge keywords in the question, and obtain the corresponding minimum knowledge subtree in the knowledge graph according to the knowledge keywords. The minimum knowledge subtree is obtained by: according to the knowledge keywords in the retrieved question, extract the part of the knowledge graph containing the knowledge keywords as the minimum knowledge subtree; S2. Establish candidate knowledge subtrees based on all node information and edge information related to knowledge keywords in the minimum knowledge subtree, sort all candidate knowledge subtrees by scores according to scoring rules, and screen candidate knowledge subtrees; S3, building a personalized model based on the candidate knowledge subtree obtained each time in the user's historical search, and pushing the knowledge node with the highest function value of the personalized model; The method for establishing the personalized model is as follows: A1. Obtain the distance from each node to other nodes in the candidate knowledge subtree and sum them up, and determine the central knowledge node according to the centrality; A2. According to the user's historical search records, obtain the central knowledge node of the candidate knowledge subtree for each search and establish a central knowledge point set; A3, calculating the correlation between the central knowledge point of the central knowledge point set and the central knowledge point of the next retrieval; A4. Build a personalized model T(o) based on the relevance and centrality of the central knowledge node i+1 ), the expression is as follows: T(o i+1 )=αsim(o i ,o i+1 )+βcore(o i+1 ) Among them, α represents the compactness, β represents the accuracy, sim(o i ,o i+1 ) indicates correlation, core(o i+1 ) represents the centrality; The calculation expression of the centrality is as follows: Among them, e x Represents the current node, N(e x ) means e x Neighboring nodes, l(e j ,e k )=0 indicates node e j and node e k There is no edge between them, l(e j ,e k )=1 indicates node e j and node e k There are edges between them; The correlation sim(o k ,o k+1 ) is calculated as follows: Among them, dist represents the average path length, o k represents the central knowledge point in the kth retrieval of the central knowledge point set, p(e i ,e i+1 ) represents the relationship weight, sp.len(o i ,o i+1 ) means o i to i+1 The shortest path length between them, num(r) represents the number of times the relationship r appears in the path, e represents the knowledge points on the shortest path between two central knowledge points, and w represents the support.

2. According to the data push method based on knowledge graph according to claim 1, It is characterized in that The scoring rules specifically include: The candidate knowledge subtrees are scored according to the following expression: Among them, Score(target) represents the score, t represents the root node of the candidate knowledge subtree, α represents the compactness, β represents the accuracy, num(e k ) and n both represent the number of candidate knowledge subtree nodes, num(r k ) represents the number of candidate knowledge subtree edges, Represents the shortest distance from each node to the root node.

3. According to the data push method based on knowledge graph according to claim 1, It is characterized in that After obtaining the central knowledge node, the central knowledge node is fed back to the user.

4. According to the data push method based on knowledge graph according to claim 1, It is characterized in that When the user has no historical retrieval records, knowledge nodes are randomly pushed from the smallest knowledge subtree.

5. According to the data push method based on knowledge graph according to claim 1, It is characterized in that After executing step S2, the knowledge information corresponding to the top k candidate knowledge subtrees with the highest scores is transmitted to the user end.

6. A data push system based on knowledge graph, It is characterized in that The method comprises a memory and a processor; the memory is used to store a computer program; the processor is used to implement the method according to any one of claims 1 to 5 when executing the computer program.

7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of a data push method based on a knowledge graph as described in any one of claims 1 to 5 are implemented.