Method and device for processing feedback

Through the feedback prediction model of multi-label training data, the problem of single feedback on the intelligent interaction platform is solved, higher quality and diversity of feedback is achieved, and the user experience is improved.

CN113887554BActive Publication Date: 2024-10-15ALIBABA DAMO (HANGZHOU) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110989860.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-26
Publication Date
2024-10-15
Estimated Expiration
2041-08-26

AI Technical Summary

Technical Problem

The feedback provided by the existing intelligent interaction platform is too single and cannot give users feedback appropriately, resulting in poor user experience.

Method used

The feedback prediction machine learning model trained with multi-label training data obtains feedback trigger information and makes predictions. It provides feedback based on the predicted feedback, supports many-to-many relationship processing, and performs timely processing at the end or middle of the sentence. Feedback, control the amount of feedback and increase the diversity of feedback words.

Benefits of technology

It improves the pass rate and diversity of feedback words, improves user experience, and achieves smoother and contextually reasonable feedback effects in the intelligent interaction platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113887554B_ABST
    Figure CN113887554B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a method and device for processing feedback language, wherein the method for processing feedback language includes: obtaining feedback language trigger information; inputting the feedback language trigger information into a trained feedback language prediction machine learning model to predict one or more corresponding feedback language, wherein the feedback language machine learning model is trained by multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels; and providing feedback according to the predicted feedback language. Therefore, by incorporating multiple categories of labels into the model, the relationship between trigger information and feedback language can be well handled, and appropriate feedback language can be effectively predicted. Then, feedback is provided according to the predicted feedback language, which not only has a higher pass rate, but also has better diversity, and the feedback effect is improved, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and more particularly to a method for processing feedback. One or more embodiments of this specification also relate to an apparatus for processing feedback, a computing device, and a computer-readable storage medium. Background Art

[0002] In the intelligent interactive platform, during the conversation between the platform and the user, the platform will insert feedback words at the right time, so that the user can feel that the customer service is listening to him attentively, thereby improving the user experience. The feedback words inserted by the platform can be verbal, non-verbal, and other social expressions, serving social purposes. For example, in some restaurant reservation intelligent customer service, the "hmm" feedback words based on long waiting time are implemented.

[0003] However, the feedback provided by current intelligent interactive platforms is too monotonous, and in many cases even fails to provide appropriate feedback, resulting in a poor user experience. Summary of the invention

[0004] In view of this, an embodiment of this specification provides a method for processing feedback. One or more embodiments of this specification also relate to an apparatus for processing feedback, a computing device, and a computer-readable storage medium to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a method for processing feedback language is provided, including: obtaining feedback language trigger information; inputting the feedback language trigger information into a trained feedback language prediction machine learning model to predict one or more corresponding feedback language, wherein the feedback language machine learning model is trained using multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels; and providing feedback according to the predicted feedback language.

[0006] Optionally, at least one sample in the multi-label training data has a feedback language category soft label, and the probability value corresponding to the feedback language category soft label is a value between a minimum probability value and a maximum probability value.

[0007] Optionally, it also includes: before training the feedback language prediction machine learning model, mining and analyzing massive conversation data through clustering algorithms and matching rules to obtain feedback language training samples, feedback language category labels corresponding to the samples, and probability values ​​corresponding to the feedback language category labels; using the feedback language training samples to train the feedback language prediction machine learning model to obtain a trained feedback language prediction machine learning model; wherein the feedback language prediction machine learning model calculates the difference and gradient between the predicted label and the actual label of the sample through a loss function, and updates the model parameters through the gradient descent method.

[0008] Optionally, it also includes: judging whether the feedback trigger information is at the end of a sentence or in the middle of a sentence; if it is at the end of a sentence, entering the step of inputting the feedback trigger information into a trained feedback prediction machine learning model to predict corresponding feedback words; if it is in the middle of a sentence, according to the pre-stated probabilities corresponding to each single-word feedback word, weighted random extraction of single-word feedback words for feedback.

[0009] Optionally, the method further includes: presetting a feedback time window, wherein the feedback time window is used to control the number of feedback words fed back to be within a preset number.

[0010] Optionally, providing feedback according to the predicted feedback phrase includes: randomly selecting a feedback phrase from the predicted multiple feedback phrases for providing feedback.

[0011] Optionally, it also includes: receiving management instructions for feedback words through an interactive interface; managing the feedback words according to the management instructions; wherein the management instructions include any one or more of the following instructions: instructions for displaying a feedback word list, instructions for adding or deleting feedback words, instructions for adding or deleting user-defined feedback word trigger information corresponding to the feedback words, and instructions for disabling or enabling specified feedback words.

[0012] Optionally, the method further includes: generating similar feedback language trigger information when the user-defined feedback language trigger information is added; and adding the user-defined feedback language trigger information and the similar feedback language trigger information to a corresponding feedback language trigger information set.

[0013] Optionally, the feedback words are tone-continuing words, and obtaining feedback word trigger information includes: in response to the intelligent interaction platform receiving voice or text information input by the user, obtaining feedback word trigger information from the voice or text information. Selecting feedback words from the multiple feedback words to provide feedback includes: providing the tone-continuing words selected from the multiple tone-continuing words to the user in the form of voice or text through the intelligent interaction platform.

[0014] Optionally, it also includes: receiving an on or off instruction for the tone continuation function through an interactive interface; when an on instruction is received, entering the step of obtaining feedback language trigger information; when a off instruction is received, ignoring the feedback language trigger information.

[0015] According to the second aspect of the embodiments of this specification, there is provided a device for processing feedback language, comprising: a trigger module, configured to obtain feedback language trigger information. A prediction module, configured to input the feedback language trigger information into a trained feedback language prediction machine learning model, and predict one or more corresponding feedback language, wherein the feedback language machine learning model is trained with multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels. A feedback module, configured to provide feedback based on the predicted feedback language.

[0016] According to a third aspect of an embodiment of this specification, a computing device is provided, comprising: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions: obtaining feedback trigger information; inputting the feedback trigger information into a trained feedback prediction machine learning model to predict one or more corresponding feedback words, wherein the feedback machine learning model is trained with multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback category labels; and providing feedback according to the predicted feedback words.

[0017] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps of the method for processing feedback described in any embodiment of this specification are implemented.

[0018] One embodiment of the present specification provides a method for processing feedback language. Since the feedback language machine learning model of the method is obtained by training with multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels, after obtaining the feedback language trigger information, the method inputs the feedback language trigger information into the trained feedback language prediction machine learning model, and can predict the corresponding feedback language, and provide feedback based on the predicted feedback language. It can be seen that the method can well handle the many-to-many relationship between trigger information and feedback language by incorporating multiple categories of labels into the model, effectively predict appropriate feedback language, and then provide feedback based on the predicted feedback language, which not only has a higher pass rate, but also has better diversity, and the feedback effect can be improved, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of a method for processing feedback provided by an embodiment of this specification;

[0020] Figure 2 is a schematic diagram of a training data construction process provided by an embodiment of this specification;

[0021] Figure 3 It is a schematic diagram of the SSML format provided by an embodiment of this specification;

[0022] Figure 4 is a processing flow chart of a method for processing feedback provided by an embodiment of this specification;

[0023] Figure 5a This is a schematic diagram of comparison of evaluation pass rates provided by an embodiment of this specification;

[0024] Figure 5b is a schematic diagram of an interaction process provided by an embodiment of this specification;

[0025] Figure 6 This is a schematic diagram of a scene management page provided by an embodiment of this specification;

[0026] Figure 7 This is a schematic diagram of a pop-up window for introducing the function of enabling the tone of voice continuation provided in an embodiment of this specification;

[0027] Figure 8 It is a pop-up window showing the management acceptance statement provided in one embodiment of this specification;

[0028] Fig. 9 It is a structural schematic diagram of a device for processing feedback provided by an embodiment of this specification;

[0029] Fig.10 is a structural schematic diagram of a device for processing feedback provided by another embodiment of the present specification;

[0030] Fig.11 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0031] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0032] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0033] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0034] First, the terms involved in one or more embodiments of this specification are explained.

[0035] Prior probability: refers to the probability obtained based on past experience and analysis.

[0036] Feedback: Feedback occurs during a conversation when one participant is speaking and another participant interjects a response to the speaker. Feedback can be verbal, non-verbal, or both. Feedback is usually a responsive expression that serves a social purpose, such as showing the listener's attention, understanding, or agreement. It includes "ah," "hmm," "oh," "hey," and so on.

[0037] In this specification, a method for processing feedback is provided. This specification also relates to an apparatus for processing feedback, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0038] Figure 1 A flowchart of a method for processing feedback provided according to an embodiment of the present specification is shown, including steps 102 to 106.

[0039] Step 102: Obtain feedback trigger information.

[0040] Step 104 inputs the feedback trigger information into a trained feedback prediction machine learning model to predict one or more corresponding feedback words, wherein the feedback machine learning model is trained with multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback category labels.

[0041] Multiple feedback category labels refer to multiple category labels that at least one sample has in a classification task. For example, there may be multiple qualified feedback words (categories / labels) for a sentence said by a customer. For example, the feedback language trigger information of a sample is "Okay, no problem, thank you", and the corresponding feedback language category labels may include: "Okay", "Okay"... and other multiple category labels. Among them, the classification model can use a TextCNN model, LSTM or BERT model, etc. Since the feedback language machine learning model is trained using multi-label training data, it can also be called a multi-label selection model.

[0042] Step 106: Provide feedback based on the predicted feedback language.

[0043] For example, a feedback sentence may be randomly selected from multiple predicted feedback sentences for feedback.

[0044] Since the feedback language machine learning model of this method is obtained by training with multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels, therefore, after obtaining the feedback language trigger information, the method inputs the feedback language trigger information into the trained feedback language prediction machine learning model, and can predict the corresponding one or more feedback words, and provide feedback based on the predicted feedback words. It can be seen that this method can handle the many-to-many relationship between trigger information and feedback language well by incorporating multiple categories of labels into the model, effectively predict one or more appropriate feedback words, and then provide feedback based on the predicted feedback words, which not only has a higher pass rate, but also has better diversity, and the feedback effect can be improved, thereby improving the user experience.

[0045] For example, the method provided in the embodiments of this specification can be applied to an intelligent interaction platform. For example, a user interacts with a voice robot through a terminal such as a mobile phone or a telephone, including two scenarios: incoming calls and outgoing calls. The obtaining of feedback trigger information may include: in response to the intelligent interaction platform receiving voice or text information input by the user, obtaining feedback trigger information from the voice or text information. The selecting of feedback from the multiple feedback words for feedback includes: providing the feedback words selected from the multiple feedback words to the user in the form of voice or text through the intelligent interaction platform.

[0046] In one or more embodiments of the present specification, at least one sample in the multi-label training data has a soft label of feedback language category, and the probability value corresponding to the soft label of feedback language category is a value between the minimum probability value and the maximum probability value. According to this embodiment, the multi-label training data may include: samples with hard labels of feedback language category, and samples with soft labels of feedback language category and / or samples with hard labels and soft labels of feedback language category. Among them, the probability value corresponding to the hard label of feedback language category is the minimum probability value or the maximum probability value. In this embodiment, since the feedback language category label includes the soft label of feedback language category, the probability relationship of feedback language in real scenes can be captured more meticulously through soft labels, and these meticulous probability distinctions can be well modeled, thereby predicting more fluent and contextually reasonable feedback language.

[0047] It is understandable that the prior probability value corresponding to each feedback category label of the sample can be obtained based on historical corpus mining and analysis. For example, the probability distribution of feedback in the person-to-person conversation can be statistically analyzed. The feedback category label obtained by mining and analysis can be a hard label or a soft label. For example, the probability value corresponding to the feedback category hard label can be a discrete number: 1 or 0. The probability value corresponding to the feedback category soft label can be a continuous number between 0 and 1. By mining and analyzing massive person-to-person conversation data through clustering algorithms and matching rules, feedback training samples, multiple feedback category labels corresponding to each sample, and the prior probability values ​​corresponding to the feedback category labels can be obtained.

[0048] For example: In real scenarios, there is a probability distribution for the feedback words for the same sentence. For example, it may be "hmm, ok" or "ok", which have a higher probability, or "hmm" or "ah" which have a lower probability. Therefore, similar user sentences can be classified together through clustering algorithms, and the feedback words under these user sentences can be counted, and then the distribution of feedback word categories under such user sentences can be calculated. For example: Assume that the data mined from the historical conversation data of Renren through clustering algorithms (k-means) and regular matching (thank you) include: user: thank you (reply: ok, ...); user: thank you (reply: ok, ...); user: thank you (reply: ok, ...); user: thank you (reply: hmm, ...); user: thank you (reply: hmm, ...). The feedback word set obtained by statistics includes: y = {hmm, ok, hmm, ok, ah}. The hard labels of feedback word categories obtained by statistics include: ok = 1, hmm, ok = 1; the soft labels of feedback word categories include: hmm = 1 / 5 = 0.2, ok = 0.6, hmm, ok = 0.2. For this example, a training sample can be constructed: User: Hmm, thanks (Feedback: OK, ...). The feedback category label y' of the sample (feedback category hard label and / or feedback category soft label, the probability values ​​of the same ones take the maximum intersection) = {Hmm, OK, Hmm OK, Alas} = {0.2, 1, 1, 0}.

[0049] It can be seen from the above examples that in real scenarios, user sentences and feedback words are in a "one-to-many" relationship (there are multiple reasonable feedback language replies for the same sentence from the user), and the probability of some feedback words appearing in a specific context may be relatively high or low. For example, when a user says "OK, thank you and goodbye", the feedback language reply may have a higher probability reply of "OK" and a second highest probability reply of "Hmm". For example, if only the conventional classification hard label 0 / 1 is used, the probability captured can only be, for example (OK = 1, Hmm = 0), but through this embodiment, the lower probability "Oh" can also be included to construct a variety of feedback language category labels containing soft labels (OK = 1, Oh = 0.7). It can be seen that soft labels can capture the probability relationship of feedback words in real scenarios more carefully, model these detailed probability differences well, and then predict more fluent and contextually reasonable feedback words.

[0050] After obtaining feedback language training samples, feedback language category labels corresponding to the samples, and probability values ​​corresponding to the feedback language category labels, the feedback language training samples can be used to train the feedback language prediction machine learning model to obtain a trained feedback language prediction machine learning model. The feedback language prediction machine learning model calculates the difference and gradient between the predicted label and the actual label of the sample through a loss function, and updates the parameters of the model through a gradient descent method.

[0051] For example, Figure 2 As shown in the training data construction process shown in FIG, first, a conversation log can be obtained. The conversation log may include a large amount of human-to-human or human-computer conversation data. Based on the massive conversation data, end-to-end (input end: user input sentence, output end: platform output feedback) feedback language selection strategy training data is constructed. The massive conversation data can be cleaned, and then the candidate feedback language set can be manually confirmed to realize the mining of feedback language. Secondly, multi-label training data and prior probability soft labels are mined and analyzed through clustering algorithms such as k-means and matching rules or conversation actions (such as keyword matching, regular matching, etc.), and feedback language training data containing multiple feedback language category labels and soft labels is obtained. Among the clusters obtained according to the clustering algorithm and matching rules, the feedback language with a higher number of occurrences than the average can be used as the feedback language category label of the cluster, and the corresponding feedback language probability distribution can be used as the probability value corresponding to the feedback language category label. For example, a cluster is obtained through mining and analysis using clustering algorithms and matching rules, which includes the following data: User: Thank you (reply: OK, ...); User: Thank you (reply: OK, ...); User: Thank you (reply: OK, ...); User: Thank you (reply: Yeah, ...); User: Yeah, thank you (reply: Yeah, Yeah, ...). Among them, OK (3 times), Yeah (1 time), Yeah, OK (1 time). Average number of times = (3+1+1) / 3 = 1.67. Then "OK" can be taken as the label of this cluster. It is understandable that the cluster label can be additional supervisory information in addition to the sample's own label. If the amount of dialogue data is relatively large, most clusters can have multiple cluster labels.

[0052] It should be noted that in the method provided in the embodiments of this specification, the specific expression of the loss function used in the feedback language prediction machine learning model is not limited. The loss function is the learning goal of the machine learning model. When the model is optimized, the loss and gradient can be calculated by the loss function, and the parameters of the model can be updated by the gradient descent method. Since the relationship between samples and labels in the method provided in the embodiments of this specification is a one-to-many relationship, and multiple labels can include both hard labels and soft labels, the feedback language prediction machine learning model incorporates a loss function in which multiple labels and soft labels participate in the calculation, so that the predicted feedback language not only has a higher pass rate, but also has better diversity. For example, the loss function can use binary cross-entropy, and the loss function expression is as follows:

[0053] Among them, L is the loss function, c is the number of categories, y is the training sample, is the model prediction label, where the model prediction label can contain both hard labels and soft labels.

[0054] In order to provide appropriate feedback at the appropriate time, in one or more embodiments of the present specification, the method further determines whether the feedback trigger information is located at the end of a sentence or in the middle of a sentence. If it is located at the end of a sentence, the method proceeds to the step of inputting the feedback trigger information into a trained feedback prediction machine learning model to predict the corresponding feedback. If it is located in the middle of a sentence, the method randomly extracts the single-word feedback words for feedback based on the pre-stated probabilities of the single-word feedback words.

[0055] Among them, the implementation method of pre-stating the probability corresponding to each single-word feedback word is not limited, for example, it can include: extracting the sentence that the user said halfway according to the speech pause interval, punctuation marks and other mid-sentence signs in the massive dialogue data; based on the extracted sentences, calculating the number of occurrences of the single-word feedback words in each sentence, and normalizing them into probabilities. When it is necessary to provide feedback in the sentence, weighted random extraction is performed according to the statistical probabilities of each feedback word (for example: the statistical probability of feedback word A = 0.6, the probability of feedback word B = 0.4, then the weighted random selection A has a 60% probability of being selected, and B has a 40% probability of being selected).

[0056] Among them, the feedback language in the sentence may include the single-word feedback language said by the intelligent interactive platform when the user has not finished speaking. The feedback at the end of the sentence may include the follow-up language said by the intelligent interactive platform before the formal reply after the user has finished speaking. For example, the user said: "I have a question here (the intelligent interactive platform determines it as the middle of the sentence and gives a single-word feedback language: "Well") I don't know how to apply for the provident fund." At this time, the intelligent interactive platform determines it as the end of the sentence, and predicts the feedback language "Oh" through the feedback language prediction machine learning model to follow the formal reply language. It can be seen that the feedback in the sentence is to make the feedback language express "I am listening to you" when the user is halfway through speaking (for example: when the user is speaking, the breathing pause between sentences and sentences), and hope that the user will continue to speak, for example, feedback modal particles (for example: well, ah). Therefore, in this embodiment, the feedback is fed back by weighted random extraction of single-word feedback language, so that the feedback in the sentence "does not" compete for the right to speak in the current dialogue, so as to achieve the effect of encouraging the user to continue speaking. The purpose of the feedback at the end of a sentence is to provide a link between the previous and the next words when the user finishes speaking and the intelligent interactive platform speaks, for example, feedback sequence words (for example: ok, oh oh). Therefore, in this embodiment, the feedback words predicted by the feedback word prediction machine learning model are used at the end of the sentence to provide feedback, which "has" the intention of competing for the right to speak in the current conversation. It can be seen that in this embodiment, the feedback word prediction machine learning model is used at the end of the sentence to predict and provide feedback, and simple single-word feedback is selected by weighted randomness in the sentence, so as to provide appropriate feedback at the right time.

[0057] In order to avoid too frequent feedback, in one or more embodiments of this specification, a feedback time window is further preset, and the feedback time window is used to control the number of feedback words fed back to be within a preset number. For example, at most one feedback word is given in a one-second time window to avoid too frequent feedback. Among them, the size of the feedback time window and the number of feedback words can be set according to the needs of the implementation scenario to achieve control of the feedback frequency.

[0058] In order to increase the diversity of feedback words, in one or more embodiments of this specification, the feedback based on the predicted feedback words may include: randomly selecting a feedback word from the multiple predicted feedback words for feedback. For example, when multiple feedback words are predicted, one can be randomly selected from the feedback words with a probability greater than 0.99. Through this embodiment, the diversity of replies can be increased and the user experience can be improved.

[0059] The embodiment of this specification does not limit the way in which the intelligent interactive platform controls the tone / speed / pitch of the feedback speech. For example, Figure 3 In the SSML format shown in the figure, adjust the parameters to control the tone / speed / pitch of the generated feedback.

[0060] The following combination Figure 4 , further describes the processing process of the method for processing feedback combined with the above multiple embodiments. Figure 4 A flowchart of a method for processing feedback provided in an embodiment of the present specification is shown, and the specific steps include step 402 to step 414.

[0061] Step 402: Obtain feedback trigger information, text (T).

[0062] For example, the feedback trigger information may be text (T) input by the user.

[0063] Step 404: Implement frequency control according to a preset feedback time window.

[0064] For example, whether feedback is allowed may be determined based on the feedback time window.

[0065] If feedback is allowed, determine whether the text (T) is at the end of the sentence or in the middle of the sentence.

[0066] Step 406: If it is located in the sentence, a single-word feedback phrase is randomly extracted by weight to provide feedback.

[0067] Step 408: If it is at the end of the sentence, input the text (T) into the feedback prediction machine learning model (text CNN).

[0068] Among them, text CNN is a feedback prediction machine learning model based on Convolutional Neural Network training. In the data construction stage before training, the training data of the feedback selection strategy can be constructed based on a large number of person-to-person conversation recordings, which can make full use of the rich industry and scenario data in the conversation recordings to ensure the generalization of the model. Among them, the samples and labels in the training data can be a one-to-many relationship. Compared with a single label, the pass rate of the multi-label selection model can be greatly improved. Soft labels can be included in the multi-label to improve the robustness of the model.

[0069] Step 410: The feedback prediction machine learning model predicts the probabilities of the corresponding multiple feedback sentences.

[0070] Among them, predicting multiple feedback sentences realizes the diversity control of replies.

[0071] Step 412: randomly select a feedback sentence from the predicted multiple feedback sentences for feedback, so as to realize end-to-end feedback sentence selection.

[0072] Step 414: Reply feedback to the user based on TTS control (speech synthesis tool).

[0073] For example, in TTS control, you can Figure 3 In the SSML format shown in the figure, adjust the parameters to control the tone / speed / pitch of the generated feedback.

[0074] The above embodiments have been evaluated and shown to greatly improve the feedback effect. Specifically, for example, by Figure 5a As shown in the comparison diagram of the evaluation pass rate, it can be seen that in this embodiment, by introducing a multi-label selection model, the manual evaluation pass rate of the predicted feedback language is improved by 6.7% (from 83.3% to 90%) compared with a single label. By introducing soft labels, the Hamming Loss is further reduced by 0.51 (from 12.04 to 11.54), thereby improving the robustness of the model.

[0075] Below, an embodiment of the application of the method for processing feedback words provided in the embodiments of this specification to tone continuation is further described. Specifically, for example, the feedback words can be tone continuation words. For example, when applied in an actual scenario, the feedback words fed back at the end of a sentence can be continuation words used for the tone continuation function. The obtaining of feedback word trigger information may include: in response to the intelligent interaction platform receiving voice or text information input by the user, obtaining feedback word trigger information from the voice or text information. The selecting of feedback words from the multiple feedback words for feedback may include: providing the tone continuation words selected from the multiple tone continuation words to the user in the form of voice or text through the intelligent interaction platform.

[0076] For example, according to Figure 4 The process shown in the figure is as follows. In the application scenario of the food delivery platform, the interaction process between the user and the robot of the food delivery platform is as follows Figure 5b As shown, the robot captures the sentence said by the user and enters the process of selecting feedback words. If it is judged as feedback in the middle of the sentence, the robot randomly extracts the word "hmm" and feeds it back to the user to encourage the user to continue. The user then says "why hasn't the takeaway arrived yet?" The robot captures the sentence said by the user and enters the process of selecting feedback words. If it is judged as feedback at the end of the sentence, the robot inputs "why hasn't the takeaway arrived yet?" into the feedback word prediction machine learning model, predicts multiple feedback words, and randomly selects "got it" from the multiple feedback words to feed back to the user as the tone of voice before the formal question and answer result "your takeaway is currently delivered to...", thereby reducing the delay experience and increasing the naturalness of the conversation.

[0077] In this embodiment, in order to provide users with more choices, a switch for turning on or off the tone continuation function can be further provided to the user on the interactive interface. Specifically, for example, the method may also include: receiving an on or off instruction for the tone continuation function through the interactive interface; upon receiving the on instruction, entering the step of obtaining the feedback language trigger information; upon receiving the off instruction, ignoring the feedback language trigger information. In this embodiment, the user can independently choose whether to turn on the tone continuation function. According to the method provided in the embodiment of this specification, when the tone continuation function is turned on, the intelligent interactive platform can play a variety of colloquial tone continuation content before formally answering the content, which can reduce the delay experience and increase the naturalness of the conversation.

[0078] For example, in Figure 6 In the schematic diagram of the scenario management page shown, a switch is provided to turn on or off the tone of voice continuation function. When the switch is turned off, the continuation language management button below can be grayed out to indicate that it is unavailable. When the switch is turned on, the continuation language management button below can be restored to indicate that it is available. The scope of effectiveness of the switch may include, for example: outbound calls executed after the status is changed and changes and effectiveness during task execution are supported. In order to help users understand the purpose of the tone of voice continuation function, a function introduction can also be provided in the scenario management page schematic diagram, for example, Figure 6 As shown, a prompt plug-in is set next to the "tone continuation capability". The prompt plug-in is used to prompt the user that the tone continuation allows the robot to play various, colloquial tone continuation contents before answering the content, which can reduce the delay experience and increase the naturalness of the conversation.

[0079] For another example, in order to help users understand the tone of voice connection function, Figure 6The page shown also provides a button for "About the tone of voice continuation function". When the user clicks the button, a pop-up window will appear. Figure 7 The pop-up window for introducing the function of opening the tone of voice continuation is shown. In this pop-up window, the effect after opening the tone of voice continuation function can be introduced in detail.

[0080] In order to facilitate the user to manage the feedback words carried out by the tone, in one or more embodiments of this specification, a management instruction for the feedback words is further received through the interactive interface; and the feedback words are managed according to the management instruction. The management instruction includes any one or more of the following instructions:

[0081] Command to display a list of feedback words;

[0082] Instructions for adding or removing feedback;

[0083] Add or delete the command of user-defined feedback trigger information corresponding to the feedback;

[0084] Command to disable or enable the specified feedback.

[0085] For example, Figure 6 In the schematic diagram of the scene management page shown in FIG, a "Manage" button is provided on the interactive interface. When the user clicks the "Manage" button, a pop-up window with management instructions will pop up. Figure 8 In the pop-up window for managing the continuation phrases shown, the continuation phrase related configurations can be managed. For example, according to the above embodiment, the following functions may be included but are not limited to: displaying different types of continuation phrases and not triggering continuation phrases; displaying the continuation phrase content to support self-addition, activation and deactivation; configuring the corresponding user triggering words for each continuation phrase, etc. In order to help users understand the management related functions, such as Figure 6 As shown, a prompt plug-in can also be set next to the management button. The prompt plug-in is used to prompt the user that the continuation words in the list will be played according to the decision results of the algorithm model, and the user can adjust them according to the delay, TTS and other effects.

[0086] In addition, in order to help users understand the management method, for example, a prompt plug-in for managing continuation words can also be provided, prompting users to manage different types of continuation words, including enabling, disabling, and customizing continuation words, and adding user scripts that trigger continuation words. It is also prompted that different types of continuation words can include four types of triggering scenarios: scenarios where users indicate listening; scenarios where users indicate understanding, such as users saying "Well, I know"; scenarios where users indicate thinking (question sentences), such as users saying "When will it be delivered?"; scenarios where users actively respond, such as users saying "Well, OK." In addition, users can also be prompted to set scenarios that do not trigger continuation words, for example, replying to continuation words for specific user scripts can be prohibited.

[0087] For example, in Figure 8 In the pop-up window for managing the continuation terms shown, each existing continuation term may correspond to a switch button. The continuation term list may be displayed in the form of a scroll bar. The total number of continuation terms may also be added next to the continuation term to display the number of continuation terms.

[0088] In addition, in order to facilitate users to determine the effect of the custom-added transition words, a prompt plug-in can be set next to the feedback words in the pop-up window for managing the transition words. The prompt plug-in is used to remind users that the pronunciation of the custom-added transition words can be automatically generated by TTS and listened to using the TTS audition function.

[0089] For example, Figure 8 In the pop-up window for managing continuation words shown, users can add custom continuation words by clicking the input area, for example, by entering text. In order to facilitate users to delete custom continuation words, a delete button can be displayed when the mouse is hovered, so that users can delete custom continuation words. In addition, the maximum number of continuation words can be displayed to facilitate users to manage continuation words.

[0090] For example, Figure 8 In the pop-up window for managing the continuation words shown, after the continuation words are clicked and selected, a list of user words used to trigger the continuation words can be displayed. The user can perform custom addition, deletion and other management on the user words list. In the area where the user words are displayed, the user can support custom addition and deletion of user words. In addition, in order to reduce user operations, similar words can also be automatically generated when user-defined feedback words trigger information is added. Specifically, for example, the method can also include: generating similar feedback words trigger information when user-defined feedback words trigger information is added; adding the user-defined feedback words trigger information and similar feedback words trigger information to the corresponding feedback words trigger information set. Correspondingly, a prompt plug-in can also be set in the pop-up window to prompt the user to add a user expression statement, and the model will automatically generate similar expressions without repeated filling. When the user words are captured, the intelligent interactive platform will play the corresponding continuation words. The user can also be prompted: if the continuation words are not triggered, the capture of the user words will not trigger any continuation words.

[0091] Corresponding to the above method embodiment, this specification also provides an embodiment of a device for processing feedback. Fig. 9 FIG. 1 is a schematic diagram showing a structure of a device for processing feedback provided by an embodiment of the present specification. Fig. 9 As shown, the device includes: a trigger module 902 , a prediction module 904 and a feedback module 906 .

[0092] The trigger module 902 may be configured to obtain feedback trigger information.

[0093] The prediction module 904 can be configured to input the feedback language trigger information into a trained feedback language prediction machine learning model to predict one or more corresponding feedback words, wherein the feedback language machine learning model is trained with multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels.

[0094] The feedback module 906 may be configured to provide feedback according to the predicted feedback language.

[0095] The feedback language machine learning model of the device is obtained by training with multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels. Therefore, after obtaining the feedback language trigger information, the device inputs the feedback language trigger information into the trained feedback language prediction machine learning model, and can predict the corresponding one or more feedback words, and provide feedback based on the predicted feedback words. It can be seen that this method can handle the one-to-many relationship between trigger information and feedback language well by incorporating multiple categories of labels into the model, effectively predict one or more appropriate feedback words, and then provide feedback based on the predicted feedback words. Not only is the pass rate higher, but it also has better diversity, and the feedback effect can be improved, thereby improving the user experience.

[0096] Fig.10 FIG. 2 shows a schematic diagram of a device for processing feedback provided by another embodiment of the present specification. Fig.10 As shown, in one or more embodiments of the present specification, the device may also include: a sample mining module 908a, which may be configured to mine and analyze the massive conversation data through clustering algorithms and matching rules before training the feedback language prediction machine learning model, and obtain feedback language training samples, feedback language category labels corresponding to the samples, and probability values ​​corresponding to the feedback language category labels. Wherein, the feedback language category labels include: feedback language category hard labels and / or feedback language category soft labels; wherein the probability value corresponding to the feedback language category hard labels is the minimum probability value or the maximum probability value, and the probability value corresponding to the feedback language category soft labels is a value between the minimum probability value and the maximum probability value. A model training module 908b may be configured to train the feedback language prediction machine learning model using the feedback language training samples to obtain a feedback language prediction machine learning model that has completed training. Wherein, the feedback language prediction machine learning model calculates the difference and gradient between the predicted label and the actual label of the feedback language category of the sample through a loss function, and updates the parameters of the model through a gradient descent method.

[0097] In the above embodiment, the relationship between samples and labels is a one-to-many relationship, and the multiple labels can include both hard labels and soft labels. Therefore, the feedback prediction machine learning model incorporates a loss function in which multiple labels and soft labels are jointly calculated, so that the predicted feedback not only has a higher pass rate, but also has better diversity.

[0098] like Fig.10 As shown, in one or more embodiments of the specification, the device may also include: a sentence judgment module 910, which may be configured to judge whether the feedback language trigger information is located at the end of a sentence or in the middle of a sentence; if it is located at the end of a sentence, triggering the prediction module 904 to enter the step of inputting the feedback language trigger information into the feedback language prediction machine learning model that has completed training, and predicting the corresponding feedback language. A sentence processing module 912 may be configured to, if the sentence judgment module 910 determines that it is located in the sentence, according to the probability corresponding to each single-word feedback language that is pre-stated, extract the single-word feedback language by weighted randomness for feedback. In this embodiment, the feedback language prediction machine learning model is used at the end of the sentence to predict and feedback the feedback language, and the weighted randomness is used to select simple single-word feedback in the sentence, so as to give appropriate feedback at the right time.

[0099] To avoid too much feedback, such as Fig.10 As shown, in one or more embodiments of the present specification, the device may further include: a time window setting module 918, which may be configured to pre-set a feedback time window, wherein the feedback time window is used to control the number of feedback words fed back to be within a preset number.

[0100] In order to increase the diversity of feedback words, in one or more embodiments of the present specification, the feedback module 906 may be configured to randomly select a feedback word from the predicted multiple feedback words for feedback.

[0101] In order to facilitate users to manage the feedback language of tone, such as Fig.10 As shown, in one or more embodiments of the present specification, the device may further include: a management receiving module 914, which may be configured to receive management instructions for feedback words through an interactive interface. A management execution module 916 may be configured to manage the feedback words according to the management instructions; wherein the management instructions include any one or more of the following instructions: an instruction to display a feedback word list, an instruction to add or delete feedback words, an instruction to add or delete user-defined feedback word trigger information corresponding to the feedback words, and an instruction to disable or enable a specified feedback word.

[0102] In order to reduce user operations, such as Fig.10As shown, in one or more embodiments of the present specification, the management execution module 916 of the device can also be configured to generate similar feedback language trigger information when user-defined feedback language trigger information is added, and add the user-defined feedback language trigger information and the similar feedback language trigger information to the corresponding feedback language trigger information set.

[0103] In one or more embodiments of the present specification, the feedback language is a tone-connecting language. Accordingly, the trigger module 902 can be configured to obtain feedback language trigger information from the voice or text information in response to the intelligent interaction platform receiving the voice or text information input by the user. The feedback module 906 can be configured to provide the tone-connecting language selected from multiple tone-connecting languages ​​to the user in the form of voice or text through the intelligent interaction platform.

[0104] like Fig.10 As shown, in one or more embodiments of the present specification, the device may further include: a switch receiving module 920, which may be configured to receive an on or off instruction for the tone continuation function through an interactive interface, and when receiving an on instruction, the trigger module 902 enters the step of obtaining feedback language trigger information; when receiving a off instruction, the feedback language trigger information is ignored. In this embodiment, the user can choose whether to turn on the tone continuation function. When the tone continuation function is turned on, the intelligent interactive platform can play a variety of colloquial tone continuation content before formally answering the content, which can reduce the delay experience and increase the naturalness of the conversation.

[0105] The above is a schematic scheme of a device for processing feedback in this embodiment. It should be noted that the technical scheme of the device for processing feedback and the technical scheme of the method for processing feedback belong to the same concept, and the details not described in detail in the technical scheme of the device for processing feedback can be referred to the description of the technical scheme of the method for processing feedback.

[0106] Fig.11 The block diagram of a computing device 1100 according to one embodiment of the present specification is shown. The components of the computing device 1100 include but are not limited to a memory 1110 and a processor 1120. The processor 1120 is connected to the memory 1110 via a bus 1130, and a database 1150 is used to store data.

[0107] The computing device 1100 also includes an access device 1140 that enables the computing device 1100 to communicate via one or more networks 1160. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1140 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0108] In one embodiment of the present specification, the above components of the computing device 1100 and Fig.11 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig.11 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0109] The computing device 1100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 1100 may also be a mobile or stationary server.

[0110] The processor 1120 is used to execute the following computer executable instructions:

[0111] Get feedback trigger information;

[0112] Inputting the feedback trigger information into a trained feedback prediction machine learning model to predict one or more corresponding feedback words, wherein the feedback machine learning model is trained using multi-label training data, wherein at least one sample in the multi-label training data has multiple corresponding feedback category labels;

[0113] Provide feedback based on the predicted feedback.

[0114] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the method for processing feedback belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the method for processing feedback.

[0115] An embodiment of the present specification further provides a computer-readable storage medium storing computer instructions, which are used when executed by a processor to:

[0116] Get feedback trigger information;

[0117] Inputting the feedback trigger information into a trained feedback prediction machine learning model to predict one or more corresponding feedback words, wherein the feedback machine learning model is trained using multi-label training data, wherein at least one sample in the multi-label training data has multiple corresponding feedback category labels;

[0118] Provide feedback based on the predicted feedback.

[0119] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the method for processing feedback belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the method for processing feedback.

[0120] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0121] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0122] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0124] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A method for processing feedback, comprising: Get feedback trigger information; Determining whether the feedback trigger information is located at the end of a sentence or in the middle of a sentence; If it is at the end of the sentence, the feedback language trigger information is input into a trained feedback language prediction machine learning model to predict one or more corresponding feedback words, wherein the feedback language is a mood continuation language, and the feedback language prediction machine learning model is trained by multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels; Provide feedback based on the predicted feedback; If it is located in a sentence, the single-word feedback words are extracted for feedback according to the pre-stated probabilities corresponding to the various single-word feedback words.

2. According to the method of claim 1, at least one sample in the multi-label training data has a feedback language category soft label, and the probability value corresponding to the feedback language category soft label is a value between the minimum probability value and the maximum probability value.

3. The method according to claim 1, further comprising: Before training the feedback prediction machine learning model, a large amount of conversation data is mined and analyzed through a clustering algorithm and matching rules to obtain feedback training samples, feedback category labels corresponding to the samples, and probability values ​​corresponding to the feedback category labels; Using the feedback language training samples to train the feedback language prediction machine learning model to obtain a trained feedback language prediction machine learning model; The feedback prediction machine learning model calculates the difference and gradient between the predicted label and the actual label of the sample through the loss function, and updates the parameters of the model through the gradient descent method.

4. The method according to claim 1, further comprising: A feedback time window is preset, and the feedback time window is used to control the number of feedback words fed back to be within a preset number.

5. The method according to claim 1, wherein providing feedback based on the predicted feedback language comprises: A feedback sentence is randomly selected from the multiple predicted feedback sentences for feedback.

6. The method according to claim 1, further comprising: Receiving management instructions for the feedback through the interactive interface; Manage the feedback according to the management instructions; The management instruction includes any one or more of the following instructions: an instruction to display a feedback word list, an instruction to add or delete a feedback word, an instruction to add or delete user-defined feedback word trigger information corresponding to the feedback word, and an instruction to disable or enable a specified feedback word.

7. The method according to claim 6, further comprising: When user-defined feedback trigger information is added, similar feedback trigger information is generated; The user-defined feedback language trigger information and similar feedback language trigger information are added to a corresponding feedback language trigger information set.

8. The method according to claim 1, wherein the feedback language is a modal continuation language; The obtaining of feedback trigger information includes: In response to the intelligent interaction platform receiving voice or text information input by the user, obtaining feedback language trigger information from the voice or text information; The selecting a feedback word from the plurality of feedback words to provide feedback includes: The tone of voice selected from the plurality of tone of voice is provided to the user in the form of voice or text via the intelligent interaction platform.

9. The method according to claim 8, further comprising: Receive an instruction to turn on or off the tone-taking function through an interactive interface; When the start instruction is received, the step of obtaining the feedback trigger information is entered; When a closing instruction is received, the feedback trigger information is ignored.

10. A device for processing feedback, comprising: A trigger module is configured to obtain feedback trigger information; A sentence judgment module is configured to judge whether the feedback trigger information is located at the end of a sentence or in the middle of a sentence; If it is at the end of the sentence, the trigger prediction module enters the step of inputting the feedback language trigger information into the trained feedback language prediction machine learning model; A prediction module is configured to input the feedback language trigger information into a trained feedback language prediction machine learning model to predict one or more corresponding feedback language, wherein the feedback language is a tone continuation language, and the feedback language prediction machine learning model is trained by multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels; A feedback module is configured to provide feedback according to the predicted feedback words; The sentence processing module is configured to extract the single-word feedback words for feedback according to the pre-stated probabilities corresponding to each single-word feedback word if the sentence judgment module determines that the word is located in the sentence.

11. A computing device comprising: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions: Get feedback trigger information; Determining whether the feedback trigger information is located at the end of a sentence or in the middle of a sentence; If it is at the end of the sentence, the feedback language trigger information is input into a trained feedback language prediction machine learning model to predict one or more corresponding feedback words, wherein the feedback language is a mood continuation language, and the feedback language prediction machine learning model is trained by multi-label training data, wherein at least one sample in the multi-label training data has corresponding multiple feedback language category labels; Provide feedback based on the predicted feedback; If it is located in a sentence, the single-word feedback words are extracted for feedback according to the pre-stated probabilities corresponding to the various single-word feedback words.

12. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the steps of the method for processing feedback as claimed in any one of claims 1 to 9.