Method and system for semantic confusion detection

Through surface semantic analysis and sentence vector model, we identify and fuse confusing question pairs, update the knowledge base, solve the adaptability and real-time problems of semantic confusion detection in the intelligent dialogue platform, improve the accuracy of confusion detection and data utilization efficiency, and achieve Improved data closed loop and knowledge base quality.

CN112699226BActive Publication Date: 2024-09-20SUNING COM CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202011586654.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-29
Publication Date
2024-09-20
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

Existing semantic confusion detection methods cannot adapt to the irregular modifications and data closed-loop construction of the intelligent dialogue platform's knowledge base, and cannot optimize the model in real time, resulting in low confusion detection accuracy and the inability to fully utilize the rich corpus and changes in the knowledge base.

Method used

Identify confusing question pairs through surface semantic analysis and sentence vector models, fuse candidate sets, update the knowledge base, construct a data closed loop, and improve the quality of the knowledge base and confusion detection accuracy.

Benefits of technology

It has achieved the purification of corpus, improved the quality of the knowledge base and the accuracy of confusion detection, linked the data layer and the training layer, supported data iteration, and improved the semantic confusion detection capability of the intelligent dialogue platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112699226B
    Figure CN112699226B
Patent Text Reader

Abstract

The present invention discloses a method and system for semantic confusion detection, wherein the method includes obtaining a full knowledge base of a dialogue platform; performing surface semantic analysis between two questions in the full knowledge base to identify a first candidate set of confusing question pairs; identifying a second candidate set of confusing question pairs based on the full knowledge base using a sentence vector model; fusing the first candidate set of confusing question pairs and the second candidate set of confusing question pairs to obtain a target candidate set of confusing question pairs; and updating the full knowledge base based on the target candidate set of confusing question pairs. The system for semantic confusion detection provided by the present invention adopts the above method for semantic confusion detection, improves the quality of the knowledge base, and also implements data iteration by constructing a data closed loop, further improving the accuracy of confusion detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to a method and system for semantic confusion detection. Background Art

[0002] Each knowledge point in the dialogue platform knowledge base corresponds to an intention class of a question. There may be marginal questions that do not belong to this knowledge point within the knowledge point, and there may also be semantically similar question pairs between knowledge points. For example, under the knowledge point (intent class) of applying for price guarantee service, there may be the following similar questions: How to insure / I need to insure the price of the new one I just bought / How to exchange the old machine / I bought it yesterday and it is so much cheaper today / Can the robot I bought be recycled / etc. Among them, how to exchange the old machine / Can the robot I bought be recycled, these two questions do not belong to the knowledge point (intent class) of applying for price guarantee service, so they are called marginal questions. For another example, question 1: Hello, is there a discount if I buy more (the standard question corresponding to the knowledge point: how to buy in bulk), question 2: Can I get a discount if I buy more (the standard question corresponding to the knowledge point: Can the price be discounted), these two questions belong to different knowledge points (intent classes), that is, question 1 and question 2 are called confusing question pairs. The existence of marginal questions and confusing question pairs will affect the purity of the data under each knowledge point, thereby reducing the accuracy of identifying user intent. Therefore, semantic confusion detection is an important method to improve the quality of intelligent dialogue platforms, and is also of great significance for the construction of dialogue platform data closed loops.

[0003] At present, the main method of semantic confusion detection is to treat all confusion classes as a new category, and then transform semantic confusion detection into a classification problem. However, this solution has two shortcomings:

[0004] First, the existing solution cannot adapt to the irregular modification of the knowledge base of the intelligent dialogue platform, nor can it create a data closed loop during the entire operation cycle of the platform. Specifically, the training corpus configured by the platform is uncertain and will be modified regularly, while semantic confusion is relative to the specific knowledge base corpus, which is contradictory in itself. In addition, different dialogue systems have different knowledge bases configured, and the corresponding confusion classes are also different. Therefore, it is impossible to give an exact new category range, and the definition of the confusion category is uncertain, so it is impossible to construct a data closed loop.

[0005] Second, the existing solutions cannot continuously iterate and optimize the model as the amount of intent data in the knowledge base increases, nor can they perform real-time / instant confusion detection on the platform knowledge base. On the one hand, as the amount of data on the dialogue platform continues to increase, the knowledge base corpus becomes richer and richer. How to better use the data to continuously optimize the model is also a limitation of the existing solutions. However, the classification problem is limited by the number of categories and cannot fully utilize the large amount of corpus. On the other hand, during the operation cycle of the semantic robot, the dialogue platform knowledge base is constantly changing, and this solution that converts semantic confusion detection into a classification problem will be limited in online implementation, resulting in the inability to expand, that is, it is impossible to perform real-time / instant confusion detection on the platform knowledge base. Summary of the invention

[0006] The purpose of the present invention is to provide a method and system for semantic confusion detection, to purify the corpus of the platform knowledge base, to improve the quality of the knowledge base, and to link the data layer and the training layer to construct a data closed loop and realize data iteration, thereby further improving the accuracy of confusion detection.

[0007] In order to achieve the above object, the present invention provides the following technical solutions:

[0008] A method for semantic confusion detection, comprising:

[0009] Obtain the full knowledge base of the conversation platform;

[0010] Performing surface semantic analysis between two questions in the entire knowledge base to identify a first set of candidate confusing question pairs;

[0011] Identify a second set of candidate confusing question pairs using a sentence vector model based on the full knowledge base;

[0012] fusing the first candidate confusing question pair set and the second candidate confusing question pair set to obtain a target candidate confusing question pair set;

[0013] The full knowledge base is updated based on the target candidate confusing question pair set.

[0014] Preferably, the method of performing surface semantic analysis between two questions in the entire knowledge base to identify a first set of candidate confusing question pairs includes:

[0015] Calculating semantic similarities between two questions in the full knowledge base using a variety of surface semantic analysis methods based on corresponding surface semantic features, and obtaining a plurality of surface semantic confusion question pair sets corresponding to the surface semantic analysis methods based on the semantic similarities;

[0016] Eliminate the question pairs that belong to the same knowledge point in the set of surface semantically confusing question pairs;

[0017] Using the voting mechanism, the first candidate confusing question pair set is screened out from all surface semantic confusing question pairs.

[0018] Preferably, the surface semantic analysis method includes one or more of a jaccard similarity algorithm, a word vector model method, and a TF-IDF method.

[0019] Preferably, the method of identifying a second set of candidate confusing question pairs using a sentence vector model based on the full knowledge base includes:

[0020] Use the sentence vector model to encode all questions, build an index library, and obtain the semantic representation vector of each question;

[0021] Using a distance function based on the semantic representation vector, querying from the index library to obtain K confusing questions corresponding to any detected question, K ≥ 0;

[0022] The confused questions belonging to different knowledge points from the detected question in the K confused questions are respectively combined with the detected question to form confused question pairs, and the pairs are stored in the second candidate confused question pair set.

[0023] Specifically, the index library includes a FAISS library, and the distance function includes a cosine distance function.

[0024] Preferably, an intersection method or a union method is selected according to user needs to merge the first candidate confusing question pair set and the second candidate confusing question pair set to obtain a target candidate confusing question pair set.

[0025] Preferably, the method for semantic confusion detection also includes detection of edge questions within knowledge points, and the specific method includes:

[0026] Obtain the center value of any knowledge point and the radius of all questions in the knowledge point to the center value;

[0027] Store all questions in the knowledge point whose distance from the center value is greater than the radius into the edge question candidate set of the knowledge point;

[0028] Calculate the outlier factors of all questions in the marginal question candidate set, and store the questions whose outlier factors are greater than a preset threshold into the marginal question set of the knowledge point;

[0029] The full knowledge base is updated based on a set of marginal questions of knowledge points.

[0030] Furthermore, the central value of any knowledge point is the average value of the feature encoding of each question in any knowledge point;

[0031] The radius from all questions in the knowledge point to the central value is the average distance from all questions in the knowledge point to the central value.

[0032] Preferably, the method for updating the full knowledge base based on the target candidate confusing question pair set and / or the marginal question set of knowledge points includes:

[0033] The target candidate confusing question pair set and / or the edge question set of the knowledge point are stored in the database, and displayed on the front-end page for user review;

[0034] The question sentences determined as incorrect knowledge point classification in the audit result are moved to the correct knowledge point or deleted from the full knowledge base to update the full knowledge base.

[0035] A system for semantic confusion detection includes a data acquisition module, a first confusion detection module, a second confusion detection module, a fusion module and a data feedback module, wherein:

[0036] The data acquisition module is used to acquire the full knowledge base of the dialogue platform;

[0037] The first confusion detection module identifies a first set of candidate confusing question pairs based on the surface semantic features of each question in the full knowledge base;

[0038] The second confusion detection module identifies a second set of candidate confusing question pairs based on the full knowledge base using a sentence vector model;

[0039] The fusion module is used to fuse the first candidate confusing question pair set and the second candidate confusing question pair set to obtain a target candidate confusing question pair set;

[0040] The data feedback module updates the full knowledge base based on the target candidate confusing question pair set.

[0041] Compared with the prior art, the method and system for semantic confusion detection provided by the present invention have the following beneficial effects:

[0042] The method for semantic confusion detection provided by the present invention first uses a surface semantic analysis method and a sentence vector model analysis method to respectively identify a first candidate confusion question pair set and a second candidate confusion question pair set; then the first candidate confusion question pair set and the second candidate confusion question pair set are merged to obtain a target candidate confusion question pair set, the corpus of the platform knowledge base is purified to improve the quality of the knowledge base, and finally the full knowledge base is updated based on the target candidate confusion question pair set. The updated knowledge base is also used for the training of the confusion detection system, the data layer and the training layer are linked, a data closed loop is constructed, data iteration is realized, and the accuracy of confusion detection is further improved.

[0043] The system for semantic confusion detection provided by the present invention adopts the above-mentioned method for semantic confusion detection, improves the quality of the knowledge base, and realizes data iteration by constructing a data closed loop, thereby further improving the accuracy of confusion detection. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0045] Figure 1 Schematic diagram of a method flow for semantic confusion detection in an embodiment of the present invention;

[0046] Figure 2 Schematic diagram of the process of obtaining a set of target candidate confusing question pairs in an embodiment of the present invention;

[0047] Figure 3 Schematic diagram of the process of obtaining a set of marginal questions of knowledge points in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 belong to the scope of protection of the present invention.

[0049] Embodiment 1

[0050] See also Figure 1 , this embodiment provides a method for semantic confusion detection, including:

[0051] Obtain the full knowledge base of the conversation platform;

[0052] Perform surface semantic analysis on each pair of questions in the entire knowledge base to identify the first candidate set of confusing question pairs;

[0053] Based on the full knowledge base, a sentence vector model is used to identify the second candidate confusing question pair set;

[0054] The first candidate confusing question pair set and the second candidate confusing question pair set are merged to obtain a target candidate confusing question pair set;

[0055] Update the full knowledge base based on the set of target candidate confusing question pairs.

[0056] The method for semantic confusion detection provided by the present invention first uses a surface semantic analysis method and a sentence vector model analysis method to respectively identify a first candidate confusion question pair set and a second candidate confusion question pair set; then the first candidate confusion question pair set and the second candidate confusion question pair set are merged to obtain a target candidate confusion question pair set, the corpus of the platform knowledge base is purified to improve the quality of the knowledge base, and finally the full knowledge base is updated based on the target candidate confusion question pair set. The updated knowledge base is also used for the training of the confusion detection system, the data layer and the training layer are linked, a data closed loop is constructed, data iteration is realized, and the accuracy of confusion detection is further improved.

[0057] In actual use, after obtaining the full knowledge base of the dialogue platform, you can first perform text processing such as removing stop words, and then perform obfuscation detection operations. Figure 2 , a method for performing surface semantic analysis between two questions in the entire knowledge base and identifying the first candidate confusing question pair set includes:

[0058] Using multiple surface semantic analysis methods based on corresponding surface semantic features, the semantic similarity between two questions in the entire knowledge base is calculated, and based on the semantic similarity, multiple sets of surface semantic confusion question pairs corresponding to the surface semantic analysis methods are obtained;

[0059] Eliminate the question pairs that belong to the same knowledge point in the set of surface semantically confusing question pairs;

[0060] Using the voting mechanism, the first candidate confusing question pair set is screened out from all surface semantic confusing question pairs.

[0061] In a specific implementation, the surface semantic analysis method includes one or more of the jaccard similarity algorithm, the word vector model method, and the TF-IDF method. The jaccard similarity algorithm represents the semantic information of a question by using 0 or 1 to represent whether the word exists in the word table, and calculates the jaccard similarity as the semantic similarity; the word vector model method represents the semantic information of the question by concatenating the word vectors with the help of maximum pooling and average pooling, and finally calculates the semantic similarity between the questions by using distance functions such as the cosine distance function; the TF-IDF method uses the bag-of-words model to calculate the tfidf value of each word in the question, the semantic features of the question are represented by the model, and the distance function is used to calculate the semantic similarity of the two sentences.

[0062] For questions with different intentions, surface semantic analysis methods such as the jaccard similarity algorithm, word vector model method, and TF-IDF method are used to characterize the surface semantic features of questions from multiple aspects, and the semantic similarity between two questions is calculated. Then, based on the semantic similarity comparison, the preset similarity threshold is used to identify the confusing question pairs, and multiple surface semantic confusing question pair sets corresponding to the surface semantic analysis methods are obtained. Then, the voting mechanism is used to screen out the surface semantic confusing question pairs that are simultaneously contained in most surface semantic confusing question pair sets from all surface semantic confusing question pair sets to form the first candidate confusing question pair set. Taking three surface semantic confusing question pair sets as an example, if two surface semantic confusing question pair sets simultaneously contain the same surface semantic confusing question pairs A1 and A2, the surface semantic confusing question pairs A1 and A2 are stored in the first candidate confusing question pair set.

[0063] In the method for semantic confusion detection provided in this embodiment, the method for identifying the second candidate confusing question pair set based on the full knowledge base using the sentence vector model includes:

[0064] Use the sentence vector model to encode all questions, build an index library, and obtain the semantic representation vector of each question;

[0065] Use the distance function based on the semantic representation vector to query the index library to obtain K confusing questions corresponding to any detected question, K ≥ 0, which is set by the user according to the needs;

[0066] The confused questions belonging to different knowledge points from the detected question among the K confused questions are respectively combined with the detected question to form confused question pairs, and are stored in the second candidate confused question pair set.

[0067] Among them, the index library includes the FAISS library, and the distance functions include the cosine distance function, the Euclidean distance function, etc. The Faiss similarity search library, developed by Facebook AI Research, is a high-performance library for similarity search and dense vector clustering. It supports searches of billions of vectors and is currently the most mature approximate neighbor search library. It contains a variety of algorithms for searching vector sets of any size, as well as support code for algorithm evaluation and parameter adjustment. In addition, Faiss is written in C++ and provides a Python interface that perfectly connects with Numpy for easy calling.

[0068] In a specific implementation, the confusing questions of each question in the entire knowledge base can be identified one by one, or a list of questions to be queried (such as a list of questions newly added to the knowledge base) can be input, and the confusing questions of the questions in the list can be identified one by one to obtain a confused question set for each question, and then the questions in the confused question set that belong to the same knowledge point as the confused question are deleted, and the question and each of the remaining confused questions respectively constitute a set of confused question pairs.

[0069] Furthermore, according to user needs, an intersection method or a union method is selected to fuse the first candidate confusing question pair set and the second candidate confusing question pair set to obtain a target candidate confusing question pair set. For example, if the user hopes to obtain a target candidate confusing question pair set with a higher accuracy, then the intersection method is selected to fuse the first candidate confusing question pair set and the second candidate confusing question pair set; if the user hopes to obtain a target candidate confusing question pair set with a higher recall rate, then the union method is selected to fuse the first candidate confusing question pair set and the second candidate confusing question pair set.

[0070] In addition, see Figure 3 The method for semantic confusion detection provided by the embodiment of the present invention further includes detecting edge questions within knowledge points. The specific method includes:

[0071] Get the center value of any knowledge point and the radius from all questions in the knowledge point to the center value;

[0072] All questions in the knowledge point whose distance to the center value is greater than the radius are stored in the edge question candidate set of the knowledge point;

[0073] Calculate the outlier factors of all questions in the marginal question candidate set, and store the questions whose outlier factors are greater than a preset threshold into the marginal question set of the knowledge point;

[0074] Update the full knowledge base based on the set of marginal questions of knowledge points.

[0075] Among them, the central value of any knowledge point is the average value of the feature encoding of each question in any knowledge point; the radius from all questions in the knowledge point to the central value is the average distance from all questions in the knowledge point to the central value.

[0076] In the specific implementation process, according to the outlier detection based on the nearest neighbor degree, for a question, the distance of its k-nearest neighbor represents the outlier factor of the point, and the outlier factor of any question is calculated using the KNN nearest neighbor algorithm and the outlier algorithm. The specific method includes:

[0077] Obtain the full knowledge base, perform semantic encoding on the question using the sentence vector model, and obtain the semantic representation vector of the question;

[0078] For each question in a knowledge point, the distance between the question and other questions is calculated using distance functions such as cosine distance, and the maximum distance of its k-nearest neighbors represents the outlier factor of the question.

[0079] The sentence vector model is a model trained by the original corpus knowledge base of the dialogue platform. The sentence vector model is independently deployed on the dialogue platform to realize the service-oriented sentence vector model. If the sample size of a certain knowledge point is less than k, the maximum distance between other questions in the existing knowledge point and the question being tested is taken as the outlier factor, and k is an adjustable parameter.

[0080] In addition, the local reachable density of any question can be used as an outlier factor, which can be selected by the user.

[0081] Finally, the full knowledge base is updated based on the target candidate confusing question pair set and / or the marginal question set of knowledge points. The specific method includes:

[0082] The target candidate confusing question pair set and / or the edge question set of the knowledge point are stored in the database, and displayed on the front-end page for user review;

[0083] The question sentences that are judged as incorrect knowledge point classification in the review results are moved to the correct knowledge point or deleted from the full knowledge base to update the full knowledge base.

[0084] In the specific implementation, the target candidate confusing question pair set and / or the marginal question set of the knowledge point is stored in a database such as MySQL and displayed on the front-end page. The operator or AI trainer reviews the marginal questions and confusing question pairs in the set to determine whether they need to be removed or the questions need to be moved to the correct intent, which reduces the cost of maintaining the knowledge base for the operator, assists them in maintaining the dialogue robot platform, and improves the efficiency of the dialogue.

[0085] In addition, the above description is one of the semantic confusion detection processes. This process is continuously iterative. The system for semantic confusion detection provides a set of target candidate confusing question pairs and / or a set of marginal questions of knowledge points, and manual review and feedback are given to correct the knowledge base. The knowledge base then trains the system for semantic confusion detection and the sentence vector model used therein, etc., continuously iterating to form positive feedback of data, forming a data closed loop, and thereby improving the accuracy of semantic confusion detection.

[0086] The method for semantic confusion detection provided by the embodiment of the present invention is mainly divided into two subtasks: detection of marginal questions within knowledge points and detection of confusing questions between knowledge points. The two subtasks perform confusion detection on the knowledge point data in the knowledge base from two different perspectives. One is to detect marginal questions (i.e., outliers) that are not the knowledge point within the knowledge point (i.e., within a certain intent class), and the other is to identify confusing question pairs between knowledge points (i.e., identify semantically similar question pairs between two or more knowledge points).

[0087] The detection of marginal questions of knowledge points can find questions that do not belong to a certain knowledge point. For example, under the knowledge point (intent category) of applying for price guarantee service, there may be similar questions as follows: How to insure / I need to insure the price of the product I just bought / How to exchange old machine for money / I bought it yesterday and it is so much cheaper today / Can the robot I bought be recycled / etc. Among them, how to exchange old machine for money / Can the robot I bought be recycled? These two questions do not belong to the knowledge point (intent category) of applying for price guarantee service, so they are called marginal questions. These marginal questions need to be found, and the marginal questions that have passed the review should be moved to the correct knowledge point or deleted to improve the accuracy of the knowledge base.

[0088] The detection of confusing questions between knowledge points can find that two questions belong to different knowledge points. For example, question 1: Hello, is there a discount if I buy more (the standard question of the corresponding knowledge point: how to buy in bulk), question 2: Can I get a discount if I buy more (the standard question of the corresponding knowledge point: Can the price be discounted), these two questions belong to different knowledge points (intent types), that is, question 1 and question 2 are called confusing question pairs. The approved confusing question pairs are moved to the correct knowledge points or deleted to improve the accuracy of the knowledge base.

[0089] The updated knowledge base will also be used for the training of the obfuscation detection system, linking the data layer and the training layer, constructing a data closed loop, realizing data iteration, and further improving the accuracy of obfuscation detection.

[0090] Embodiment 2

[0091] An embodiment of the present invention provides a system for semantic confusion detection, the system comprising a data acquisition module, a first confusion detection module, a second confusion detection module, a fusion module and a data feedback module, wherein the data acquisition module is used to acquire a full knowledge base of a dialogue platform; the first confusion detection module identifies a first candidate confusion question pair set based on the surface semantic features of each question in the full knowledge base; the second confusion detection module identifies a second candidate confusion question pair set based on the full knowledge base using a sentence vector model; the fusion module is used to fuse the first candidate confusion question pair set and the second candidate confusion question pair set to obtain a target candidate confusion question pair set; the data feedback module updates the full knowledge base based on the target candidate confusion question pair set.

[0092] The system for semantic confusion detection provided by the embodiment of the present invention makes the sentence vector model service and the index library service into independent modules, and together with the data acquisition module, data processing module, confusion detection module, fusion module, and data feedback module on the web side, constitutes the framework of the entire confusion detection processing system. Among them, the data processing module is used for text processing such as removing stop words, and the confusion detection module is divided into edge question detection within knowledge points and confusion question pair detection between knowledge points. The two processes are independent of each other to ensure that the auxiliary operation personnel operate and maintain the knowledge base in the actual application process, and the operations are independent of each other and decoupled from each other. In addition, the system for semantic confusion detection provided by the embodiment of the present invention, as a link in the data closed loop of the semantic dialogue robot platform, links the data layer and the training layer, updates and purifies the corpus of the platform knowledge base, improves the quality of the knowledge base, and the updated knowledge base will also be used for the training of the confusion detection system, links the data layer and the training layer, constructs a data closed loop, realizes data iteration, and further improves the accuracy of confusion detection.

[0093] The system for semantic confusion detection provided by the present invention adopts the method for semantic confusion detection in the above-mentioned embodiment 1, improves the quality of the knowledge base, and also realizes data iteration by constructing a data closed loop, further improving the accuracy of confusion detection. Compared with the prior art, the beneficial effects of the system for semantic confusion detection provided by the embodiment of the present invention are the same as the beneficial effects of the method for semantic confusion detection provided by the above-mentioned embodiment 1, and other technical features in the system are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0094] In the description of the above embodiments, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.

[0095] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for semantic confusion detection, characterized in that: include: Obtain the full knowledge base of the conversation platform; Performing surface semantic analysis between two questions in the entire knowledge base to identify a first candidate set of confusing question pairs; Based on the full knowledge base, a second set of candidate confusing question pairs is identified using a sentence vector model; fusing the first candidate confusing question pair set and the second candidate confusing question pair set to obtain a target candidate confusing question pair set; The confusing questions in the confusing question pair belong to different knowledge points; Updating the full knowledge base based on the target candidate confusing question pair set; The specific methods for detecting edge questions within knowledge points include: Obtain the center value of any knowledge point and the radius of all questions in the knowledge point to the center value; Store all questions in the knowledge point whose distance from the center value is greater than the radius into the edge question candidate set of the knowledge point; Calculate the outlier factors of all questions in the marginal question candidate set, and store the questions whose outlier factors are greater than a preset threshold into the marginal question set of the knowledge point; Updating the full knowledge base based on the marginal question set of the knowledge point; The method for updating the full knowledge base based on the target candidate confusing question pair set and / or the marginal question set of knowledge points includes: The target candidate confusing question pair set and / or the edge question set of the knowledge point are stored in the database, and displayed on the front-end page for user review; The question sentences determined as incorrect knowledge point classification in the audit result are moved to the correct knowledge point or deleted from the full knowledge base to update the full knowledge base.

2. The method for semantic confusion detection according to claim 1, characterized in that: The method of performing surface semantic analysis between two questions in the entire knowledge base to identify a first candidate confusing question pair set includes: Calculating semantic similarities between two questions in the full knowledge base using a variety of surface semantic analysis methods based on corresponding surface semantic features, and obtaining a plurality of surface semantic confusion question pair sets corresponding to the surface semantic analysis methods based on the semantic similarities; Eliminate the question pairs that belong to the same knowledge point in the set of surface semantically confusing question pairs; Using the voting mechanism, the first candidate confusing question pair set is screened out from all surface semantic confusing question pairs.

3. The method for semantic confusion detection according to claim 2, characterized in that: The surface semantic analysis method includes one or more of a jaccard similarity algorithm, a word vector model method, and a TF-IDF method.

4. The method for semantic confusion detection according to claim 1, characterized in that: The method for identifying a second candidate confusing question pair set based on the full knowledge base using a sentence vector model includes: Use the sentence vector model to encode all questions, build an index library, and obtain the semantic representation vector of each question; Using a distance function based on the semantic representation vector, querying from the index library to obtain K confusing questions corresponding to any detected question, K ≥ 0; The confused questions belonging to different knowledge points from the detected question in the K confused questions are respectively combined with the detected question to form confused question pairs, and the pairs are stored in the second candidate confused question pair set.

5. The method for semantic confusion detection according to claim 4, characterized in that: The index library includes a FAISS library, and the distance function includes a cosine distance function.

6. The method for semantic confusion detection according to claim 1, characterized in that: According to user needs, an intersection method or a union method is selected to merge the first candidate confusing question pair set and the second candidate confusing question pair set to obtain a target candidate confusing question pair set.

7. The method for semantic confusion detection according to claim 1, characterized in that: The central value of any knowledge point is the average value of the feature encoding of each question in any knowledge point; The radius from all questions in the knowledge point to the central value is the average distance from all questions in the knowledge point to the central value.

8. A system for semantic confusion detection implementing the method for semantic confusion detection according to any one of claims 1 to 7, characterized in that: It includes a data acquisition module, a first confusion detection module, a second confusion detection module, a fusion module and a data feedback module, wherein: The data acquisition module is used to acquire the full knowledge base of the dialogue platform; The first confusion detection module identifies a first set of candidate confusing question pairs based on the surface semantic features of each question in the full knowledge base; The second confusion detection module identifies a second set of candidate confusing question pairs based on the full knowledge base using a sentence vector model; The fusion module is used to fuse the first candidate confusing question pair set and the second candidate confusing question pair set to obtain a target candidate confusing question pair set; The data feedback module updates the full knowledge base based on the target candidate confusing question pair set; The method also includes detecting marginal questions in knowledge points to review the marginal questions, and moving the marginal questions that pass the review to the correct knowledge points or deleting them.

Citation Information

Patent Citations

  • Multi-side positioning method and multi-side positioning device based on outlier detection

    CN106707233A

  • Data clustering method and device

    CN106776751A

  • Customer service robot knowledge base ambiguity detection method

    CN109101579A

  • Question-answering robot system based on hybrid model, and question-answering robot

    CN111190998A

  • FAQ question similarity calculation method and system

    CN111581354A