An innovative knowledge graph enhanced multi-module question answering system and method

Through knowledge graph retrieval technology and multi-module collaborative work, it solves the accuracy and efficiency problems of traditional question and answer systems in processing fuzzy queries, achieves in-depth understanding of user intentions and high-quality responses, and improves system performance and user satisfaction. .

CN118503400BActive Publication Date: 2024-09-20SHANDONG INSPUR SCI RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410968552.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-09-20
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

Traditional question answering systems have difficulty accurately understanding user intentions when processing user queries with few keywords, broad definitions, and unclear directions, resulting in vague and imprecise answers, which reduces system usability and user satisfaction.

Method used

Using knowledge graph enhanced multi-module question answering system (KGE), combined with knowledge graph retrieval technology, large language model and other modules, through hypothesis output, entity naming recognition, noise filtering, tendency probability scoring and output modules, fuzzy queries are converted into precise queries , extract relevant information and generate high-quality, personalized answers.

Benefits of technology

It improves the accuracy and efficiency of the system when processing fuzzy or incomplete queries, provides more in-depth and relevant answers, enhances user experience and knowledge management efficiency, and is especially suitable for complex data environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503400B
    Figure CN118503400B
Patent Text Reader

Abstract

The present invention proposes an innovative knowledge graph enhanced multi-module question-answering system and method, which belongs to the field of artificial intelligence technology, and includes: a hypothesis output module, an entity naming recognition module, a knowledge graph retrieval module, a noise filtering module, a tendency probability scoring module and an output module; the hypothesis output module is used to receive fuzzy queries, and use a question parser and a customized language model to adjust the BERT model to adapt to the problem scenario, convert the fuzzy query into a precise query, and generate a hypothesis answer; the output module selects the precise query and hypothesis answer group with the highest tendency score, and provides corresponding replies. By integrating knowledge graph retrieval technology, large language models and other key modules, an in-depth understanding of the internal knowledge structure and a precise response to user queries are achieved, which can comprehensively cover the knowledge related to user queries and provide more in-depth answers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence technology, and specifically relates to an innovative knowledge graph enhanced multi-module question-answering system and method. Background Art

[0002] In today's artificial intelligence and natural language processing (NLP) fields, question answering systems have become an important tool for information retrieval and knowledge management. The goal of these systems is to understand the questions asked by users and provide accurate and relevant answers. With the development of large language models (LLMs), such as ChatGPT and LLaMA, the performance of question answering systems has been significantly improved. These models are pre-trained on large-scale text data and are able to generate fluent and informative answers.

[0003] However, traditional question-answering systems still face some challenges when users query questions with few keywords, broad definitions, and unclear directions. This type of query may make it difficult for the system to accurately understand the user's intent and provide relevant answers. Due to the lack of clear guidance information, traditional systems may produce vague and imprecise answers, reducing the system's usability and user satisfaction. In this case, it is particularly important to improve the system's understanding ability and the accuracy of the answers to improve the system's performance and meet user needs.

[0004] To meet this challenge, this patent proposes an innovative knowledge graph enhanced multi-module question answering system (KGE). The system combines knowledge graph retrieval technology, large language models, and a series of other modules to achieve a deep understanding of the internal knowledge structure and accurate response to user queries. By introducing knowledge graphs and other modules, the KGE system can better lock on the key information in user queries, thereby providing users with more efficient and accurate query answering solutions. Summary of the invention

[0005] In view of the problems in the prior art, the present invention provides an innovative knowledge graph enhanced multi-module question-answering system and method, which aims to improve the accuracy and efficiency of the question-answering system when processing incomplete or ambiguous user queries. The system achieves an in-depth understanding of the internal knowledge structure and accurate response to user queries by integrating knowledge graph retrieval technology, large language models and other key modules.

[0006] In order to achieve the above purpose, the technical solution adopted in this application is:

[0007] In a first aspect, the present invention provides an innovative knowledge graph enhanced multi-module question answering system (KGE), comprising: a hypothesis output module, an entity naming recognition module, a knowledge graph retrieval module, a noise filtering module, a tendency probability scoring module and an output module;

[0008] The hypothesis output module is used to receive fuzzy queries, and use the question parser and customized language model to adjust the BERT model to adapt to the question scenario, convert the fuzzy query into a precise query, and generate a hypothesis answer;

[0009] The entity naming recognition module classifies fuzzy queries into predefined categories through an entity recognition engine for subsequent knowledge retrieval and processing;

[0010] The knowledge graph retrieval module processes the fuzzy query through the built-in knowledge graph and the external named entity recognition module, obtains the processing results, and extracts the information entity;

[0011] The noise filtering module processes the fuzzy query using a rearrangement strategy and a sorting algorithm to obtain high-quality entity-related information, and filters out information irrelevant to the fuzzy query entity through in-depth review and optimization processing, retaining only knowledge related to the fuzzy query entity;

[0012] The propensity probability scoring module interprets the user's historical behavior and log files to gain insight into the user's demand tendency for fuzzy queries, and generates a propensity score for each group of precise queries and hypothetical answers;

[0013] The output module selects the precise query and hypothetical answer group with the highest propensity score and provides corresponding responses.

[0014] Furthermore, the entity recognition engine of the entity naming recognition module uses an HMMs recognition algorithm to extract noun entities in the query.

[0015] Furthermore, the knowledge graph retrieval module uses the entity encoder K-BERT model to retrieve information related to the fuzzy query from the medical knowledge graph.

[0016] Furthermore, the noise filtering module utilizes the TopKchain rearrangement strategy and the LambdaMART sorting algorithm.

[0017] In a second aspect, the present invention provides an innovative working method of a knowledge graph enhanced multi-module question answering system, comprising:

[0018] The hypothesis output module receives fuzzy queries and uses the question parser and customized language model to adjust the BERT model to fit the question scenario, convert the fuzzy query into a precise query, and generate a hypothesis answer;

[0019] The entity recognition engine of the entity naming recognition module classifies fuzzy queries into predefined categories for subsequent knowledge retrieval and processing;

[0020] The fuzzy query is processed through the built-in knowledge graph of the knowledge graph retrieval module and the external named entity recognition module to obtain the processing results and extract the information entity;

[0021] The noise filtering module uses rearrangement strategies and sorting algorithms to process fuzzy queries and obtain high-quality entity-related information. Through in-depth review and optimization processing, information irrelevant to the fuzzy query entity is filtered out, and only knowledge related to the fuzzy query entity is retained;

[0022] The propensity probability scoring module interprets the user's historical behavior and log files, provides insights into the user's demand for fuzzy queries, and generates a propensity score for each set of precise queries and hypothetical answers;

[0023] The output module selects the precise query and hypothetical answer group with the highest propensity score and provides the corresponding response.

[0024] Compared with the prior art, the advantages and positive effects of the present invention are:

[0025] 1. The present invention achieves an in-depth understanding of the internal knowledge structure and accurate response to user queries by integrating knowledge graph retrieval technology, large language models and other key modules. The KGE system adopts knowledge graph retrieval technology, which enables it to extract relevant information from the knowledge graph based on the entities in the user query. This dynamic retrieval method enables the system to adjust the retrieval context as the knowledge base changes and new query requirements, thereby maintaining real-time updating and adaptation of knowledge. By integrating information in the knowledge graph, the system can comprehensively cover the knowledge related to user queries and provide more in-depth answers.

[0026] 2. The innovation of the KGE system in the present invention is that it combines large language models, knowledge graph retrieval technology, propensity probability, etc., and through the collaborative work of multiple modules, enhances the performance of the system when processing extensive or incomplete queries. Assume that the output module can generate several related precise queries based on the user's original query, which enables the system to understand the user query more comprehensively and provide more relevant answers. The noise knowledge filtering module and propensity scoring module in the system further improve the performance and efficiency of the system, generating accurate and informative answers. Through application examples in the field of healthcare, the KGE system demonstrates its ability in understanding user queries and improving output efficiency, further enhancing the value and influence of this innovative system in the field of question-answering systems.

[0027] 3. The KGE system of the present invention has broad application prospects in the field of knowledge retrieval, especially in the case of processing incomplete user input queries. This system is applicable to a variety of complex data environments. By implementing the KGE system, users can quickly and accurately obtain the required knowledge information, promote knowledge sharing and collaboration, and improve the efficiency and quality of knowledge management. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0029] Figure 1 A schematic diagram of the structure of the multi-module question-answering system enhanced by the knowledge graph of the present invention;

[0030] Figure 2 is a structural diagram of a hypothetical output module of the present invention;

[0031] Figure 3 It is a structural schematic diagram of the named entity module of the present invention;

[0032] Figure 4 It is a schematic diagram of the structure of the knowledge graph retrieval module of the present invention;

[0033] Figure 5 It is a structural schematic diagram of the noise filtering module of the present invention;

[0034] Figure 6 is a schematic diagram of the structure of the propensity scoring module of the present invention;

[0035] Figure 7 It is a structural schematic diagram of the output module of the present invention. DETAILED DESCRIPTION

[0036] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0037] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways than those described herein. Therefore, the present invention is not limited to the specific embodiments of the following disclosure.

[0038] Embodiment 1, as Figure 1 to Figure 7As shown, this embodiment provides a knowledge graph enhanced multi-module question answering system (KGE) and method, which aims to optimize the application of query and answer of knowledge graph in large language model (LLM) in question answering system. The core of KGE system is to combine knowledge graph retrieval technology with large language model and a series of other modules, so as to improve the accuracy, depth and efficiency of question answering system.

[0039] The KGE system consists of the following key modules:

[0040] Hypothesis output module: In the KGE system, it is responsible for receiving user queries and generating several clear queries that the user may refer to and their hypothetical answers based on the fuzzy or incomplete user queries.

[0041] Entity Naming Recognition Module: In the KGE system, entities (such as person names, organization names, places, etc.) are recognized and classified into predefined categories through NER.

[0042] Knowledge graph retrieval module: In the KGE system, it is responsible for using the entity encoder to retrieve relevant information of the identified entity from the knowledge graph and extract useful information.

[0043] Noise filtering module: It is responsible for removing irrelevant knowledge in the KGE system and retaining the most relevant information from the retrieved knowledge through the knowledge re-ranker.

[0044] Propensity Probability Scoring Module: In the KGE system, it is responsible for evaluating the correctness or relevance of each set of queries and hypothesis outputs based on user preferences and historical behaviors.

[0045] Output module: In the KGE system, it is responsible for receiving the query and hypothesis output groups with the highest propensity scores, and selecting the group that provides the most relatively rich information as the response to the user query.

[0046] The main steps are as follows:

[0047] The hypothesis output module serves as the starting point of the process. This module receives ambiguous or incomplete user queries and generates possible clear queries and hypothesis answers to provide more targeted input. The NER module identifies and classifies named entities in clear queries or hypotheses to provide key information for subsequent steps. The knowledge graph retrieval module retrieves relevant information from the knowledge graph based on the identified entities and uses encoder technology for information extraction and matching. The noisy knowledge filtering module filters out noise or irrelevant information in the knowledge graph to improve the accuracy and efficiency of subsequent steps. The propensity scoring module evaluates the correct probability or propensity of each set of query and hypothesis output based on historical query records or the relevance of the query to the output to determine the combination that is most likely to be the correct answer. The output module selects the query and hypothesis output group with the highest propensity score and presents it to the user as the final answer.

[0048] The present invention mainly includes the following different module functions:

[0049] The hypothesis output module uses a Transformer-based architecture model, which mainly includes four key components: user question parser, customized language model, hypothesis generator, and result fusion. The function of the user question parser is to decode the user's query and then generate several related questions based on the user's question to ensure that the input information can be accurately captured by the system. For example, when a user queries "headache", the system may generate queries such as "What causes headaches?" and "What are the treatments for headaches?". The customized language model is used to adjust the BERT model and its variants according to specific tasks or needs to adapt to various hypothesis scenarios. For example, for problems in the financial field, FinBERT and similar models are fine-tuned to match financial-related terms. The hypothesis generator is responsible for synthesizing the questions generated by the user question parser and the model processing results to create possible hypotheses, such as "Headaches may be caused by increased intracranial pressure" and "Sleep supplements and light diets can help relieve headaches." Result fusion combines several user question-derived questions with the generated hypotheses to form a complete hypothesis input and output data flow.

[0050] The named entity recognition module includes a key component: the entity recognition engine. The entity recognition engine uses recognition algorithms such as conditional random fields (CRFs) and hidden Markov models (HMMs) to accurately mine entities from the data stream generated by the input module. The engine uses a model that combines multiple statistical models and deep learning technologies to ensure the effective extraction of entity information from text data. At the same time, through deep semantic analysis and pattern recognition, the extracted information is classified into common entity types. Finally, the recognition results are integrated and optimized through a refined process to ensure that the output entity list is optimized in terms of accuracy and completeness.

[0051] The knowledge graph retrieval module consists of three core components: the knowledge entity library, the entity encoder, and the reasoning chain builder. The knowledge entity library is responsible for storing and managing massive knowledge graph entities. It can extract or receive necessary information entities from the built-in knowledge graph and the processing results of the connected external named entity recognition module. The entity encoder adopts a variety of encoding algorithms, using models such as ERNIE (Enhanced Representation through kNowledge IntEgration) and K-BERT to transform the knowledge entities extracted by the named entity recognition module to ensure that they can adapt to subsequent knowledge operation requirements. The reasoning chain builder uses reinforcement learning and the internal connections between entities to establish a logical reasoning chain, which not only improves the depth of retrieval, but also provides the possibility of solving complex problems. During the whole process, the module will also evaluate the quality and adjust and optimize the reasoning chain to ensure the accuracy and logical coherence of the output information, and ensure that the module output is a structured and understandable knowledge network.

[0052] The noise filtering module is mainly composed of two components: the knowledge re-ranker and the knowledge refining system. The knowledge re-ranker is responsible for evaluating and sorting the information flow output by the knowledge graph retrieval module, using the TopKchain re-ranking strategy, combined with LambdaMART and other sorting algorithms to screen out the most relevant and high-quality information flow based on the similarity with the output results of the initial hypothesis output module. On this basis, the knowledge refining system uses neural network models such as Information Refining Networks to further eliminate those noise interferences, and through strict quality control processes, improve the purity and use value of information. Throughout the process, the module will also conduct in-depth review and optimization of the filtered information, so that the output results are not only highly consistent with the needs, but also clear and easy to accept in presentation.

[0053] The propensity scoring module consists of two basic parts: the user preference analyzer and the content optimizer. The task of the user preference analyzer is to interpret the user's historical behavior and log files to gain insight into the user's preference tendencies. It uses intelligent algorithms such as sentiment analysis to convert user tendencies into scoring criteria, providing a basis for the next step of content optimization. The content optimizer re-screens and refines the information flow output by the noise filtering module based on these scoring criteria, using natural language generation (NLG) technology to select knowledge content that best reflects the user's personalized needs. Throughout the process, the module continuously iterates, evaluates, and adjusts the output results to be close to the user's cognition and preferences in expression.

[0054] The output module includes two core links: data integration and presentation, and result display and feedback. Data integration and presentation converts complex information into a format that users can understand based on the calculation results of the algorithm and the data processing logic. Result display and feedback involve the visualization of information and the adjustment of display content according to user needs. Data integration and presentation extract key points from the output of the calculation model and reorganize the data structure to meet the display requirements. Result display and feedback presents the processed data to users in the form of charts, lists or text, while monitoring user responses and optimizing the information presentation method accordingly to ensure the efficiency and accuracy of information transmission.

[0055] In order to better understand the KGE system of the present invention, the implementation process is explained by taking the medical care system as an example.

[0056] Hypothesis output module: Receives fuzzy or incomplete user queries, and uses a user-based question parser and customized language model to adjust the BERT model to adapt to medical problem scenarios, converting fuzzy queries into more specific queries, and providing clear questions and hypothetical answers for subsequent processing. For example, when a user queries "headache", the system may generate queries such as "What causes headaches?" and "What are the treatments for headaches?" and propose corresponding hypothetical answers, such as "Headaches may be caused by increased intracranial pressure" and "Sleep supplements and a light diet can help relieve headaches."

[0057] Entity naming recognition module: Through entity recognition engines, such as HMMs and other recognition algorithms, noun entities in the query, such as "headache", are extracted and classified into predefined categories, such as "symptoms", for subsequent knowledge retrieval and processing. In actual scenarios, the system can identify more symptom entities related to "headache", such as "dizziness", "nausea", etc., providing more clues for further processing of the problem.

[0058] Knowledge graph retrieval module: The system extracts or accepts necessary information entities from the built-in knowledge graph and the processing results of the external named entity recognition module. In daily applications, this means that the system can automatically recognize the entities entered by the user. For example, when the user mentions "headache", the system can recognize this symptom from the user input. The system then uses entity encoders, such as K-BERT and other models, to retrieve disease information related to "headache", such as migraine, increased intracranial pressure, etc. from the medical knowledge graph. For example, when asking "What are the possible causes of headaches?", the system can provide relevant explanations and suggestions based on the retrieved disease information.

[0059] Noise filtering module: Using the TopKchain rearrangement strategy and sorting algorithms such as LambdaMART, the system can obtain high-quality entity-related information. In this process, the knowledge refinement system filters out information irrelevant to the entity through in-depth review and optimization processing, and only retains knowledge related to the entity. For example, in the scenario where the user queries "headache", the system will remove information related to irrelevant symptoms such as "fever" and "cold", and only retain relevant knowledge about the treatment, cause, symptom description, etc. of "headache", thereby ensuring that the content provided is closely related to the user's query.

[0060] Propensity Probability Scoring Module: The system interprets the user's historical behavior and log files to gain insight into the user's demand tendencies and generates a propensity score for each set of clear queries and hypothetical answers. For example, the system will consider the user's previous search history, click preferences, and other behaviors related to headaches, such as reading medical articles or viewing drug information. Based on this information, the system will evaluate the user's preferences for several different sets of queries and hypothetical outputs and give corresponding scores. Assuming that the user has searched for headache treatments many times before, the system may infer that the user is more inclined to obtain information about headache treatments. Therefore, the system may give a higher propensity score to answers about headache treatments to meet the user's preferences. If the user's past search history shows that they are more interested in the causes and prevention of headaches, the system may adjust the propensity score accordingly to better match the user's needs.

[0061] Output module: Select the clear query and hypothetical answer group with the highest propensity score and provide corresponding responses. For example, the system selects the most frequently asked diseases and treatments based on the score to better respond to user queries. After the user evaluates the response, the system will also develop an optimization strategy. This may include adjusting the content of the hypothetical answer, updating relevant information in the knowledge graph, or retraining the language model to better meet user needs. Through these optimization strategies, the system can continuously improve performance, provide users with more accurate and personalized responses, and improve user satisfaction and search experience.

[0062] Through the collaborative work of the above modules, the KGE system is able to provide efficient and accurate knowledge query services for the medical field, helping users quickly obtain the required information while continuously optimizing and adapting to new query needs over time.

[0063] Embodiment 2, the present invention provides an innovative working method of a knowledge graph enhanced multi-module question answering system, comprising:

[0064] The hypothesis output module receives fuzzy queries and uses the question parser and customized language model to adjust the BERT model to fit the question scenario, convert the fuzzy query into a precise query, and generate a hypothesis answer;

[0065] The entity recognition engine of the entity naming recognition module classifies fuzzy queries into predefined categories for subsequent knowledge retrieval and processing;

[0066] The fuzzy query is processed through the built-in knowledge graph of the knowledge graph retrieval module and the external named entity recognition module to obtain the processing results and extract the necessary information entities;

[0067] The noise filtering module uses rearrangement strategies and sorting algorithms to process fuzzy queries and obtain high-quality entity-related information. Through in-depth review and optimization processing, information irrelevant to the fuzzy query entity is filtered out, and only knowledge related to the fuzzy query entity is retained;

[0068] The propensity probability scoring module interprets the user's historical behavior and log files, provides insights into the user's demand for fuzzy queries, and generates a propensity score for each set of precise queries and hypothetical answers;

[0069] The output module selects the precise query and hypothetical answer group with the highest propensity score and provides the corresponding response.

[0070] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. An innovative knowledge graph-enhanced multi-module question-answering system, characterized by: include: Hypothesis output module, entity naming recognition module, knowledge graph retrieval module, noise filtering module, tendency probability scoring module and output module; The hypothesis output module is used to receive fuzzy queries, and use the question parser and customized language model to adjust the BERT model to adapt to the question scenario, convert the fuzzy query into a precise query, and generate a hypothesis answer; The entity naming recognition module classifies fuzzy queries into predefined categories through an entity recognition engine for subsequent knowledge retrieval and processing; The knowledge graph retrieval module processes the fuzzy query through the built-in knowledge graph and the external named entity recognition module, obtains the processing results, and extracts the information entity; The noise filtering module processes the fuzzy query using a rearrangement strategy and a sorting algorithm to obtain high-quality entity-related information, and filters out information irrelevant to the fuzzy query entity through in-depth review and optimization processing, retaining only knowledge related to the fuzzy query entity; The propensity probability scoring module interprets the user's historical behavior and log files to gain insight into the user's demand tendency for fuzzy queries, and generates a propensity score for each group of precise queries and hypothetical answers; The output module selects the precise query and hypothetical answer group with the highest propensity score and provides corresponding responses.

2. According to claim 1, an innovative knowledge graph enhanced multi-module question answering system is characterized in that: The entity recognition engine of the entity naming recognition module adopts the HMMs recognition algorithm to extract the noun entities in the query.

3. The innovative knowledge graph enhanced multi-module question answering system according to claim 1, characterized in that: The knowledge graph retrieval module uses the entity encoder K-BERT model to retrieve information related to fuzzy queries from the medical knowledge graph.

4. The innovative knowledge graph enhanced multi-module question answering system according to claim 1, characterized in that: The noise filtering module uses the TopKchain rearrangement strategy and the LambdaMART sorting algorithm.

5. An innovative working method of a knowledge graph enhanced multi-module question answering system, characterized in that: include: The hypothesis output module receives fuzzy queries and uses the question parser and customized language model to adjust the BERT model to fit the question scenario, convert the fuzzy query into a precise query, and generate a hypothesis answer; The entity recognition engine of the entity naming recognition module classifies fuzzy queries into predefined categories for subsequent knowledge retrieval and processing; The fuzzy query is processed through the built-in knowledge graph of the knowledge graph retrieval module and the external named entity recognition module to obtain the processing results and extract the information entity; The noise filtering module uses rearrangement strategies and sorting algorithms to process fuzzy queries and obtain high-quality entity-related information. Through in-depth review and optimization processing, information irrelevant to the fuzzy query entity is filtered out, and only knowledge related to the fuzzy query entity is retained; The propensity probability scoring module interprets the user's historical behavior and log files, provides insights into the user's demand for fuzzy queries, and generates a propensity score for each set of precise queries and hypothetical answers; The output module selects the precise query and hypothetical answer group with the highest propensity score and provides the corresponding response.