Multi-round dialogue robot intention hit optimization method and device
By building a dialogue process tree and text clustering algorithm, combined with manual and automatic review, the intent recognition of multi-round dialogue robots is optimized, solving the problems of low intent recognition efficiency and poor pertinence in the existing technology, and realizing efficient and targeted Intent recognition optimization.
Patent Information
- Application Number
- CN202011377801.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-30
AI Technical Summary
The existing multi-round dialogue robots are not efficient in intent recognition and optimization. They are limited by manual analysis capabilities and cannot fully discover bottlenecks in the dialogue process, resulting in poor pertinence.
By obtaining dialogue logs and process configuration data, we build a dialogue process tree data structure, use text clustering algorithms to cluster unidentified intent texts, and combine manual and automatic review to optimize process configuration data to improve intent recognition accuracy.
It realizes automatic analysis of all human-machine dialogue data, intuitively discovers dialogue bottlenecks, optimizes intent recognition in a targeted manner, and improves the efficiency and accuracy of the robot's dialogue capabilities.
Smart Images

Figure CN112487144B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine question answering, and in particular to a method and device for optimizing intention hits of a multi-round dialogue robot. Background Art
[0002] Task-based multi-round conversation robots are usually configured in the form of a process tree according to business needs. The robot identifies the user's intention or obtains relevant slot value information at each node, and then determines the direction of the conversation based on the process tree configuration. User intention recognition is generally completed by the robot's NLU module, and its recognition accuracy largely determines the robot's conversation ability.
[0003] The multi-round dialogue robots that have been launched generally optimize the accuracy of the intent recognition module by analyzing the dialogue text data of unrecognized intent in the dialogue log. The robot trainer determines the intent category of the dialogue text of unrecognized intent based on the process tree configuration and business experience, and then configures it to the intent-similar speech of the corresponding process node.
[0004] Limited by manual analysis capabilities, robot trainers cannot fully analyze the entire amount of human-computer dialogue data and find bottlenecks in the dialogue process as a whole. Their intent recognition optimization work is inefficient and poorly targeted. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method and device for optimizing the intention hit of a multi-round dialogue robot, which can achieve efficient and targeted optimization of the robot's intention recognition capability.
[0006] To solve the above technical problems, the present invention provides a method for optimizing intention hits of a multi-round dialogue robot, the method comprising: obtaining dialogue logs and robot process configuration data of a multi-round dialogue robot; forming a dialogue process tree data structure through data preprocessing, and constructing a text intention hit list; constructing a mapping relationship between unrecognized intention text and the previous dialogue process node based on the context relationship; at the process node that needs to be optimized, using a text clustering algorithm to cluster the unrecognized intention text according to the subsequent intention category of the current node; reviewing the clustering results; and optimizing the robot process configuration data based on the review results.
[0007] In some implementations, reviewing the clustering results includes manual review and automatic review.
[0008] In some embodiments, automatic review of clustering results includes: calculating the category center point of the clustering category; calculating the mean distance between the category node and the category center point; if the calculated distance mean is less than the set distance threshold, the automatic review is passed.
[0009] In some embodiments, the distance includes: Euclidean distance, cosine similarity, Manhattan distance, Minkowski distance, Jaccard similarity coefficient, Pearson correlation coefficient, Hamming distance, BM25 correlation score.
[0010] In some embodiments, it also includes: before constructing a mapping relationship between unrecognized intent text and the previous dialog process node based on the context relationship, after forming a dialog process tree data structure through data preprocessing and constructing a text intent hit list, calculating the recognized intent text.
[0011] In some implementations, recognized intent text is saved in a text intent hit list, and unrecognized intent text is not saved in the text intent hit list.
[0012] In some implementations, the method further includes: visually displaying the intent hit data in the form of a process tree before reviewing the clustering results.
[0013] In addition, the present invention also provides a multi-round dialogue robot intention hit optimization device, the device comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the multi-round dialogue robot intention hit optimization method described above.
[0014] After adopting such a design, the present invention has at least the following advantages:
[0015] It can automatically analyze the full amount of human-machine dialogue data, and fully visualize the intention hit data, so that robot trainers can intuitively find the bottleneck of robot dialogue;
[0016] Cluster the unrecognized intent dialogue texts of dialogue bottleneck nodes, configure similar speech of nodes, and make optimization more targeted. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0018] Figure 1 is a flow chart of a multi-round dialogue robot intention hit optimization method provided by an embodiment of the present invention;
[0019] Figure 2 It is a structural diagram of a multi-round dialogue robot intention hit optimization device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0021] Figure 1 The process of the multi-round dialogue robot intention hit optimization method is shown. The execution process of the multi-round dialogue robot intention hit optimization method includes:
[0022] S11. Obtain the conversation logs and robot process configuration data of the multi-round conversation robot.
[0023] S12. Data preprocessing: forming a dialog process tree data structure; building a text intent hit list.
[0024] S13. Calculate the intent hit result data; construct a mapping relationship between the unrecognized intent text and the previous dialogue process node based on the context relationship.
[0025] S14. At the process tree node that needs to be optimized, use a text clustering algorithm to cluster the unrecognized intent dialogue text according to the subsequent intent category of the current node.
[0026] S15. Manually review the clustering results and automatically configure the unrecognized intent texts that have passed the review into the similar speech list of the corresponding intent.
[0027] S16. Optimize the configuration of similar words according to the list of similar words.
[0028] S17. Configure the multi-round dialogue robot based on the optimized intent-similar speech configuration.
[0029] The purpose of the present invention is to provide an optimization tool for the intent recognition capability of a task-based multi-round dialogue robot. The tool visualizes the intent hits of actual human-computer dialogue data in the form of a robot process tree, and the number of user dialogue text hits decays in a funnel shape on the process tree. This allows the bottleneck of the robot's intent recognition capability to be intuitively discovered, and then the unrecognized intent texts on the bottleneck nodes are extracted, clustered according to the branch intent categories of the nodes, and the clustering results are manually reviewed. The adopted unrecognized intent texts are configured into intent-similar speech, thereby achieving efficient and targeted optimization of the robot's intent recognition capability.
[0030] Figure 2 The structure of the multi-round dialogue robot intention hit optimization device is shown. Figure 2For example, the multi-round dialogue robot intention hit optimization device 200 can be used to act as a speech configuration optimization device in a machine dialogue system. As described herein, the multi-round dialogue robot intention hit optimization device 200 can be used to implement an automatic optimization function for dialogue text in a machine dialogue system. The multi-round dialogue robot intention hit optimization device 200 can be implemented in a single node, or the functions of the multi-round dialogue robot intention hit optimization device 200 can be implemented in multiple nodes in a network. Those skilled in the art should appreciate that the term multi-round dialogue robot intention hit optimization device includes devices in a broad sense, Figure 2 The multi-round dialogue robot intention hit optimization device 200 shown in the is only one example. The multi-round dialogue robot intention hit optimization device 200 is included for clarity of description, and is not intended to limit the application of the present invention to a specific multi-round dialogue robot intention hit optimization device embodiment or a certain type of multi-round dialogue robot intention hit optimization device embodiment. At least some of the features / methods described in the present invention can be implemented in a network device or component, such as a multi-round dialogue robot intention hit optimization device 200. For example, the features / methods in the present invention can be implemented in hardware, firmware and / or software installed and run on hardware. The multi-round dialogue robot intention hit optimization device 200 can be any device that processes, stores and / or forwards data frames through a network, such as a server, a client, a data source, etc. As Figure 2 As shown, the multi-round dialogue robot intention hit optimization device 200 may include a transceiver (Tx / Rx) 210, which may be a transmitter, a receiver, or a combination thereof. Tx / Rx 210 may be coupled to multiple ports 250 (e.g., an uplink interface and / or a downlink interface) for sending and / or receiving frames from other nodes. A processor 230 may be coupled to Tx / Rx 210 to process frames and / or determine which nodes to send frames to. The processor 230 may include one or more multi-core processors and / or a memory device 232, which may be used as a data storage device, a buffer, etc. The processor 230 may be implemented as a general-purpose processor, or may be part of one or more application-specific integrated circuits (ASICs) and / or digital signal processors (DSPs).
[0031] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Those skilled in the art may make some simple modifications, equivalent changes or modifications using the technical contents disclosed above, which all fall within the protection scope of the present invention.
Claims
1. A multi-round conversation robot intention hit optimization method, It is characterized in that include: Obtain the conversation logs and robot process configuration data of the multi-round conversation robot; Through data preprocessing, a dialog process tree data structure is formed, a text intent hit list is constructed, and the intent text is calculated and recognized; The recognized intent text is saved in the text intent hit list, and the unrecognized intent text is not saved in the text intent hit list; Construct a mapping relationship between the unrecognized intent text and the previous dialog process node based on the context relationship; At the process nodes that need to be optimized, use the text clustering algorithm to cluster the unrecognized intent text according to the subsequent intent category of the current node; Review the clustering results and automatically configure the unrecognized intent texts that have passed the review into the similar speech list of the corresponding intent; Optimize the configuration of similar words based on the similar words list; Optimize the robot process configuration data based on the optimized intent-like speech configuration.
2. The multi-round dialogue robot intention hit optimization method according to claim 1, It is characterized in that The review of clustering results includes: manual review and automatic review.
3. The multi-round dialogue robot intention hit optimization method according to claim 1, It is characterized in that Review the clustering results, including: Calculate the category center points of cluster categories; Calculate the mean distance between the category node and the category center point; If the calculated distance mean is less than the set distance threshold, it will be automatically approved.
4. The multi-round dialogue robot intention hit optimization method according to claim 3, It is characterized in that Distances include: Euclidean distance, cosine similarity, Manhattan distance, Minkowski distance, Jaccard similarity coefficient, Pearson correlation coefficient, Hamming distance, BM25 correlation score.
5. The multi-round dialogue robot intention hit optimization method according to claim 1, It is characterized in that Also includes: Before reviewing the clustering results, visualize the intent hit data in the form of a process tree.
6. A multi-round dialogue robot intention hit optimization device, It is characterized in that include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the multi-round dialogue robot intention hit optimization method according to any one of claims 1 to 5.
