A knowledge graph construction method based on intellectual property legal documents

By extracting and evaluating triples in intellectual property legal documents and calculating association matrix and vectors, the problem of adaptive update maps in the field of intellectual property is solved, the accuracy and update efficiency of intellectual property legal maps are improved, and the law is enhanced Reference value of the graph.

CN118350456BActive Publication Date: 2024-11-05CHINA UNIVERSITY OF POLITICAL SCIENCE AND LAW
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410448211.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-11-05
Estimated Expiration
2044-04-15

AI Technical Summary

Technical Problem

There is a lack of a method that can adaptively update the intellectual property legal map in the field of intellectual property rights, making it difficult to integrate content from different fields into the intellectual property legal map, affecting its construction and update effect.

Method used

By extracting triples in intellectual property legal documents, establishing node sets and connection sets, calculating association matrix and vectors, generating feature matrix, evaluating the accuracy of triples, and deciding whether to add to the intellectual property legal graph based on the accuracy threshold. In order to realize adaptive update of the intellectual property legal map.

Benefits of technology

It improves the accuracy and update efficiency of the intellectual property legal map, ensures the relevance and closeness of elements in the map, and enhances the reference value for legal-related fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118350456B_ABST
    Figure CN118350456B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of knowledge graphs, and specifically to a method for constructing a knowledge graph based on intellectual property legal documents. The present invention firstly sets a detailed method for extracting triples from intellectual property legal documents to ensure the standardization of the extracted triple relationship, and then reflects the relationship between the elements in the node set and the connection set by constructing an association matrix. Subsequently, the internal connection between the elements of each triple is deeply mined through a first vector and a third vector. Finally, the closeness of the connection between the elements of each triple is determined by correctness, thereby determining whether to add the triples in the newly added intellectual property legal documents to the current intellectual property legal graph to complete the update of the intellectual property legal graph. The present invention solves the problem of the lack of a method capable of adaptively updating the intellectual property legal graph in the field of intellectual property.
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 specifically to a method for constructing a knowledge graph based on intellectual property legal documents. Background Art

[0002] Driven by the development of artificial intelligence and the wave of informatization construction of the People's Courts, legal knowledge graphs have gradually been applied to the fields of judicial adjudication assistance, legal retrieval and question-and-answering. The field of intellectual property involves various types of knowledge, including copyright, trademark rights and patent rights. The heterogeneity of its rules and concepts makes the representation and association of knowledge more complex. Secondly, the relevant content of intellectual property cases involves complex semantic information such as rich behaviors, activities and events, and the content covered by its knowledge graph is relatively more complicated.

[0003] In the process of constructing and continuously updating the intellectual property legal map, due to the complexity of intellectual property legal documents, it is difficult for the knowledge map to include knowledge in all fields when constructing and updating intellectual property legal documents. At present, there is a lack of a method in the intellectual property field that can adaptively update the intellectual property legal map to achieve the effect of integrating content from different fields into the intellectual property legal map, so as to better provide reference for various legal-related fields. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a method for constructing a knowledge graph based on intellectual property legal documents, which solves the problem that there is currently a lack of a method in the field of intellectual property that can adaptively update the intellectual property legal graph.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A method for constructing a knowledge graph based on intellectual property legal documents, the method comprising the following steps:

[0007] S1. Extract triples based on the newly added intellectual property legal documents, establish node sets and connection sets, and obtain the current intellectual property legal map;

[0008] S2, establishing an association matrix based on the node set and the connection set;

[0009] S3, calculating the first vector of any element in the node set and the connection set according to the association matrix;

[0010] S4, constructing an element matrix according to the first vector, generating a feature matrix according to the set filter and calculating the corresponding second vector, and calculating the third vector of each triplet according to the second vector;

[0011] S5. Calculate the correctness of each triplet according to the third vector thereof, and determine whether to add each triplet corresponding to the newly added intellectual property legal document to the current intellectual property legal map according to whether the correctness is greater than the correctness threshold;

[0012] If yes, then add the triplet corresponding to the third vector to the current IP legal map;

[0013] If not, then end.

[0014] Preferably, in step S1, the following steps are specifically included:

[0015] S11, obtaining the newly added intellectual property legal documents and extracting entity-relationship-entity triples;

[0016] S12, establishing a node set based on the entities in each triple, and establishing a connection set based on the relationships in each triple;

[0017] S13. Obtain the current intellectual property legal map.

[0018] Preferably, in step S11, the following steps are specifically included:

[0019] S111. Set the standard statement of entity-relationship-entity in intellectual property legal documents according to the information extraction standard of judgments on intellectual property infringement cases;

[0020] S112. Extract entity-relationship-entity triplets in intellectual property legal documents based on standard entity-relationship-entity statements.

[0021] Preferably, in step S112, the following steps are specifically included:

[0022] S1121. Segment the intellectual property legal documents according to the standard sentences;

[0023] S1122, extracting entities by importing the BERT algorithm to obtain a plurality of first entities;

[0024] S1123, performing CRF constraints on the first triplet to obtain a plurality of second entities;

[0025] S1124, extracting relations from the intellectual property legal document according to the standard statement and using the CasRel algorithm to obtain a first relation;

[0026] S1125. Establish a transition triple according to the second entity and the first relationship;

[0027] S1126. Perform knowledge alignment on the transition triples using the TransE algorithm to obtain triples.

[0028] Preferably, in step S3, the following steps are specifically included:

[0029] S31. Define a multidimensional vector expression for any element in a node set and a connection set; the expression for the multidimensional vector is:

[0030] ;

[0031] In the above formula, is an expression for a multidimensional vector of any element, , , and represents a real number, , and Represent the imaginary components in the x-axis, y-axis and z-axis directions respectively;

[0032] S32, calculate the first vector of any element in the node set and the connection set; the expression of the first vector is:

[0033] ;

[0034] In the above formula, Indicates updated The first vector of the node, represents the multidimensional space containing all multidimensional vectors, Represents the multidimensional vector of the b node before the update, Representation Node The weight matrix between and b, represents the RuLU activation function, Representation Node The correlation matrix between a and b, Represents a triple containing the node a.

[0035] Preferably, in step S4, the following steps are specifically included:

[0036] S41, constructing an element matrix of each element according to the extracted first vector;

[0037] S42, set the filter and perform convolution feature mapping on the element matrix to generate a feature matrix; the expression of the feature matrix is:

[0038] ;

[0039] in:

[0040] ;

[0041] In the above formula, represents the feature matrix, represents the nth feature element in the feature matrix, , and Respectively represent the 1st, 2nd and 3rd characteristic elements in the characteristic matrix, represents the i-th row in the feature matrix, is a nonlinear function, b is a bias constant, represents a filter;

[0042] S43. Calculate the second vector according to the characteristic matrix. The expression of the second vector is:

[0043] ;

[0044] In the above formula, represents the second vector, Represents the total number of vector data in the feature matrix, represents the nth feature element in the feature matrix, Representation and The corresponding cumulative coefficient;

[0045] S44, compress the second vector to generate a third vector for each triple; the expression of the third vector is:

[0046] ;

[0047] In the above formula, represents the third vector, Represents the second vector.

[0048] Preferably, in step S5, the following steps are specifically included:

[0049] S51, calculating the correctness of each triple; the calculation formula of the correctness is:

[0050] ;

[0051] In the above formula, represents the correctness of each triple, is the third vector, is the coefficient vector;

[0052] S52, setting a correctness threshold, and judging whether each triple is correct according to whether the correctness is greater than the correctness threshold;

[0053] If yes, then add the triplet corresponding to the third vector to the current IP legal map;

[0054] If not, then end.

[0055] Preferably, in step S2, the expression of the correlation matrix is ​​as follows:

[0056] ;

[0057] In the above formula, represents the association matrix between any two nodes a and b, represents a node set, Represents a connection set, Indicates the number of times nodes a and b are on the same line in a triple. represents the total number of triples containing node a, Represents the number of all edges after the nodes are collinear.

[0058] Compared with the prior art, the present invention provides a method for constructing a knowledge graph based on intellectual property legal documents, which has the following beneficial effects:

[0059] 1. The present invention firstly sets a detailed method for extracting triples from intellectual property legal documents to ensure the standardization of the extracted triple relationship, and then reflects the relationship between the elements in the node set and the connection set by constructing an association matrix, and then deeply explores the internal connection between the elements of each triple through the first vector and the third vector, and finally determines the closeness of the connection between the elements of each triple through the correctness, so as to determine whether to add the triples in the newly added intellectual property legal documents to the current intellectual property legal map, so as to complete the update of the intellectual property legal map.

[0060] 2. The present invention completes the extraction of triples in intellectual property legal documents through the standard statements of entity-relationship-entity in the information extraction specifications of intellectual property infringement case judgments, which is conducive to the shared and reused conceptual system, and the definition of concepts follows the principles of objectivity and accuracy.

[0061] 3. The present invention calculates the third vector through the first vector to further reflect the connection between each triple and the intellectual property legal map, and evaluates it by calculating the correctness, so as to facilitate the judgment of whether to add the triple of the newly added intellectual property legal document to the current intellectual property legal map, thereby realizing the update of the current intellectual property legal map. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0063] Figure 1 Flow chart of the knowledge graph construction method of the present invention. DETAILED DESCRIPTION

[0064] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.

[0065] Those skilled in the art can understand that all or part of the steps in the following embodiments can be completed by instructing the relevant hardware through a program, so the present application can be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0066] In the process of reconstructing and completing the legal knowledge graph in the field of intellectual property rights, due to the complexity of the content in intellectual property legal documents, data sparsity is prone to occur, making it difficult to ensure the validity of the correspondence between the elements in the knowledge graph. To this end, the present invention provides a knowledge graph construction method based on intellectual property legal documents, which is used to evaluate the relevance of each element before adding it to the intellectual property legal graph, so as to fill it in at the appropriate position and improve the accuracy of the intellectual property legal graph. Please refer to Figure 1 , the knowledge graph construction method includes the following steps:

[0067] S1. Extract triples according to the newly added intellectual property legal documents, establish node sets and connection sets, and obtain the current intellectual property legal map. In order to further clarify the unique extraction characteristics of the triples of the intellectual property legal map, step S1 specifically includes the following steps:

[0068] S11, obtaining the newly added intellectual property legal documents and extracting entity-relationship-entity triples; in order to further clarify the extraction characteristics of triples in intellectual property legal documents, step S11 specifically includes the following steps:

[0069] S111. Set the standard statement of entity-relationship-entity in intellectual property legal documents according to the information extraction standard of judgments on intellectual property infringement cases;

[0070] S112, extracting entity-relationship-entity triples in the intellectual property legal document according to the standard statement of entity-relationship-entity; in order to further refine the method for extracting triples in the intellectual property legal document, in step S112, the following steps are specifically included:

[0071] S1121. Segment the intellectual property legal documents according to the standard sentences;

[0072] S1122, extracting entities by importing the BERT algorithm to obtain a plurality of first entities;

[0073] S1123, performing CRF constraints on the first triplet to obtain a plurality of second entities;

[0074] S1124, extracting relations from the intellectual property legal document according to the standard statement and using the CasRel algorithm to obtain a first relation;

[0075] S1125. Establish a transition triple according to the second entity and the first relationship;

[0076] S1126, performing knowledge alignment on the transition triples by using the TransE algorithm to obtain triples;

[0077] S12, establishing a node set based on the entities in each triple, and establishing a connection set based on the relationships in each triple;

[0078] S13. Obtain the current intellectual property legal map.

[0079] S2. Establish an association matrix based on the node set and the connection set; the expression of the association matrix is ​​as follows:

[0080] ;

[0081] In the above formula, represents the association matrix between any two nodes a and b, represents a node set, Represents a connection set, Indicates the number of times nodes a and b are on the same line in a triple. represents the total number of triples containing node a, Represents the number of all edges after the nodes are collinear;

[0082] S3, calculate the first vector of any element in the node set and the connection set according to the association matrix; generate the first vector through the relationship between the association matrix, any element in the node set and the connection set and each element in the current knowledge graph, and update the multidimensional vector of any element in the node set and the connection set. In step S3, the following steps are specifically included:

[0083] S31. Define a multidimensional vector expression for any element in a node set and a connection set; the expression for the multidimensional vector is:

[0084] ;

[0085] In the above formula, is an expression for a multidimensional vector of any element, , , and represents a real number, , and Represent the imaginary components in the x-axis, y-axis and z-axis directions respectively;

[0086] S32, calculate the first vector of any element in the node set and the connection set; the expression of the first vector is:

[0087] ;

[0088] In the above formula, Indicates updated The first vector of the node, represents the multidimensional space containing all multidimensional vectors, Represents the multidimensional vector of the b node before the update, Representation Node The weight matrix between and b, represents the RuLU activation function, Representation Node The correlation matrix between a and b, Represents a triple containing node a;

[0089] S4, constructing an element matrix according to the first vector, generating a feature matrix according to the set filter and calculating the corresponding second vector, and calculating the third vector of each triplet according to the second vector; in order to further clarify the calculation method of the third vector, in step S4, the following steps are specifically included:

[0090] S41, constructing an element matrix of each element according to the extracted first vector; the expression of the element matrix is: , , and Represent the components of the first vector in the x-axis, y-axis, and z-axis directions respectively.

[0091] S42, set the filter and perform convolution feature mapping on the element matrix to generate a feature matrix; the expression of the feature matrix is:

[0092] ;

[0093] in:

[0094] ;

[0095] In the above formula, represents the feature matrix, represents the nth feature element in the feature matrix, , and Respectively represent the 1st, 2nd and 3rd characteristic elements in the characteristic matrix, represents the i-th row in the feature matrix, is a nonlinear function, b is a bias constant, represents a filter;

[0096] S43. Calculate the second vector according to the characteristic matrix. The expression of the second vector is:

[0097] ;

[0098] In the above formula, represents the second vector, Represents the total number of vector data in the feature matrix, represents the nth feature element in the feature matrix, Representation and The corresponding cumulative coefficient;

[0099] S44, compress the second vector to generate a third vector for each triple; the expression of the third vector is:

[0100] ;

[0101] In the above formula, represents the third vector, represents the second vector;

[0102] S5. Calculate the correctness of each triplet according to the third vector thereof, and determine whether to add each triplet corresponding to the newly added intellectual property legal document to the current intellectual property legal map according to whether the correctness is greater than the correctness threshold;

[0103] If yes, then add the triplet corresponding to the third vector to the current IP legal map;

[0104] If not, then end;

[0105] In order to further clarify the calculation method of the correctness and determine whether to add the corresponding triplet data in the legal document to the intellectual property legal document, step S5 specifically includes the following steps:

[0106] S51, calculating the correctness of each triple; the calculation formula of the correctness is:

[0107] ;

[0108] In the above formula, represents the correctness of each triple, is the third vector, is the coefficient vector;

[0109] S52, setting a correctness threshold, and judging whether each triple is correct according to whether the correctness is greater than the correctness threshold;

[0110] If yes, then add the triplet corresponding to the third vector to the current IP legal map;

[0111] If not, then end.

[0112] The above implementation methods have been described in detail. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A knowledge graph construction method based on intellectual property legal documents, It is characterized in that The knowledge graph construction method includes the following steps: S1. Extract triples based on the newly added intellectual property legal documents, establish node sets and connection sets, and obtain the current intellectual property legal map; S2, establishing an association matrix based on the node set and the connection set; S3, calculating the first vector of any element in the node set and the connection set according to the association matrix; In step S3, the following steps are specifically included: S31. Define a multidimensional vector expression for any element in a node set and a connection set; the expression for the multidimensional vector is: ; In the above formula, is an expression for a multidimensional vector of any element, , , and represents a real number, , and Represent the imaginary components in the x-axis, y-axis and z-axis directions respectively; S32, calculate the first vector of any element in the node set and the connection set; the expression of the first vector is: ; In the above formula, Indicates updated The first vector of the node, represents the multidimensional space containing all multidimensional vectors, Represents the multidimensional vector of the b node before the update, Representation Node The weight matrix between and b, represents the RuLU activation function, Representation Node The correlation matrix between a and b, Represents a triple containing node a; S4, constructing an element matrix according to the first vector, generating a feature matrix according to the set filter and calculating the corresponding second vector, and calculating the third vector of each triplet according to the second vector; In step S4, the following steps are specifically included: S41, constructing an element matrix of each element according to the extracted first vector; S42, set the filter and perform convolution feature mapping on the element matrix to generate a feature matrix; the expression of the feature matrix is: ; in: ; In the above formula, represents the feature matrix, represents the nth feature element in the feature matrix, , and Respectively represent the 1st, 2nd and 3rd characteristic elements in the characteristic matrix, represents the i-th row in the feature matrix, is a nonlinear function, b is a bias constant, represents a filter; S43. Calculate the second vector according to the characteristic matrix. The expression of the second vector is: ; In the above formula, represents the second vector, Represents the total number of vector data in the feature matrix, represents the nth feature element in the feature matrix, Representation and The corresponding cumulative coefficient; S44, compress the second vector to generate a third vector for each triple; the expression of the third vector is: ; In the above formula, represents the third vector, represents the second vector; S5. Calculate the correctness of each triplet according to the third vector thereof, and determine whether to add each triplet corresponding to the newly added intellectual property legal document to the current intellectual property legal map according to whether the correctness is greater than the correctness threshold; If yes, then add the triplet corresponding to the third vector to the current IP legal map; If not, then end.

2. The knowledge graph construction method according to claim 1, It is characterized in that In step S1, the following steps are specifically included: S11, obtaining the newly added intellectual property legal documents and extracting entity-relationship-entity triples; S12, establishing a node set based on the entities in each triple, and establishing a connection set based on the relationships in each triple; S13. Obtain the current intellectual property legal map.

3. The knowledge graph construction method according to claim 2, It is characterized in that In step S11, the following steps are specifically included: S111. Set the standard statement of entity-relationship-entity in intellectual property legal documents according to the information extraction standard of judgments on intellectual property infringement cases; S112. Extract entity-relationship-entity triplets in intellectual property legal documents based on standard entity-relationship-entity statements.

4. The knowledge graph construction method according to claim 3, It is characterized in that In step S112, the following steps are specifically included: S1121. Segment the intellectual property legal documents according to the standard sentences; S1122, extracting entities by importing the BERT algorithm to obtain a plurality of first entities; S1123, performing CRF constraints on the first triplet to obtain a plurality of second entities; S1124, extracting relations from the intellectual property legal document according to the standard statement and using the CasRel algorithm to obtain a first relation; S1125. Establish a transition triple according to the second entity and the first relationship; S1126. Perform knowledge alignment on the transition triples using the TransE algorithm to obtain triples.

5. The knowledge graph construction method according to claim 1, It is characterized in that In step S5, the following steps are specifically included: S51, calculating the correctness of each triple; the calculation formula of the correctness is: ; In the above formula, represents the correctness of each triple, is the third vector, is the coefficient vector; S52, setting a correctness threshold, and judging whether each triple is correct according to whether the correctness is greater than the correctness threshold; If yes, then add the triplet corresponding to the third vector to the current IP legal map; If not, then end.

6. The knowledge graph construction method according to claim 1, It is characterized in that In step S2, the expression of the incidence matrix is ​​as follows: ; In the above formula, represents the association matrix between any two nodes a and b, represents a node set, Represents a connection set, Indicates the number of times nodes a and b are on the same line in a triple. represents the total number of triples containing node a, Represents the number of all edges after the nodes are collinear.

Citation Information

Cited By

  • Legal text processing method and device based on knowledge graph, equipment and medium

    CN120030994A