A conversation quality assessment method and system based on deep learning

Deep learning technology is used to evaluate the smoothness, semantic relevance, emotional guidance and contextual logic consistency of candidate responses in the dialogue system, solving the problem of insufficient dialogue quality assessment in the existing technology and improving the user experience of the dialogue system. and the effectiveness of automated assessments.

CN114154517BActive Publication Date: 2024-09-27HUAZHONG NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111442436.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-09-27
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

The existing technology is not comprehensive enough to evaluate dialogue quality in open-field dialogue systems. The automated evaluation indicators mainly focus on the fluency and semantic relevance of dialogue generation, and lack the evaluation of logical consistency and emotional relevance, resulting in poor user experience and consultation satisfaction. good.

Method used

A dialogue quality assessment method based on deep learning is used to build a dialogue data training model to evaluate the smoothness, semantic relevance, positive emotional guidance and contextual logic consistency of candidate replies. It uses N-gram language model, BERT model and emotion The recognition model is evaluated and a linear fusion is performed to select the final reply.

Benefits of technology

It achieves a comprehensive assessment of candidate responses in the dialogue system, improving user experience and consultation satisfaction. The automatic assessment results have a strong correlation with manual assessment, can provide standards for dialogue generation, and can be extended to text quality assessment in other natural language processing fields. Task.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114154517B
    Figure CN114154517B
Patent Text Reader

Abstract

A method for evaluating the quality of a conversation based on deep learning is characterized by: first, constructing a conversation corpus, the corpus including a user conversation D and a plurality of candidate replies R; then, using the conversation corpus to train a conversation quality evaluation deep learning model M, the deep learning model evaluating the quality of the candidate replies from four aspects: the fluency of the reply, the semantic relevance of the reply to the user conversation D, the positive emotional guidance of the reply to the user conversation D, and the contextual logical consistency of the reply to the user conversation D; finally, by combining the fluency result P A , Correlation results P B , positive emotional guidance results P C , contextual logical consistency result P D Linear fusion is performed, and the candidate response with the highest score is selected as the final response of the user dialogue D. The present invention can effectively evaluate multiple candidate responses given by the dialogue system and provide a standard for dialogue comparability in dialogue generation. It can also be extended to text quality assessment tasks in other natural language processing fields.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of human-computer dialogue systems, and in particular relates to a dialogue quality assessment method and system based on deep learning. Background Art

[0002] In recent years, Internet technology has achieved rapid development. Various Internet products have penetrated into people's lives, resulting in a large amount of data being generated every moment, and the era of big data has gradually arrived. Supported by big data, deep learning technology has made rapid progress and has been widely used in the field of artificial intelligence. Artificial intelligence technology has ushered in new development opportunities. As an important part of the field of artificial intelligence, human-computer dialogue has made great breakthroughs. Various human-computer dialogue systems have appeared in people's daily lives, such as Microsoft's chat robot Xiaobing, Alibaba's intelligent customer service Xiaomi, and Apple's voice assistant Siri. Among them, Microsoft Xiaobing can analyze the user's emotional changes and give emotional responses, which can serve as a close emotional partner for users; Alibaba Xiaomi, as a customer's shopping personal assistant, can provide customers with full-process consulting services and enhance the user's shopping experience. An intelligent human-computer dialogue system can fully understand the semantic information of the dialogue and generate meaningful responses that meet the dialogue scenario, so as to better serve users.

[0003] Dialogue generation is a key link in human-computer dialogue. It can generate machine responses based on the content of the dialogue and convert the responses into natural language to feed back to the user. The quality of dialogue generation directly affects the user experience and largely reflects the intelligence level of the human-computer dialogue system. At present, dialogue systems based on deep learning can learn and summarize the semantic information of dialogues from massive dialogue corpora and automatically generate responses. However, not all candidate responses generated by the system are suitable for the current dialogue. Therefore, how to select a suitable response from multiple candidate responses is very important for improving the performance of the dialogue system and increasing user experience. In addition, establishing an accurate and comprehensive dialogue quality evaluation model is of great significance to improving user consultation satisfaction and improving machine language dialogue skills. At present, in open-domain dialogue systems, automated evaluation indicators usually focus on the quality of dialogue generation, such as the coherence and fluency of the dialogue context. However, this automatic evaluation method is not comprehensive enough for the evaluation of dialogue quality. In addition, although manual evaluation is more accurate, it is inefficient and costly. In summary, it is particularly important to explore an effective automated method to comprehensively evaluate the quality of generated dialogues. Summary of the invention

[0004] The problem to be solved by the present invention is to use deep learning technology to improve the accuracy of dialogue quality assessment.

[0005] The present invention provides a method for evaluating the quality of a conversation based on deep learning. First, a conversation corpus is constructed, the corpus including a user conversation D and a plurality of candidate replies R. Then, a conversation quality evaluation deep learning model M is trained with the conversation corpus. The deep learning model evaluates the quality of the candidate replies from four aspects: the fluency of the reply, the semantic relevance of the reply to the user conversation D, the positive emotional guidance of the reply to the user conversation D, and the contextual logical consistency between the reply and the user conversation D. Finally, the fluency result P of the reply is calculated by A , the result P of the relevance of the reply to the user conversation D B , reply to the positive sentiment guidance result P of user dialogue D C , reply to the contextual logic consistency result P of the user dialogue D D Perform linear fusion and select the candidate response with the highest score as the final response of user dialogue D.

[0006] Moreover, when evaluating the quality of candidate replies based on the fluency of the replies, it includes evaluating N candidate replies R = {r1, r2, ..., r N}, r u Denote each candidate response, u = 1, 2, ... N), calculate the candidate response r i The confusion degree is used to score the fluency of the candidate responses. The implementation method is as follows:

[0007] The candidate reply r u After word segmentation, we get an input text r of length m u =[x1, x2, ..., x m ], calculate the confusion PPL (r u )as follows:

[0008]

[0009] where x1, x2, ..., x m For the individual words that make up a sentence;

[0010]

[0011] Among them, q(x i |x i-1 , x i-2 , ..., x1) can be obtained from the language model, which is the distribution q(x) of the probability that the i+1th word may appear given the first i words of a sentence. i |x i-1 , x i-2 , ..., x1);

[0012] In order to map the perplexity value to around 0 to 1, a standardized calculation is performed:

[0013] P A =-(PPL(r u )-mu) / sigma

[0014] Among them, mu and sigma are fixed values, P A Score the fluency of the responses.

[0015] Moreover, when evaluating the semantic relevance of the reply to the user conversation D, it includes evaluating the semantic relevance of the N candidate replies R by calculating the user conversation D and each candidate reply r i The semantic similarity of the candidate reply and the user conversation is scored as follows:

[0016] For user dialogue D and candidate response r u Perform word segmentation and obtain n words w1, w2, ..., w n and m words x1, x2, ..., x m , and preprocessing is performed, including adding the label [CLS] at the beginning, to obtain D = [[CLS], w1, w2, ..., w n ] and r u =[[CLS],x1,x2,...,x m ], and then use the word embedding method to get the word vector sequence and The vectors corresponding to the two [CLS] flags in the input text, e wj Represents the word vector of the jth word in the user conversation D, e xi Represents the candidate response r u The word vector of the i-th word in D, i = 1, 2, ... m, j = 1, 2, ... n; e and r ue Input them into the BERT model respectively, and get the output of BERT by calculation ; The outputs of the two [CLS] flags correspond to the conversation semantics of the user conversation and the candidate reply. Cosine similarity gives user dialogue D and candidate response r u The semantic similarity is scored as follows:

[0017]

[0018] Among them, cos() represents cosine similarity, P B For user dialogue D and candidate response r u The semantic relevance scoring results.

[0019] Moreover, when evaluating the positive emotional guidance of the reply to the user dialogue D, for N candidate replies R, a rule for the emotional guidance of the candidate reply to the user dialogue D is formulated, and each candidate reply is scored according to the rule. The implementation method is as follows:

[0020] The conversation emotion recognition model is used to identify the user dialogue D and each candidate response r i Scoring is performed to obtain the probability distribution of dialogue sentiment polarity [P(neutral), P(positive), P(negative)], where P(neutral), P(positive), and P(negative) represent the probabilities of neutral, positive, and negative sentiments, respectively. The sentiment scores are calculated as follows:

[0021] Score D =[0.05*P(middle)+1*P(positive)-1*P(negative)]*100

[0022]

[0023] Among them, Score D represents the sentiment score of the user conversation, represents the sentiment score of the i-th candidate response;

[0024] The scoring rules for calculating the positive sentiment guidance of the reply to the user dialogue D are as follows:

[0025] When the user dialogue sentiment score D <0, and hour:.

[0026]

[0027] P C =-(Score t -num) / sigma

[0028] Among them, abs() means to find the absolute value, Score t Score D and The emotional distance, num and sigma are constants, P C is the positive sentiment guidance score of the reply to user dialogue D.

[0029] When the user dialogue sentiment score D <0, and hour:

[0030] P C =0

[0031] When the user dialogue sentiment score D ≥0:

[0032]

[0033]

[0034]

[0035] Moreover, when evaluating the logical consistency of the context of the reply and the user dialogue D, it includes evaluating the N candidate replies R by calculating the user dialogue D and by calculating each candidate reply r u The logical consistency of the context is scored for the logical consistency of the candidate responses. The implementation method is as follows:

[0036] For user dialogue D and candidate response r u Perform word segmentation to obtain D = [w1, w2, ..., w n ] and r u =[x1, x2, ..., x m ], preprocess the text to get the input text I = [[CLS], w1, w2, ..., w n , [SEP], x1, x2, ..., x m ], [CLS] is the start mark, and [SEP] is the paragraph separator, which are used to separate the user dialogue D and the candidate reply r respectively. u . ;

[0037] Then, use the word embedding method to get the word vector sequence I e =[e cls , e w1 , e w2 ,…,e wn , e sep , e x1 , e x2 ,…,e xm ],e wj Represents the word vector of the jth word in the user conversation, e xi Represents the candidate response r u The word vector of the i-th word in , i = 1, 2, ... m, j = 1, 2, ... n;

[0038] Sequence I e Input to the BERT model, h cls The output corresponding to the [CLS] flag is used to calculate whether two sentences have contextual logical consistency. The specific implementation process is as follows:

[0039] y=softmax(W l h cls )

[0040] Where W lrepresents the trainable parameters of the fully connected network layer, and softmax represents the activation function. h is trained by the fully connected layer and the softmax activation function. cls Perform activation function processing to calculate D and r u is the probability distribution y of contextual logic consistency. Finally, the probability of logical consistency between user dialogue and candidate reply is selected as P D .

[0041] Furthermore, the fluency result P of the candidate response is A , the result P of the relevance of the reply to the user conversation D B , reply to the positive sentiment guidance result P of user dialogue D C , reply to the contextual logic consistency result P of the user dialogue D D Perform linear fusion and select the candidate response with the highest score among multiple candidate responses as the final response corresponding to dialogue D.

[0042] On the other hand, the present invention also provides a deep learning-based dialogue quality assessment system, which is used to implement the deep learning-based dialogue quality assessment method as described above.

[0043] Moreover, it includes a processor and a memory, the memory is used to store program instructions, and the processor is used to call the stored instructions in the memory to execute the conversation quality assessment method based on deep learning as described above.

[0044] Alternatively, it includes a readable storage medium, on which a computer program is stored, and when the computer program is executed, a conversation quality assessment method based on deep learning as described above is implemented.

[0045] The present invention provides a technical solution for evaluating the quality of dialogue based on deep learning. The present invention proposes a comprehensive and automatic evaluation method for the quality of open-domain dialogue generation. Compared with the prior art, the evaluation method not only evaluates the fluency and semantic relevance of the generated dialogue, but also further considers the logical consistency and emotional relevance of the reply. For the fluency and semantic relevance of the dialogue, the present invention evaluates the fluency of the reply by using an n-gram language model, and uses a deep learning BERT model to obtain the semantic relevance of the user dialogue and the candidate reply. For the logical consistency of the reply, the present invention uses a deep learning BERT model and an entailment-based method to evaluate the logical consistency. For emotional relevance, the present invention proposes a method for dialogue sentiment calculation, and designs an evaluation standard based on the emotional distance between the user dialogue and the candidate reply. Experimental results show that the dialogue quality evaluation method proposed in the present invention can effectively evaluate multiple candidate replies given by the dialogue system, and the results of the automatic evaluation method are strongly correlated with the results of the manual evaluation. The evaluation method proposed in the present invention can provide a standard for the comparability of dialogues in dialogue generation. At the same time, the method can also be extended to text quality evaluation tasks in other natural language processing fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 4 is a flow chart of conversation quality assessment in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The technical solution of the present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0048] Open domain dialogue generation has received increasing attention in the field of human-computer dialogue. Response generation requires a comprehensive evaluation standard. Manual evaluation is considered the gold standard. Since manual evaluation is inefficient and costly, an automated alternative is highly desirable. In addition, some automatic evaluation methods only consider the coherence and fluency of the dialogue context, resulting in a lack of comprehensiveness in dialogue quality evaluation. In response to these problems, in order to more comprehensively evaluate the dialogue, the dialogue quality evaluation method proposed in the present invention not only evaluates the fluency and semantic relevance of the generated dialogue, but also further considers the logical consistency and emotional relevance of the response. The present invention evaluates multiple candidate responses from four aspects: the fluency of the response, the relevance of the response to the user dialogue, the emotional consistency of the response to the user dialogue, and the contextual logic of the response to the user dialogue. Specifically: (1) Dialogue fluency: dialogue fluency based on the n-gram language model; (2) Semantic relevance: contextual semantic relevance based on the BERT model; (3) Contextual logic: logical self-consistency based on textual entailment reasoning; (4) Judging the emotions implied in the dialogue: emotional guidance based on dialogue emotion recognition. In particular, the present invention considers the emotional association between user dialogues and candidate replies, and takes into account the emotional transmission between dialogues at a deeper level. It also proposes a method for dialogue sentiment calculation, and designs an evaluation criterion based on the emotional distance between user dialogues and candidate replies. Experiments have shown that it is effective to evaluate multiple candidate replies given by the dialogue system, and the results of the automatic evaluation method are strongly correlated with the results of manual evaluation.

[0049] A method for evaluating conversation quality based on deep learning is provided in an embodiment of the present invention. A deep learning model for evaluating conversation quality is trained with conversation data. The deep learning model scores candidate replies from four aspects: fluency of the reply, relevance of the reply to the user conversation, emotional consistency of the reply to the user conversation, and contextual logic of the reply to the user conversation. Finally, the candidate reply with the highest score is selected as the final reply for the user conversation by linearly fusing the result of the fluency of the reply, the result of the relevance of the reply to the user conversation D, the result of the emotional consistency of the reply to the user conversation, and the result of the contextual logic of the reply to the user conversation.

[0050] See also Figure 1 The embodiment of the present invention provides a method for evaluating the quality of a conversation based on deep learning, comprising: first, constructing a conversation corpus, the corpus comprising a user conversation D and a plurality of candidate replies R; then, using the conversation corpus to train a conversation quality evaluation deep learning model M, the deep learning model evaluating the quality of the candidate replies from four aspects: the fluency of the reply, the relevance of the reply to the user conversation D, the positive emotional guidance of the reply to the user conversation D, and the contextual logical consistency between the reply and the user conversation D; finally, by converting the fluency result P of the reply into A , the result P of the relevance of the reply to the user conversation D B, reply to the positive sentiment guidance result P of user dialogue D C , reply to the contextual logic consistency result P of the user dialogue D D Perform linear fusion and select the candidate response with the highest score as the final response of user dialogue D.

[0051] The implementation process mainly includes four sub-parts: 1. Reply R, r to N candidates u For each candidate response, calculate r u 1. For N candidate responses R, the perplexity of the user dialogue D and each candidate response r is calculated. u , and score the semantic relevance between the candidate reply and the user conversation; 3. For N candidate replies R, by calculating the user conversation D and each candidate reply r u , and score the emotional consistency of the candidate replies; 4. For N candidate replies R, by calculating the user dialogue D and by calculating each candidate reply r u The context logic of the candidate response is scored. The specific implementation process is as follows:

[0052] Step 1: Reply to N candidates R = {r1, r2, ..., r N}, r u Denote each candidate reply (u=1, 2, ...N), calculate the candidate reply r u The confusion degree is used to score the fluency of the candidate responses. The implementation method is as follows:

[0053] Step 1.1: Submit the candidate response r u After word segmentation, we get an input text r of length m u =[x1, x2, ..., x m ], the perplexity PPL (r u ), the calculation method is as follows:

[0054]

[0055] where x1, x2, ..., x m The individual words that make up a sentence.

[0056]

[0057] Among them, q(x i |x i-1 , x i-2,...,x1) can be given by the language model, i = 1, 2,...m. The language model is that given the first i words of a sentence, the language model can predict what the i+1th word is, that is, give a distribution q(x) of the probability that the i+1th word may appear i |x i-1 , x i-2 , ..., x1).

[0058] Step 1.2: In order to map the perplexity value to the vicinity of 0 to 1, standardization is adopted. The specific calculation method is as follows:

[0059] P A =-(PPL(r u )-mu) / sigma

[0060] Among them, mu and sigma are fixed values, P A Score the fluency of the responses.

[0061] Step 2: For N candidate responses R, calculate the user dialogue D and each candidate response r u The semantic similarity of the candidate reply and the user conversation is scored as follows:

[0062] Step 2.1: User dialogue D and candidate response r u Perform word segmentation and obtain n words w1, w2, ..., w n and m words x1, x2, ..., x m , and preprocessing is performed, that is, adding the [CLS] tag at the beginning to obtain D = [[CLS], w1, w2, ..., w n ] and r u =[[CLS],x1,x2,...,x m ], and then use word embedding technology to get the word vector sequence and The vectors corresponding to the two [CLS] flags in the input text, e wj Represents the word vector of the jth word in the user conversation, e xi Represents the candidate response r u The word vector of the i-th word in D, i = 1, 2, ... m, j = 1, 2, ... n; e and r ue Input them into the BERT model respectively, and get the output of BERT by calculation The outputs corresponding to the two [CLS] flags represent the semantic information of the dialogue sentence.

[0063] Note: BERT is the abbreviation of Pre-training of Deep Bidirectional Transformers for Language Understanding. In specific implementation, the implementation of BERT can refer to the prior art: Devlin, J., Chang, MW, Lee, K., & Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv: 1810.04805. This invention will not be elaborated in detail.

[0064] Step 2.2: By calculation Cosine similarity gives user dialogue D and candidate response r u The semantic similarity score is calculated as follows:

[0065]

[0066] Among them, cos() represents cosine similarity, P B For user dialogue D and candidate response r u The semantic relevance scoring results.

[0067] Step 3: For N candidate responses R, formulate a rule for guiding the sentiment of the candidate responses to the user dialogue D, and score each candidate response based on the rule. The implementation method is as follows:

[0068] Step 3.1: Use the conversation emotion recognition model to identify the user dialogue D and each candidate response r u Scoring is performed to obtain the probability distribution of dialogue sentiment polarity [P(neutral), P(positive), P(negative)], where P(neutral), P(positive), and P(negative) represent the probabilities of neutral, positive, and negative sentiments, respectively. The specific method for calculating sentiment scores is as follows:

[0069] Score D =[0.05*P(middle)+1*P(positive)-1*P(negative)]*100

[0070]

[0071] Among them, Score D represents the sentiment score of the user conversation, represents the sentiment score of the u-th candidate response, and * represents multiplication.

[0072] In specific implementation, the conversation emotion recognition model can adopt existing technology.

[0073] Step 3.2: The scoring rule for calculating the positive sentiment guidance of the reply to the user dialogue D is as follows:

[0074] When the user dialogue sentiment score D <0, and hour:

[0075]

[0076] P C =-(Score t -num) / sigma

[0077] Among them, abs() means to find the absolute value, Score t Score D and The emotional distance, num and sigma are constants and num<sigma. Preferably, num is recommended to be 200, sigma is recommended to be 300, P C is the positive sentiment guidance score of the reply to user dialogue D.

[0078] When the user dialogue sentiment score D <0, and hour:

[0079] P C =0

[0080] When the user dialogue sentiment score D ≥0:

[0081]

[0082]

[0083]

[0084] Step 4: For N candidate responses R, calculate the user dialogue D and calculate each candidate response r u The contextual logical consistency of the candidate response is scored as follows:

[0085] Step 4.1: User dialogue D and candidate response r u Perform word segmentation to obtain D = [w1, w2, ..., w n ] and r u =[x1, x2, ..., x m ], preprocess the text to get the input text I = [[CLS], w1, w2, ..., w n, [SEP], x1, x2, ..., x m ], [CLS] is the start mark, and [SEP] is the paragraph separator, which are used to separate the user dialogue D and the candidate reply r respectively. u Then, we use word embedding technology to get the word vector sequence I e =[e cls , e w1 , e w2 ,…,e wn , e sep , e x1 , e x2 ,…,e xm ],e wj Represents the word vector of the jth word in the user conversation, e xi Represents the candidate response r u The word vector of the i-th word in , i = 1, 2, ...m, j = 1, 2, ...n.

[0086] Step 4.2: Sequence I e Input to the BERT model, h cls The output corresponding to the [CLS] flag is used to calculate whether two sentences have contextual logical consistency. The specific implementation process is as follows:

[0087] y=softmax(W l h cls )

[0088] Where W l represents the trainable parameters of the fully connected network layer, and softmax represents the activation function. h is trained by the fully connected layer and the softmax activation function. cls Perform activation function processing to calculate D and r u is the probability distribution y of contextual logic consistency. Finally, the probability of logical consistency between user dialogue and candidate reply is selected as P D .

[0089] Step 5: For the conversation D for which the intent recognition was performed, the fluency results P of the candidate responses are A , the result P of the relevance of the reply to the user conversation D B , the emotional consistency P of the reply and the user dialogue D C , reply to the contextual logic of the user dialogue D D Linear fusion is performed as follows:

[0090] P=δ1·P A +δ2·P B +δ3·P C +δ4·P D

[0091] Among them, δ1, δ2, δ3, and δ4 are fixed values ​​and their value range is [0, 1]. The recommended values ​​are 0.8, 0.6, 0.9, and 0.8.

[0092] Finally, the candidate response with the highest score among multiple candidate responses is selected as the final response corresponding to dialogue D.

[0093] The above method can be used to implement a conversation quality assessment model based on deep learning and realize an automatic operation process.

[0094] In specific implementation, the deep learning-based dialogue quality assessment method proposed in the technical solution of the present invention can be automatically run by technical personnel in this field using computer software technology. System devices for implementing the method, such as computer-readable storage media that store the corresponding computer program of the technical solution of the present invention, and computer equipment and servers that run the corresponding computer program, should also be within the scope of protection of the present invention.

[0095] In some possible embodiments, a deep learning-based dialogue quality assessment system is provided, including a processor and a memory, wherein the memory is used to store program instructions, and the processor is used to call the stored instructions in the memory to execute an aspect-level sentiment analysis method based on deep learning as described above.

[0096] In some possible embodiments, a deep learning-based dialogue quality assessment system is provided, including a readable storage medium, on which a computer program is stored. When the computer program is executed, an aspect-level sentiment analysis method based on deep learning as described above is implemented.

[0097] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. A conversation quality assessment method based on deep learning, characterized by: First, construct a dialogue corpus, which includes user dialogues D and multiple candidate responses R; Then, the dialogue data is used to train a dialogue quality assessment deep learning model M, which evaluates the quality of candidate replies from four aspects: the fluency of the reply, the semantic relevance of the reply to the user dialogue D, the positive emotional guidance of the reply to the user dialogue D, and the contextual logical consistency of the reply to the user dialogue D. Finally, the fluency result P of the reply is calculated by A , the result P of the relevance of the reply to the user conversation D B , reply to the positive sentiment guidance result P of user dialogue D C , linearly fuse the reply with the contextual logic consistency result PD of the user dialogue D, and select the candidate reply with the highest score as the final reply of the user dialogue D; When evaluating the quality of candidate responses based on the fluency of the responses, it includes evaluating N candidate responses R = {r1, r2, ..., r N }, r u Denote each candidate response, u=1,2,...N, calculate the candidate response r i The confusion degree is used to score the fluency of the candidate responses. The implementation method is as follows: The candidate reply r u After word segmentation, we get an input text r of length m u =[x1, x2, ..., x m ], calculate the confusion PPL (r u )as follows: where x1, x2, ..., x m For the individual words that make up a sentence; Among them, q(x i |x i-1 , x i-2 , ..., x1) can be obtained from the language model, which is the distribution q(x) of the probability that the i+1th word may appear given the first i words of a sentence. i |x i-1 , x i-2 , ..., x1); In order to map the perplexity value to around 0 to 1, a standardized calculation is performed: P.S A 1-(PPL(r u )-mu) / sigma Among them, mu and sigma are fixed values, P A Score the fluency of the responses; When evaluating the semantic relevance between a reply and a user conversation D, for each of the N candidate replies R, the semantic relevance between the candidate reply and the user conversation is scored by calculating the semantic similarity between the user conversation D and each candidate reply ri. The implementation is as follows: For user dialogue D and candidate response r u Perform word segmentation and obtain n words w1, w2, ..., w n and m words x1, x2, ..., x m , and preprocessing is performed, including adding the label [CLS] at the beginning, to obtain D = [[CLS], w1, w2, ..., w n ] and r u =[[CLS],x1,x2,...,x m ], and then use the word embedding method to get the word vector sequence and The vectors corresponding to the two [CLS] flags in the input text, e wj Represents the word vector of the jth word in the user conversation D, e xi Represents the candidate response r u The word vector of the i-th word in D, i = 1, 2, ... m, j = 1, 2, ... n; e and r ue Input them into the BERT model respectively, and get the output of BERT by calculation The outputs of the two [CLS] flags correspond to the conversation semantics of the user conversation and the candidate reply. Cosine similarity gives user dialogue D and candidate response r u The semantic similarity is scored as follows: Among them, cos( ) represents cosine similarity, P B For user dialogue D and candidate response r u The semantic relevance scoring results of When evaluating the positive emotional guidance of the reply to the user dialogue D, it includes formulating the emotional guidance rules of the candidate replies to the user dialogue D for N candidate replies R, and scoring each candidate reply according to the rule. The implementation method is as follows: The conversation emotion recognition model is used to identify the user dialogue D and each candidate response r i Scoring is performed to obtain the probability distribution of dialogue sentiment polarity [P(neutral), P(positive), P(negative)], where P(neutral), P(positive), and P(negative) represent the probabilities of neutral, positive, and negative sentiments, respectively. The sentiment scores are calculated as follows: Score D =[0.05*P(middle)+1*P(positive)-1*P(negative)]*100 Among them, Score D represents the sentiment score of the user conversation, represents the sentiment score of the i-th candidate response; The scoring rules for calculating the positive sentiment guidance of the reply to the user dialogue D are as follows: When the user dialogue sentiment score D <0, and hour:. P C =-(Score t -num) / sigma Among them, abs() means to find the absolute value, Score t Score D and The emotional distance, num and sigma are constants, P C is the positive sentiment guidance score of the reply to the user dialogue D; When the user dialogue sentiment score D <0, and hour: P C =0 When the user dialogue sentiment score D ≥0: When evaluating the logical consistency of the reply with the context of the user conversation D, it includes evaluating the N candidate replies R by calculating the user conversation D and by calculating the consistency of each candidate reply r u The logical consistency of the context is scored for the logical consistency of the candidate responses. The implementation method is as follows: Segment the user dialogue D and the candidate responses ru to obtain D = [w1, w2, ..., w n ] and r u =[x1, x2, ..., x m ], preprocess the text to get the input text I = [[CLS], w1, w2, ..., w n , [SEP], x1, x2, ..., x m ], [CLS] is the start mark, and [SEP] is the paragraph separator, which are used to separate the user dialogue D and the candidate reply r respectively. u ; Then, use the word embedding method to get the word vector sequence I e =[e cls , e w1 , e w2 ,…,e wn , e sep , e x1 , e x2 ,…,e xm ],e wj Represents the word vector of the jth word in the user conversation, e xi Represents the candidate response r u The word vector of the i-th word in , i = 1, 2, ... m, j = 1, 2, ... n; Sequence I e Input to the BERT model, h cls The output corresponding to the [CLS] flag is used to calculate whether two sentences have contextual logical consistency. The specific implementation process is as follows: y =softmax(W l h cls ) Where W l represents the trainable parameters of the fully connected network layer, and softmax represents the activation function. h is trained by the fully connected layer and the softmax activation function. cls Perform activation function processing to calculate D and r u is the probability distribution y of contextual logic consistency; finally, the probability of logical consistency between user dialogue and candidate reply is selected as P D .

2. The method for evaluating conversation quality based on deep learning according to claim 1, characterized in that: The fluency result P of the candidate response A , the result P of the relevance of the reply to the user conversation D B , reply to the positive sentiment guidance result P of user dialogue D C , reply to the contextual logic consistency result P of the user dialogue D D Perform linear fusion and select the candidate response with the highest score among multiple candidate responses as the final response corresponding to dialogue D.

3. A conversation quality assessment system based on deep learning, characterized by: Used to implement a conversation quality assessment method based on deep learning as described in any one of claims 1-2.

4. The deep learning-based dialogue quality assessment system according to claim 3, characterized in that: It includes a processor and a memory, the memory is used to store program instructions, and the processor is used to call the stored instructions in the memory to execute a conversation quality assessment method based on deep learning as described in any one of claims 1-2.

5. The deep learning-based dialogue quality assessment system according to claim 3, characterized in that: It includes a readable storage medium, on which a computer program is stored. When the computer program is executed, a conversation quality assessment method based on deep learning as described in any one of claims 1-2 is implemented.