Knowledge graph technology feature analysis method based on natural language processing

Through the knowledge graph technical feature analysis method based on natural language processing, the newly added knowledge graph is constructed and compared with the benchmark graph for incremental updates, and combined with application data optimization, it solves the problems of the lack of feedback loop and imperfect update mechanism in the existing technology. It improves the real-time and stability of the knowledge graph and ensures the accuracy and adaptability of the graph content.

CN118503453BActive Publication Date: 2024-09-24ZHEJIANG UNIV
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410958423.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-24
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

The existing technology lacks a feedback loop mechanism and an imperfect map update mechanism in the construction process of the knowledge graph, resulting in insufficient real-time and effectiveness of the graph application, and the inability to absorb new information in a timely manner and eliminate outdated content.

Method used

Adopt the knowledge graph technical feature analysis method based on natural language processing, through data collection, processing and graph update optimization, build a new knowledge graph and compare it with the benchmark graph, trigger incremental updates, and combine application data for optimization judgment and confirmation to ensure The map reflects the latest information, improving update efficiency and adaptability.

Benefits of technology

It realizes the timely knowledge supplement of the knowledge graph, improves the real-time and effectiveness of the graph, ensures the accuracy and stability of the graph content, avoids the disconnection between the content and reality, and provides an automated and intelligent update strategy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503453B
    Figure CN118503453B
Patent Text Reader

Abstract

The present invention belongs to the field of graph analysis technology, and specifically discloses a method for analyzing the technical features of a knowledge graph based on natural language processing, including: collecting and processing data to obtain a newly added knowledge graph; comparing the newly added knowledge graph with the benchmark knowledge graph to determine whether to trigger an incremental update, if so, update it, if not, collect the record operation tracking table of each record application corresponding to the benchmark knowledge graph; determine whether graph update optimization is required; if so, confirm the update optimization items of the benchmark knowledge graph, confirm the optimization indicators of the update optimization items, and provide feedback. The present invention effectively solves the current problem of lack of a feedback loop mechanism, avoids the current deficiency of a one-way conversion from data to graph, and makes full use of the feedback information generated by the graph in actual applications, thereby improving the optimization effect of the graph, while also improving the real-time and effectiveness of graph applications, and breaking the lag of current graph updates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of graph analysis technology and relates to a knowledge graph technology feature analysis method based on natural language processing. Background Art

[0002] A knowledge graph is a knowledge base represented by a graphical structure, which is used to describe the relationship between entities. It contains a rich set of entities and their attributes, as well as the associations between entities. In the knowledge graph, natural language processing is used to extract structured information from large amounts of text data, thereby facilitating applications such as search engines and intelligent assistants. In order to ensure the convenience of subsequent practical applications, it is necessary to analyze the technical features of the knowledge graph.

[0003] Currently, the timely feature analysis of knowledge graphs mainly focuses on two dimensions: knowledge graph construction analysis and application analysis.

[0004] Prior art, such as a data analysis method based on a knowledge graph with application publication number CN117932089A, includes collecting and preprocessing data sets from multiple different sources containing structured data and unstructured data. A data integration method based on pattern matching is used to convert the data set into a unified format and structure. Entities and relationships in the data set are extracted to establish a knowledge graph as a first knowledge graph. Entity triples and relationship triples of the first knowledge graph are obtained. A graph neural network is constructed. A connectivity matrix is ​​constructed to calculate the connection probability between entity triples and relationship triples and the graph neural network. According to the connection probability, the first knowledge graph and the trained graph neural network are connected to generate a probabilistic knowledge graph. The data set is analyzed using the probabilistic knowledge graph. This achieves knowledge association optimization through the graph neural network, thereby improving the relevance of domain knowledge.

[0005] Existing technologies, such as the indicator data analysis method based on knowledge graph disclosed in the Chinese invention patent application with application publication number CN116842188A, realize the construction of the knowledge graph framework by setting up a data layer, a model layer, a knowledge fusion module, and a knowledge acquisition module, and perform intelligent knowledge graph analysis on the enterprise's indicator data by setting up a simulation reasoning calculation module, a data analysis module, an artificial intelligence processor module, a display screen module, and an intelligent solution recommendation module, and obtain accurate analysis indicator data to facilitate the enterprise's accurate subsequent enterprise decision-making.

[0006] Another prior art is the knowledge graph for conversation semantic analysis disclosed in the Chinese invention patent application with application publication number CN110998567A, which is a search engine that combines a dynamic knowledge graph constructed during request execution with one or more static knowledge graphs that store long-term knowledge through a conversation engine used in a system such as a personal digital assistant. The conversation engine includes a state tracker that stores a dynamic knowledge graph representing the current state of the conversation, a strategy engine that selects entities in the dynamic knowledge graph and executes actions provided in those entities to move the conversation state toward completion, and a knowledge graph search engine for searching the static knowledge graph. The conversation is completed by constructing a dynamic knowledge graph in multiple rounds and linking together operations that are constructed toward conversation completion.

[0007] Regarding the above technical solutions, it is obvious that the current knowledge graph construction level, that is, the setting of the construction structure, is mainly carried out by combining applications, and there are still the following deficiencies: 1. Lack of feedback loop mechanism: The current knowledge graph construction process often focuses on the one-way conversion from data to graph, but ignores the optimization effect of the feedback information generated by the graph in actual application on the graph itself, and cannot improve the real-time and effectiveness of the graph application.

[0008] 2. Imperfect graph update mechanism: Knowledge evolves over time, which means that knowledge graphs need to constantly absorb new information and remove outdated content. Current technology may lag behind in this regard, lacking automated or intelligent update strategies, causing the graph content to be out of touch with reality and unable to guarantee the efficiency, reliability and stability of the graph in actual application. Summary of the invention

[0009] In view of this, in order to solve the problems raised in the above background technology, a knowledge graph technology feature analysis method based on natural language processing is proposed.

[0010] The purpose of the present invention can be achieved through the following technical solutions: The present invention provides a knowledge graph technology feature analysis method based on natural language processing, including: Step 1, data collection: collecting currently accumulated multi-source data from various data sources.

[0011] Step 2: Data processing: Process the currently accumulated multi-source data to obtain a new knowledge graph.

[0012] Step 3, graph update trigger judgment: record the pre-set knowledge graph as the baseline knowledge graph, and based on the newly added knowledge graph, determine whether to trigger an incremental update. If so, confirm the incremental information, update the baseline knowledge graph, and record the incremental update data. If not, execute the next step, where the incremental update data consists of the update time point and incremental information.

[0013] Step 4: Application data collection: Collect the record operation tracking table of each record application corresponding to the benchmark knowledge graph.

[0014] Step 5, graph update optimization judgment: Collect the cumulative incremental update data of the benchmark knowledge graph, and based on the cumulative incremental update data and application data, determine whether graph update optimization is needed. If so, proceed to the next step.

[0015] Step 6: Confirmation of graph update optimization: Confirm the update optimization items of the benchmark knowledge graph, and confirm the optimization indicators of the update optimization items.

[0016] Step 7: Graph update optimization feedback: Feedback the update optimization items of the baseline knowledge graph and the optimization indicators of the update optimization items to the graph update manager.

[0017] Compared with the prior art, the beneficial effects of the present invention are as follows: (1) The present invention constructs a new knowledge graph, and then compares it with the benchmark knowledge graph step by step to trigger incremental update judgment and update, and records the incremental update data, thereby realizing timely knowledge supplementation of the knowledge graph. At the same time, it also effectively saves computing resources and time, improves the update efficiency of the benchmark knowledge graph, and can ensure that the benchmark knowledge graph reflects the latest knowledge and information, making the application of the knowledge graph more real-time and effective. On another level, it also provides data support for subsequent graph optimization.

[0018] (2) The present invention effectively solves the current problem of lack of a feedback loop mechanism by combining the record operation tracking table during actual application and the accumulated incremental update data to perform graph update optimization judgment and graph update optimization confirmation, avoids the current deficiency of only one-way conversion from data to graph, and makes full use of the feedback information generated by the graph in actual application, thereby improving the optimization effect of the graph, while also improving the real-time and effectiveness of the graph application.

[0019] (3) The present invention realizes targeted optimization analysis of knowledge graphs by statistically analyzing incremental update coverage, incremental update frequency, and benchmark knowledge graphs, and confirming update optimization items and optimization indicators of update optimization items based on these three indicators, thereby making up for the shortcomings of the current imperfect graph update mechanism. It can not only ensure timely absorption of new information and timely updating of knowledge graphs, but also timely eliminate outdated content, breaking the lag of current graph updates, and providing an automated and intelligent update strategy, thereby avoiding the disconnection between graph content and reality, and further ensuring the efficiency, reliability, and stability of the graph in actual application.

[0020] (4) When the update optimization item is a graph update, the present invention confirms the automatic update frequency of the graph optimization, and when the update optimization item is a collection update, it confirms the optimization collection interval duration, thereby improving the adaptability of the knowledge graph, ensuring that the graph can reflect new knowledge and changes in a timely manner, maintaining its real-time and accuracy, and avoiding overly frequent or infrequent updates, thereby improving the efficiency and resource utilization of the system, and at the same time improving the rationality of the collection interval duration setting. Through a reasonable interval duration, important and valuable information can be collected to the greatest extent, while reducing unnecessary data collection and processing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0022] Figure 1 The present invention is a schematic flow chart of the steps for implementing the method. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0024] See also Figure 1 As shown, the present invention provides a knowledge graph technology feature analysis method based on natural language processing, the method comprising: Step 1, data collection: collecting currently accumulated multi-source data from various data sources.

[0025] In a specific embodiment, the data sources include multiple sources such as databases, APIs, and web pages, wherein the multi-source data includes structured data and unstructured data.

[0026] Step 2: Data processing: Process the currently accumulated multi-source data to obtain a new knowledge graph.

[0027] Step 3, graph update trigger judgment: record the pre-set knowledge graph as the baseline knowledge graph, and based on the newly added knowledge graph, determine whether to trigger an incremental update. If so, confirm the incremental information, update the baseline knowledge graph, and record the incremental update data. If not, execute the next step, where the incremental update data consists of the update time point and incremental information.

[0028] The embodiment of the present invention constructs a new knowledge graph, which is then compared with the benchmark knowledge graph level by level to trigger incremental update judgment and update, and records the incremental update data, thereby achieving timely knowledge supplementation of the knowledge graph. At the same time, it effectively saves computing resources and time, improves the update efficiency of the benchmark knowledge graph, and can ensure that the benchmark knowledge graph reflects the latest knowledge and information, making the application of the knowledge graph more real-time and effective. On another level, it also provides data support for subsequent graph optimization.

[0029] Step 4: Application data collection: Collect the record operation tracking table of each record application corresponding to the benchmark knowledge graph.

[0030] Step 5, graph update optimization judgment: Collect the cumulative incremental update data of the benchmark knowledge graph, and based on the cumulative incremental update data and application data, determine whether graph update optimization is needed. If so, proceed to the next step.

[0031] Step 6: Confirmation of graph update optimization: Confirm the update optimization items of the benchmark knowledge graph, and confirm the optimization indicators of the update optimization items.

[0032] By combining the record operation tracking table during actual application and the accumulated incremental update data to perform graph update optimization judgment and graph update optimization confirmation, the current problem of lack of feedback loop mechanism is effectively solved, avoiding the current deficiency of one-way conversion from data to graph, and making full use of the feedback information generated by the graph in actual application, thereby improving the optimization effect of the graph, while also improving the real-time and effectiveness of graph application.

[0033] Step 7: Graph update optimization feedback: Feedback the update optimization items of the baseline knowledge graph and the optimization indicators of the update optimization items to the graph update manager.

[0034] Furthermore, the processing of the currently accumulated multi-source data in step 2 includes: U1, preprocessing the currently accumulated multi-source data.

[0035] It should be added that the preprocessing includes: cleaning data, converting data formats, and entity recognition and linking, etc., among which the specific execution process of cleaning data, converting data formats, and entity recognition and linking is as follows: 1) Cleaning data: removing noise, duplicate information, and processing missing values.

[0036] 2) Convert data format: convert unstructured data into structured data.

[0037] 3) Entity recognition and linking: Use named entity recognition (NER) technology to identify entities in the text and match or normalize them with a known entity library.

[0038] U2. Use NER tools to perform entity recognition on pre-processed multi-source data, extract entity attributes, events, and relationships between entities, and integrate them to obtain extracted knowledge.

[0039] It should be added that before using NER tools to perform entity recognition on preprocessed multi-source data and extracting entity attributes, events, and relationships between entities, it also includes defining entity types, attributes, and relationships, building conceptual models or ontology models, and clarifying the relationship structure between entities. These concepts and relationships are mainly formally described through ontology languages ​​such as OWL and RDFS.

[0040] It should be added that extracting the attributes of entities, events, and relationships between entities involves natural language processing techniques, such as relationship extraction, event extraction, etc. This process can be automated using pattern matching, rule-based extraction, or machine learning models.

[0041] It should also be added that the extraction and integration process also includes entity alignment and deduplication, merging different attribute values ​​of the same entity, thereby resolving differences in the representation of the same entity in different data sources and handling relationship conflicts and data inconsistencies.

[0042] U3. Store the extracted knowledge in the form of triples to form a knowledge graph corresponding to the current multi-source data, which is recorded as the newly added knowledge graph.

[0043] It should be added that the entity refers to a person's name, a place name, an organization name, etc., and the triplet is expressed in the format of (entity 1, relationship, entity 2).

[0044] Furthermore, the determination of whether to trigger an incremental update in step 3 includes: F1, traversing the newly added knowledge graph and the benchmark knowledge graph, and extracting each entity and each triple in each graph layer in the knowledge graph.

[0045] It should be added that the entities and relationships in the knowledge graph can be graded according to their complexity and degree of abstraction. For example, the basic level may contain common entities such as people, places, time, etc., while the high level may involve more abstract and complex concepts or entity relationships, such as terminology in professional fields, relationships between scientific theories, etc. At the same time, the knowledge graph can also be graded according to the level and depth of knowledge it covers. The low level may cover basic facts and common sense knowledge, while the high level may include more in-depth and specialized knowledge, such as advanced concepts and theories in the academic field. In a specific embodiment, the specific hierarchical mode of the graph layer can be adjusted according to actual use needs, and the graph hierarchical analysis facilitates the comparison of the knowledge graph one by one, thereby improving the efficiency of graph update judgment.

[0046] F2. For each graph layer, arrange all triples and all entities in the layer according to a preset logical order to form a knowledge sequence.

[0047] It should be added that this knowledge sequence can be simply a list of triples and entities, or it can be a sorted or encoded sequence to facilitate subsequent comparison.

[0048] It should also be added that the preset logical order can specifically adopt a variety of methods such as time order, entity-centric order, relationship type order, or hash or random order. Among them, if the triples are timestamps or have a clear time order, the triples can be arranged in chronological order. Entity-centric order refers to sorting all its relationship triples around each entity according to certain rules, such as relationship type, relationship importance, or alphabetical order. This makes it easy to view the complete information structure of an entity. Relationship type order refers to sorting according to the relationship type in the triples, putting all triples of the same relationship type together. This sorting helps to quickly identify specific relationship patterns or perform statistical analysis of relationship types. Hash or random order is generally used when the order itself does not carry important information. In order to increase processing speed or simplify the comparison process, you can choose to hash or randomly sort the triples.

[0049] F3. For each graph layer, compare the knowledge sequence in the newly added knowledge graph with the benchmark knowledge graph.

[0050] F4. If there is inconsistency between the entities or triples in a certain graph layer in the newly added knowledge graph and the baseline knowledge graph, it will be used as the trigger for the incremental update judgment result.

[0051] F5. If there is some inconsistency between the triples in the newly added knowledge graph and the corresponding graph layer in the baseline knowledge graph, it will be used as the trigger for the incremental update judgment result.

[0052] F6. If the knowledge sequence of the newly added knowledge graph is completely consistent with the knowledge sequence of the corresponding graph layers in the baseline knowledge graph, whether it triggers the incremental update judgment result will be used.

[0053] Furthermore, the confirmation of incremental information in step 3 includes: if the newly added knowledge graph is inconsistent with an entity in a corresponding graph layer in the baseline knowledge graph, the entity is treated as an added entity, and the graph layer is treated as an associated added graph layer of the added entity.

[0054] If a triple in a corresponding graph layer in the newly added knowledge graph is completely inconsistent with that in the baseline knowledge graph, the triple is taken as an added triple, and the graph layer is taken as the associated added graph layer of the added triple.

[0055] If a triple in a corresponding graph layer in the newly added knowledge graph is inconsistent with that in the baseline knowledge graph, the triple is taken as a modified triple, and the position of the modified triple in the graph layer is extracted from the baseline knowledge graph as the associated modified position of the modified triple. In this way, each added entity, each added triple, each modified triple, the associated added graph layer of each added entity, the associated added graph layer of each added triple and the associated modified position of the modified triple are obtained and combined into incremental information.

[0056] Furthermore, the determination of whether graph update optimization is required in step 5 includes: S1, extracting the update time point of each increment and the update position of each increment from the accumulated incremental update data.

[0057] S2. Traverse the update positions of each increment, count the number of update positions, and integrate the number of increments corresponding to each update position and the update time point under each increment based on the update time point of each increment, and count the incremental update coverage and incremental update frequency .

[0058] S3: extracting the initial import keyword, the number of searches and the import keyword during each search from the record operation tracking table, and calculating the application effectiveness of the benchmark knowledge graph based on the results. .

[0059] S4. Greater than the set reference increment update coverage As condition 1, Greater than the set reference incremental update frequency As condition 2, Greater than the set reference application validity As condition 3.

[0060] It should be added that , and The specific value of can be obtained by extracting it from the update evaluation technology table of the benchmark knowledge graph. For example, The specific value can be 0.8. The specific value can be 2. The specific value can be .

[0061] S5. If condition 1 or condition 2 or condition 3 is met, it will be used as the judgment result of the graph update optimization. If condition 1, condition 2 and condition 3 are not met, it will be used as the judgment result of the graph update optimization.

[0062] It should be added that the incremental update coverage refers to the proportion of the newly added knowledge graph that is successfully matched and updated with the baseline knowledge graph. By counting the incremental update coverage, the efficiency and completeness of the incremental update can be evaluated. The frequency of incremental update operations. By analyzing the frequency, the update strategy can be optimized to ensure that new knowledge is captured and applied in the shortest time. The application effectiveness of the baseline knowledge graph refers to the effect and efficiency of the updated baseline knowledge graph in actual applications. The level of effectiveness directly reflects the practicality and accuracy of the knowledge graph in specific applications. By monitoring the effectiveness, the update strategy and optimization algorithm can be adjusted to enhance the application value and user satisfaction of the knowledge graph. Therefore, the judgment conditions for graph update optimization are set from these three indicator dimensions.

[0063] In a specific embodiment, the specific statistical example process of counting the number of update positions in step S2 is: constructing a position sequence from the update positions of each increment, for example, the position sequence is [update position a, update position h, update position g, update position a, update position b, update position q, update position b, update position f, update position d].

[0064] Create an empty counter and initialize the count to 0.

[0065] Traverse the position sequence. For each element in the position sequence, check whether it has been traversed. If not, add one to the count of the counter. If so, do not count and traverse the next element. Then, when the traversal is completed, get the count of the counter and use it as the updated position number.

[0066] It should be explained that using a counter ensures that for each position, only the first occurrence is counted.

[0067] Specifically, the statistical incremental update coverage in step S2 includes: sorting the update time points of each update position corresponding to each increment in chronological order to obtain an update time point sorting.

[0068] The update time point with the last sorting position is recorded as the target time point, and the interval between the target time point and the current time point is recorded as the update interval.

[0069] The update interval duration of each update position is compared with a preset reference update time window, and the update position whose update interval duration is within the reference update time window is recorded as the target update position, and the number of target update positions is counted.

[0070] Mark all target update positions in the baseline knowledge graph, and obtain the graph layer where each marked target update position is located in the baseline knowledge graph.

[0071] All target update positions in the same atlas layer are recorded as same-layer positions, the number of same-layer positions is counted, and the number of atlas layers is extracted from the benchmark knowledge graph. The ratio of the number of same-layer positions to the number of atlas layers is taken as the incremental update coverage.

[0072] It should be added that the update time window mentioned above is obtained by extracting from the effective update assessment technology table. Exemplarily, the unit of the update time window is hour, which can be specifically expressed as (0, 720).

[0073] Specifically, the incremental update frequency statistics in step S2 include: extracting the update time points of the first increment and the last increment from the update time points of each increment, and comparing the two to obtain the incremental update cycle length.

[0074] The ratio of the number of increments to the length of the incremental update cycle is taken as the incremental update frequency, and then the incremental update frequency corresponding to each update position is recorded as , Indicates Update locations, .

[0075] Compare the update time points under each increment to obtain the update interval length under each increment, calculate the variance of the update interval length under each increment, and use the calculation result as the incremental time dispersion. The incremental time dispersion corresponding to each update position is recorded as .

[0076] The average update interval duration under each increment is calculated to obtain the average update interval duration, and the average update interval duration corresponding to each update position is recorded as .

[0077] Statistics incremental update frequency , ZP = max{ ⌊ e p i − p ′ p ′ ⌋ + ⌊ e T ′ − T i ∗ [ 1 − ( 1 1 + e − ϕ i − 0 . 5 )] T ′ ⌋ } , represents a natural constant, To set the reference increment update frequency, To set the reference update interval, Indicates the floor symbol.

[0078] It should be added that the statistical formula of the incremental update frequency is modified based on the exponential regression function, wherein the exponential regression function is set as the reference function to ensure that the update frequency value is a non-negative number.

[0079] It is also necessary to add that It represents the incremental time correction factor. The incremental time dispersion corresponds to the variance calculation result, and the minimum value of the variance calculation result is 0, that is, The minimum value of is 0.5. When the incremental time dispersion is 0, it indicates that it is very concentrated. At this time, there is no need to correct the incremental time. That is, when the average update interval is used for calculation, the reliability of the calculation result is relatively large. Therefore, Based on the corresponding calculation results, the calculation influence caused by the increment time dispersion being 0 is removed, thereby ensuring the correction reliability of the increment time correction factor. as the final incremental time correction factor, and The calculation formula is set with reference to the Sigmoid function, the purpose of which is to map the specific value of the calculation result between 0 and 1 to achieve the correction of the incremental time.

[0080] In one embodiment, the reference incremental update frequency and reference update interval The specific value of is mainly obtained through the application requirements of the benchmark knowledge graph, that is, it can be extracted from the setting update assessment technical table of the application to which the benchmark knowledge graph belongs.

[0081] Specifically, the application effectiveness of the statistical benchmark knowledge graph in step S3 includes: taking the initial imported keywords as the initial keywords, and calculating the similarity between the imported keywords and the initial keywords at each search through a text similarity calculation algorithm as the benchmark similarity at each search.

[0082] It should be added that the text similarity calculation algorithm can be calculated using algorithms such as the cosine similarity algorithm or the BERT similarity algorithm. Specifically, the cosine similarity algorithm can be used for similarity statistics.

[0083] The search similarity between each search is calculated in the same way as the baseline similarity during each search.

[0084] If the baseline similarity during a certain search is greater than the set baseline similarity, the search is recorded as a directly related search.

[0085] If the baseline similarity of a certain search is less than the set baseline similarity, the baseline similarity of the previous search corresponding to this search is greater than the set baseline similarity, and the search similarity between this search and the previous search corresponding to this search is greater than the set baseline similarity, then this search is recorded as an indirect related search.

[0086] The number of direct and indirect related searches are counted, and the sum of the two is recorded as the total number of related searches, and the ratio of the total number of related searches to the number of searches is recorded as the related search ratio.

[0087] The correlation retrieval ratio of each record application is recorded as , Indicates the record application sequence number. , the application effectiveness of statistical benchmark knowledge graph , YX = 1 m ∗ ∑ j = 1 m [( 1 E ) k ′ − k j k ′ ] , To record the number of applications, To set the reference related search ratio, is a constant, .

[0088] It should be added that the higher the associated search ratio, the higher the search frequency of the same or similar keywords, that is, the higher the number of search repetitions, which in turn reflects the lower search efficiency and the inability to quickly meet the user's search needs. Therefore, the larger the key search ratio, the smaller the application effectiveness of the corresponding benchmark knowledge graph.

[0089] In a specific embodiment, the reference associated retrieval ratio is set by extracting it from the retrieval efficiency evaluation technology table of the application to which the benchmark knowledge graph belongs, that is, extracting the benchmark repeated retrieval ratio from the retrieval efficiency evaluation technology table of the application to which the benchmark knowledge graph belongs, and using the benchmark repeated retrieval ratio as the reference associated retrieval ratio. For example, The specific value can be 0.3.

[0090] Furthermore, the confirmation of the update optimization items of the baseline knowledge graph in step 6 includes: when condition 1 or condition 3 is met, the graph update is used as the update optimization item of the baseline knowledge graph.

[0091] When condition 2 is met, the collection update is used as the update optimization item of the baseline knowledge graph.

[0092] The embodiment of the present invention realizes targeted optimization analysis of the knowledge graph by statistically analyzing the incremental update coverage, incremental update frequency and benchmark knowledge graph, and confirming the update optimization items and the optimization indicators of the update optimization items based on these three indicators, thereby making up for the shortcomings of the current imperfect graph update mechanism. It can not only ensure the timely absorption of new information and timely updating of the knowledge graph, but also timely eliminate outdated content, breaking the lag of the current graph update, and providing an automated and intelligent update strategy, thereby avoiding the disconnection between the graph content and reality, and further ensuring the efficiency, reliability and stability of the application in the actual application of the graph.

[0093] Furthermore, the optimization index of the update optimization item in step 6 includes: the first step, when the update optimization item is a graph update, the preset graph automatic update frequency is recorded as , Optimize the automatic update frequency of statistical graphs , p t = p s ∗ { 1 . 5 − [ 1 + e max( 0 , FG − F G ′ F G ′ ) + max( 0 , YX − Y X ′ Y X ′ ) ] − 1 } , and as an optimization indicator.

[0094] It should be added that 1 . 5 − [ 1 + e max( 0 , FG − F G ′ F G ′ ) + max( 0 , YX − Y X ′ Y X ′ ) ] − 1 Can be split into 1 + 1 − [ 1 + e max( 0 , FG − F G ′ F G ′ ) + max( 0 , YX − Y X ′ Y X ′ ) ] − 1 − 0 . 5 ,in, 1 − [ 1 + e max( 0 , FG − F G ′ F G ′ ) + max( 0 , YX − Y X ′ Y X ′ ) ] − 1 Indicates the update frequency optimization requirement factor, and its value range is between 0.5 and 1, excluding 0.5 and 1, because the update optimization item must be satisfied when the graph is updated or ,Right now Heng established, when and When the value of the update frequency optimization demand factor is 0.5, the minimum value of the update frequency optimization demand factor tends to 0.5. In order to ensure the rationality and reliability of the automatic update frequency optimization of the graph, the critical value is subtracted from the value of the update frequency optimization demand factor. and When established, update the value of the frequency optimization demand factor.

[0095] It can be understood that the setting formula of the update frequency optimization demand factor is set according to the Logistic function, which is a variant of the Sigmoid function. By setting the update frequency optimization demand factor, it is convenient to quantitatively improve the update frequency.

[0096] It is also necessary to add that Indicates that between 0 and Select the maximum value among Indicates that between 0 and Select the maximum value among The independent variable representing the update frequency optimization demand factor is set by referring to the ReLU function to avoid computational interference when conditions 1 and 3 are not met at the same time. At the same time, it can ensure that when conditions 1 and 3 are met at the same time, the calculated value of the update frequency optimization demand factor is the maximum, which can well meet the computational requirements.

[0097] Step 2: When the update optimization item is collection update, the preset collection interval is recorded as , statistics optimization collection interval length , ,Will as an optimization indicator.

[0098] It should be added that Can be disassembled into ,in, It represents the collection update demand factor. Its setting formula is the same as the update frequency optimization demand factor setting formula. The value of the collection update demand factor minus 0.5 is also to ensure the rationality and reliability of the optimization degree. Slightly larger than At this time, the reduction ratio of the collection interval is effectively reduced, which is more in line with actual needs.

[0099] In a specific embodiment, the pre-set graph automatic update frequency and collection interval duration are the initial settings when the benchmark knowledge graph is constructed.

[0100] The embodiment of the present invention confirms the automatic update frequency of the graph optimization when the update optimization item is a graph update, and confirms the optimization collection interval when the update optimization item is a collection update, thereby improving the adaptability of the knowledge graph, ensuring that the graph can promptly reflect new knowledge and changes, maintaining its timeliness and accuracy, and avoiding overly frequent or infrequent updates, thereby improving the efficiency and resource utilization of the system, while improving the rationality of the collection interval setting, and through a reasonable interval duration, important and valuable information can be collected to the greatest extent, while reducing unnecessary data collection and processing costs.

[0101] The above contents are merely examples and explanations of the concept of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the present invention, they shall all fall within the protection scope of the present invention.

Claims

1. Knowledge graph technology feature analysis method based on natural language processing, Features: include: Step 1: Data collection: Collect the currently accumulated multi-source data from various data sources; Step 2: Data processing: Process the currently accumulated multi-source data to obtain a new knowledge graph; Step 3, graph update trigger judgment: record the pre-set knowledge graph as the baseline knowledge graph, and judge whether to trigger incremental update based on the newly added knowledge graph. If so, confirm the incremental information, update the baseline knowledge graph, and record the incremental update data. If not, execute the next step, where the incremental update data consists of the update time point and incremental information; Step 4: Application data collection: Collect the record operation tracking table of each record application corresponding to the benchmark knowledge graph; Step 5: Graph update optimization judgment: Collect the cumulative incremental update data of the benchmark knowledge graph, and judge whether graph update optimization is needed based on the cumulative incremental update data and application data. If so, proceed to the next step; Step 6: Confirmation of graph update optimization: Confirm the update optimization items of the benchmark knowledge graph and the optimization indicators of the update optimization items; Step 7: Graph update optimization feedback: Feedback the update optimization items and optimization indicators of the baseline knowledge graph to the graph update manager; The processing of the currently accumulated multi-source data includes: Preprocess the accumulated multi-source data; Use NER tools to perform entity recognition on pre-processed multi-source data, extract entity attributes, events, and relationships between entities, and integrate them to obtain extracted knowledge; The extracted knowledge is stored in the form of triples to form a knowledge graph corresponding to the current multi-source data, which is recorded as the newly added knowledge graph.

2. The method for analyzing the characteristics of knowledge graph technology based on natural language processing according to claim 1, Features: The determining whether to trigger an incremental update includes: Traverse the newly added knowledge graph and the benchmark knowledge graph to extract each entity and each triple in each graph layer of the knowledge graph; For each graph layer, all triples and entities in the layer are arranged in a preset logical order to form a knowledge sequence; For each graph layer, compare the knowledge sequence in the newly added knowledge graph with the knowledge sequence in the benchmark knowledge graph; If there is an inconsistency between the entities or triples in a certain graph layer of the newly added knowledge graph and the baseline knowledge graph, it will be used as a trigger for the incremental update judgment result; If there is a partial inconsistency between the triples in the newly added knowledge graph and the corresponding graph layer in the baseline knowledge graph, it will be used as a trigger for the incremental update judgment result; If the knowledge sequence of the newly added knowledge graph is completely consistent with the knowledge sequence of each graph layer in the baseline knowledge graph, whether it triggers the incremental update judgment result will be used.

3. The method for analyzing the characteristics of knowledge graph technology based on natural language processing according to claim 2, Features: The confirmation increment information includes: If the newly added knowledge graph is inconsistent with the corresponding entity in the benchmark knowledge graph, the entity is treated as an added entity, and the graph layer is treated as the associated added graph layer of the added entity; If a triple in a corresponding graph layer in the newly added knowledge graph is completely inconsistent with that in the benchmark knowledge graph, the triple is taken as an added triple, and the graph layer is taken as the associated added graph layer of the added triple; If a triple in a corresponding graph layer in the newly added knowledge graph is inconsistent with that in the baseline knowledge graph, the triple is taken as a modified triple, and the position of the modified triple in the graph layer is extracted from the baseline knowledge graph as the associated modified position of the modified triple. In this way, each added entity, each added triple, each modified triple, the associated added graph layer of each added entity, the associated added graph layer of each added triple and the associated modified position of the modified triple are obtained and combined into incremental information.

4. The method for analyzing the characteristics of knowledge graph technology based on natural language processing according to claim 1, Features: The determining whether to perform graph update optimization includes: Extracting the update time point of each increment and the update position of each increment from the accumulated incremental update data; Traverse the update positions of each increment, count the number of update positions, and based on the update time points of each increment, integrate the number of increments corresponding to each update position and the update time points under each increment, and count the incremental update coverage and incremental update frequency ; Extract the initial import keyword, the number of searches and the import keyword during each search from the record operation tracking table, and calculate the application effectiveness of the benchmark knowledge graph based on the results. ; Will Greater than the set reference increment update coverage As condition 1, Greater than the set reference incremental update frequency As condition 2, Greater than the set reference application validity As condition 3; If condition 1, condition 2 or condition 3 is met, it will be used as the judgment result of the graph update optimization. If condition 1, condition 2 and condition 3 are not met, it will not be used as the judgment result of the graph update optimization.

5. The method for analyzing the characteristics of knowledge graph technology based on natural language processing according to claim 4, Features: The statistical increment update coverage includes: Sort the update time points of each update position corresponding to each increment in chronological order to obtain the update time point sorting; The update time point with the last ranking position is recorded as the target time point, and the interval between the target time point and the current time point is recorded as the update interval; Compare the update interval duration of each update position with the preset reference update time window, record the update position whose update interval duration is within the reference update time window as the target update position, and count the number of target update positions; Mark all target update positions in the baseline knowledge graph, and obtain the graph layer where each marked target update position is located in the baseline knowledge graph; All target update positions in the same atlas layer are recorded as same-layer positions, the number of same-layer positions is counted, and the number of atlas layers is extracted from the benchmark knowledge graph. The ratio of the number of same-layer positions to the number of atlas layers is taken as the incremental update coverage.

6. The method for analyzing the characteristics of knowledge graph technology based on natural language processing according to claim 4, Features: The statistical increment update frequency includes: Extracting the update time points of the first increment and the last increment from the update time points of each increment, and comparing the two to obtain the incremental update cycle length; The ratio of the number of increments to the length of the incremental update cycle is taken as the incremental update frequency, and then the incremental update frequency corresponding to each update position is recorded as , Indicates Update locations, ; Compare the update time points under each increment to obtain the update interval length under each increment, calculate the variance of the update interval length under each increment, and use the calculation result as the incremental time dispersion. The incremental time dispersion corresponding to each update position is recorded as ; The average update interval duration under each increment is calculated to obtain the average update interval duration, and the average update interval duration corresponding to each update position is recorded as ; Statistics incremental update frequency , , represents a natural constant, To set the reference increment update frequency, To set the reference update interval, Indicates the floor symbol.

7. The method for analyzing the characteristics of knowledge graph technology based on natural language processing according to claim 4, Features: The application effectiveness of the statistical benchmark knowledge graph includes: The initial imported keyword is used as the initial keyword, and the similarity between the imported keyword and the initial keyword is calculated by a text similarity calculation algorithm for each search, which is used as the benchmark similarity for each search; The search similarity between each search is calculated in the same way as the baseline similarity of each search; If the baseline similarity of a search is greater than the set baseline similarity, the search is recorded as a directly related search; If the baseline similarity of a search is less than the set baseline similarity, the baseline similarity of the search corresponding to the previous search is greater than the set baseline similarity, and the search similarity between the search and the previous search corresponding to the search is greater than the set baseline similarity, then the search is recorded as an indirect related search; Count the number of direct related searches and the number of indirect related searches, record the sum of the two as the total number of related searches, and record the ratio of the total number of related searches to the number of searches as the related search ratio; The correlation retrieval ratio of each record application is recorded as , Indicates the record application sequence number. , the application effectiveness of statistical benchmark knowledge graph , , To record the number of applications, To set the reference related search ratio, is a constant, .

8. The method for analyzing the characteristics of knowledge graph technology based on natural language processing according to claim 6, Features: The update optimization items of the confirmed benchmark knowledge graph include: When condition 1 or condition 3 is met, the graph update is used as the update optimization item of the baseline knowledge graph; When condition 2 is met, the collection update is used as the update optimization item of the baseline knowledge graph.

9. The method for analyzing the characteristics of knowledge graph technology based on natural language processing according to claim 8, Features: The optimization index of the confirmed update optimization item includes: When the update optimization item is a graph update, the preset graph automatic update frequency is recorded as , Optimize the automatic update frequency of statistical graphs , , and As an optimization indicator; When the update optimization item is collection update, the preset collection interval is recorded as , statistics optimization collection interval length , ,Will as an optimization indicator.

Citation Information

Patent Citations

  • Knowledge graph for conversational semantic search

    CN110998567A

  • Knowledge graph-based index data analysis method

    CN116842188A

  • Data analysis method based on knowledge graph

    CN117932089A

  • Uncertain situation space-time knowledge graph updating method and system

    CN117290366A

  • Intelligent question answering method and system based on natural language processing and knowledge graph

    CN117668253A