Intelligent conversation method, system and medium based on graph neural network

Through the intelligent conversation method based on graph neural network, the problem of intelligent outbound call robots being unable to flexibly adjust their conversational skills has been solved. It has been able to flexibly respond to customer intentions and emotions, improving conversation quality and order results.

CN113239147BActive Publication Date: 2024-09-24PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110516335.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-12
Publication Date
2024-09-24
Estimated Expiration
2041-05-12

AI Technical Summary

Technical Problem

Existing intelligent outbound call robots cannot flexibly adjust to the customer's intentions and emotional tendencies in the process of choosing words, resulting in poor effectiveness in promoting the intentions of potential customers.

Method used

An intelligent conversation method based on graph neural network is used to obtain customer semantic information, response skills and order results, convert them into nodes in the form of vectors, and input them into the graph neural network model for training, predicting the best conversation path to improve customer intention screening Possibility of closing a deal.

Benefits of technology

It significantly improves the conversation quality of intelligent robots, improves customer satisfaction, enhances the order promotion for high-intention customers, and maximizes the possibility of order completion for unintentional and low-intention customers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113239147B
    Figure CN113239147B
Patent Text Reader

Abstract

The present application provides an intelligent conversation method and system based on graph neural network, which obtains customer semantic information, customer response dialogue and customer order results according to customer conversation text data; according to customer semantic information, customer response dialogue and customer order results, through pre-training language model, customer semantic nodes, customer response dialogue nodes, customer order nodes and adjacency matrix between nodes are converted in vector form; customer semantic nodes, customer response dialogue nodes, customer order nodes and adjacency matrix between nodes are input into graph neural network model for training to obtain trained graph neural network model; current conversation data is input into trained graph neural network model to obtain response conversation path. The present application analyzes customer speech while talking with customers, and predicts the best path with order as the end point in combination with different speech paths of the intelligent robot itself.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of intelligent conversation technology, and specifically, relates to an intelligent conversation method, system and medium based on graph neural network. Background Art

[0002] The intelligent robot outbound call system is a practical application of natural language processing technology and has been widely used in marketing, return visits, customer service and other service scenarios. Compared with traditional manual outbound calls, the intelligent robot outbound call system has the advantages of lower operating and management costs and higher work efficiency. In terms of outbound call results, especially in the screening of potential customers in telemarketing scenarios, it can also be close to or even better than manual outbound calls. Therefore, in the field of telemarketing, an industrial model has been formed that uses intelligent robot outbound call systems to make extensive outbound calls and screen customers with strong intentions, and then manual agents follow up and close orders.

[0003] Existing intelligent outbound call robots mostly adopt a model that combines automatic speech recognition ASR, natural language processing NLP and text-to-speech TTS. That is, the customer's voice is first converted into text data through ASR, and then the text is processed by NLP technology. The customer's intention is inferred based on its content, and the corresponding response dialogue is selected from the corpus. Then the response dialogue is converted into voice information for broadcast through TTS technology.

[0004] At present, in the process of selecting response dialogues, after the existing system processes the customer's voice and matches the corresponding features, it often arranges the robot's dialogues according to the inherent process work order and dialogue knowledge base. The response dialogues are relatively rigid and cannot be flexibly changed according to the customer's intentions and emotional tendencies to enhance the potential customer's intentions and ultimately promote the transaction.

[0005] On the other hand, existing technologies mostly use fixed process work orders and corpora in combination with traditional machine learning methods or artificial neural networks and other technologies to achieve real-time communication between humans and machines, but they are often not very effective in predicting and building structured data such as conversation strategies and paths. Summary of the invention

[0006] The present invention proposes an intelligent conversation method, system and medium based on graph neural network, aiming to solve the problem that existing intelligent conversation techniques are relatively rigid and cannot be flexibly changed according to customers' intentions and emotional tendencies.

[0007] According to a first aspect of an embodiment of the present application, an intelligent conversation method based on a graph neural network is provided, which specifically includes the following steps:

[0008] Based on the customer conversation text data, obtain customer semantic information, customer response language and customer order results;

[0009] According to customer semantic information, customer response dialogue and customer order results, the pre-trained language model is used to convert customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes in vector form;

[0010] Input customer semantic nodes, customer response dialogue nodes, customer order nodes, and the adjacency matrix between nodes into the graph neural network model for training to obtain a trained graph neural network model;

[0011] Input the current session data into the trained graph neural network model to obtain the response session path.

[0012] In some implementations of the present application, obtaining customer semantic information, customer response dialogue, and customer order results based on customer conversation text data specifically includes:

[0013] According to the customer conversation text data, the customer conversation text data is divided into customer conversation data and respondent conversation data through text analysis;

[0014] Use the responder's session data as the client's response dialogue;

[0015] Obtain customer semantic information based on customer session data;

[0016] According to the customer-side conversation data and / or the respondent-side conversation data, the customer order-making keywords are searched, and the order-making results corresponding to the customer order-making keywords are used as the customer order-making results.

[0017] In some embodiments of the present application, customer semantic information includes customer intention information and / or customer emotion information; customer intention includes intended order type, intended order quantity, and intended order time.

[0018] In some implementations of the present application, obtaining customer intention information specifically includes:

[0019] Pre-establish a customer intent database, which includes multiple keywords, each of which corresponds to an intent message;

[0020] According to the customer's conversation data, search one by one whether the keywords in the customer intent library exist. When the keywords exist, the intent information corresponding to the keywords is used as the customer intent information.

[0021] In some implementations of the present application, obtaining customer emotion information specifically includes:

[0022] Use the preset voice excitement recognition model to identify the customer's conversation data and obtain the customer's emotional excitement;

[0023] According to the corresponding relationship between the customer's emotional excitement and the customer's emotion, the customer's emotional information is obtained.

[0024] In some embodiments of the present application, according to customer semantic information, customer response dialogue and customer order results, a pre-trained language model is used to convert customer semantic nodes, customer response dialogue nodes, customer order nodes and adjacency matrices between nodes in vector form, specifically including:

[0025] According to customer semantic information, customer response dialogue and customer order results, obtain customer semantic feature vector, customer response dialogue feature vector and customer order feature vector through neural network model;

[0026] The customer semantic feature vector, the customer response dialogue feature vector and the customer order feature vector are used as the customer semantic node, the customer response dialogue node and the customer order node respectively;

[0027] The customer semantic nodes, customer response dialogue nodes and customer order nodes are connected according to the conversation correspondence to obtain the adjacency matrix between the nodes.

[0028] In some embodiments of the present application, before obtaining customer semantic information, customer response dialogue and customer order results based on customer conversation text data, it also includes

[0029] Obtain customer conversation voice samples;

[0030] Convert customer voice samples into customer conversation text data through speech recognition technology.

[0031] According to a second aspect of an embodiment of the present application, an intelligent conversation system based on a graph neural network is provided, specifically comprising:

[0032] Customer text processing module: used to obtain customer semantic information, customer response language and customer order results based on customer conversation text data;

[0033] Pre-trained language model module: used to convert customer semantic information, customer response dialogue and customer order results into vector customer semantic nodes, customer response dialogue nodes, customer order nodes and adjacency matrix between nodes through pre-trained language model;

[0034] Graph neural network training module: used to input customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes into the graph neural network model for training, and obtain the trained graph neural network model;

[0035] Session module: used to input the current session data into the trained graph neural network model to obtain the corresponding session path.

[0036] According to a third aspect of an embodiment of the present application, there is provided an intelligent conversation device based on a graph neural network, including:

[0037] Memory: used to store executable instructions; and

[0038] Processor: used to connect to the memory to execute executable instructions to complete the intelligent conversation method based on graph neural network.

[0039] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored; the computer program is executed by a processor to implement an intelligent conversation method based on a graph neural network.

[0040] Adopt the intelligent conversation method and system based on graph neural network in the embodiment of the present application, obtain customer semantic information, customer response dialogue and customer order results according to customer conversation text data; according to customer semantic information, customer response dialogue and customer order results, convert customer semantic nodes, customer response dialogue nodes, customer order nodes and adjacency matrix between nodes in vector form through pre-trained language model; input customer semantic nodes, customer response dialogue nodes, customer order nodes and adjacency matrix between nodes into graph neural network model for training to obtain trained graph neural network model; input current conversation data into trained graph neural network model to obtain response conversation path. After the optimal conversation path prediction technology of the present application, through training with a large amount of call data, the robot analyzes customer dialogue while talking with customers, and predicts the optimal path with order as the end point in combination with the different dialogue paths of the intelligent robot itself.

[0041] At the same time, it greatly improves the conversation quality of intelligent robots, improves customer satisfaction, and enables robots to screen customer purchase intentions during conversation, promote high-intent customers to close orders, and enhance the willingness of customers with no intention or low intention, thereby maximizing the possibility of finalizing orders. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1 A schematic diagram of the steps of an intelligent conversation method based on a graph neural network according to an embodiment of the present application is shown in FIG;

[0044] Figure 2 A schematic diagram of the process of an intelligent conversation method based on a graph neural network according to an embodiment of the present application is shown in FIG;

[0045] Figure 3The schematic diagram of the principle of the neural network in the figure according to the embodiment of the present application is shown in the figure;

[0046] Figure 4 A structural schematic diagram of an intelligent conversation system based on a graph neural network according to an embodiment of the present application is shown in FIG;

[0047] Figure 5 A structural schematic diagram of an intelligent conversation device based on a graph neural network according to an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0048] In the process of implementing the present application, the inventors found that in the process of selecting response dialogues, after the existing systems process the customer's voice and match the corresponding features, they often arrange the robot's dialogues according to the inherent process work orders and dialogue knowledge base. The response dialogues are relatively rigid and cannot be flexibly changed according to the customer's intentions and emotional tendencies to enhance the potential customer's intentions and promote the final order.

[0049] Under such conditions, existing technologies mostly use fixed process work orders and corpora in combination with traditional machine learning methods or artificial neural networks to achieve real-time communication between humans and machines, but they are often not very effective in predicting and building structured data such as conversation strategies and paths.

[0050] This application uses a large amount of call data for training, so that the robot can analyze customer conversations while talking to customers, and combine the different conversation paths of the intelligent robot itself to predict the best path with closing the order as the end point.

[0051] Specifically,

[0052] The present application adopts an intelligent conversation method and system based on a graph neural network, which obtains customer semantic information, customer response dialogue and customer order results according to customer conversation text data; based on the customer semantic information, customer response dialogue and customer order results, a pre-trained language model is used to convert customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes in vector form; the customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes are input into a graph neural network model for training to obtain a trained graph neural network model; the current conversation data is input into the trained graph neural network model to obtain the response conversation path.

[0053] This application greatly improves the conversation quality of intelligent robots, improves customer satisfaction, and enables the robot to screen customer purchase intentions during conversation, promote high-intent customers to close orders, and enhance the willingness of customers with no intention or low intention, thereby maximizing the possibility of finalizing orders.

[0054] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0055] Example 1

[0056] Figure 1 A schematic diagram of the steps of an intelligent conversation method based on a graph neural network according to an embodiment of the present application is shown in FIG. Figure 2 A flow chart of an intelligent conversation method based on a graph neural network according to an embodiment of the present application is shown in the figure.

[0057] like Figure 1 As shown, the intelligent conversation method based on graph neural network in the embodiment of the present application specifically includes the following steps:

[0058] S101: Acquire customer semantic information, customer response dialogue, and customer order results based on customer conversation text data.

[0059] First, a large amount of customer conversation data is obtained, and the voice of the customer conversation is converted into customer conversation text data through speech recognition.

[0060] The speech-to-text technology in this embodiment adopts ASR technology.

[0061] Among them, ASR (Automatic Speech Recognition) is a technology that converts human speech into text.

[0062] Specifically, it is first necessary to perform pre-emphasis, frame division and windowing processing on the original speech to obtain the standard speech.

[0063] The process of obtaining standard voice is as follows:

[0064] First, the original speech is pre-emphasized using the pre-emphasis formula s'n=sn-a*sn-1 to eliminate the influence of the speaker's vocal cords and lips on the speaker's speech and improve the high-frequency resolution of the speaker's speech.

[0065] Among them, s'n is the amplitude of the speech signal at time n after pre-emphasis processing, sn is the amplitude of the speech signal at time n, sn-1 is the amplitude of the speech signal at time n-1, and a is the pre-emphasis coefficient.

[0066] Then, the original speech after pre-emphasis processing is divided into frames. When dividing into frames, there will be discontinuities at the starting point and the ending point of each frame of speech. The more frames are divided, the greater the error with the original speech.

[0067] Finally, in order to maintain the frequency characteristics of each frame of speech, windowing processing is required. The formula for windowing processing is: And s″n=wn*s′n, where wn is the Hamming window at time n, N is the length of the Hamming window, s'n is the signal amplitude in the time domain at time n, and s″n is the signal amplitude in the time domain after windowing at time n.

[0068] The above steps are used to pre-process the original customer voice to obtain the standard voice, which provides an effective data source for the subsequent endpoint detection processing of the standard voice.

[0069] Then, based on the customer conversation text data, the NLP model is used to obtain customer voice information, including customer intentions and customer emotional tendencies.

[0070] At the same time, the customer response techniques and corresponding customer order result information are obtained based on historical conversation data.

[0071] According to the customer conversation text data, obtain customer semantic information, customer response dialogue and customer order results, which specifically includes the following steps:

[0072] Firstly, based on the customer conversation text data, the customer conversation text data is divided into customer conversation data and respondent conversation data through text analysis.

[0073] Then, the responder's conversation data is used as the customer's response term; the customer's semantic information is obtained based on the customer's conversation data. At the same time, the customer's order keywords are searched based on the customer's conversation data and / or the responder's conversation data, and the order results corresponding to the customer's order keywords are used as the customer's order results.

[0074] In this embodiment, customer semantic information specifically includes customer intention information and / or customer emotion information; wherein, customer intention information further includes intended order type, intended order quantity and intended order time.

[0075] Among them, customer intention information can be obtained by building a customer intention lexicon in advance, and customer emotion information can be obtained through a customer emotion lexicon, or by detecting the customer's emotional excitement at the same time.

[0076] Specifically, obtaining customer intention information includes:

[0077] 1) Establish a customer intent database in advance. The customer intent database includes multiple keywords, and each keyword corresponds to an intent information.

[0078] 2) Based on the customer's conversation data, search the customer intent library one by one to see if the keywords exist. If the keywords exist, use the intent information corresponding to the keywords as the customer intent information.

[0079] Specifically, obtaining customer emotional information includes:

[0080] First, the customer's conversation data is identified using a preset voice excitement recognition model to obtain the customer's emotional excitement. Then, the customer's emotional information is obtained based on the corresponding relationship between the customer's emotional excitement and the customer's emotion.

[0081] Specifically, the customer's emotional agitation level needs to be recognized through a voice agitation level recognition model.

[0082] Furthermore, when the speech excitement level recognition is performed by the speech excitement level recognition model, the specific training process of the speech excitement level recognition model is as follows:

[0083] First, the customer's original voice information is converted into a spectrogram and the spectrogram features are extracted. Compared with other feature extraction algorithms, the spectrogram contains more original voice information including time, frequency, amplitude and other information.

[0084] Then, the model is trained and tested. The deep neural network model is trained using the matching input data and the corresponding arousal category labels. The trained model predicts the unlabeled multimodal input data. Finally, the probability value of the arousal prediction can be obtained based on the trained model.

[0085] Specifically, customer emotion information can be obtained through the customer emotion lexicon. For example, customer emotions include complaints, anger, disgust, or anxiety, and each voice emotion can be expressed through a variety of words.

[0086] Therefore, firstly, a library of correspondence between keywords and speech emotions is established; then, keywords in the emotion library are identified based on the text recognition data; finally, the speech emotions corresponding to the keywords are obtained.

[0087] For example:

[0088] The keywords corresponding to complaining emotions include: no, not good, too bad, rubbish, what kind of service, never again, complaint, difficult to use, etc.

[0089] The keywords corresponding to anger emotions include: want to die, hot to death, so stinky, so rotten, extremely rotten, etc.

[0090] The keywords corresponding to the emotion of disgust include: nausea, vomiting, nausea, messy, poor quality, etc.

[0091] The keywords corresponding to anxious emotions include: immediately, immediately, not yet, hurry up, anxious, and anxious to death, etc.

[0092] S102: Based on customer semantic information, customer response dialogue and customer order results, a pre-trained language model is used to convert customer semantic nodes, customer response dialogue nodes, customer order nodes and an adjacency matrix between nodes into vector form.

[0093] Specifically, the process includes the following:

[0094] a) According to customer semantic information, customer response dialogue and customer order results, the customer semantic feature vector, customer response dialogue feature vector and customer order feature vector are obtained through the neural network model.

[0095] b) The customer semantic feature vector, the customer response dialogue feature vector and the customer order feature vector are used as the customer semantic node, the customer response dialogue node and the customer order node respectively.

[0096] c) Connect the customer semantic nodes, customer response dialogue nodes and customer order nodes according to the conversation correspondence to obtain the adjacency matrix between the nodes.

[0097] For example, the conversation history {U1, U2, U3, ...UM} consists of M sentences. For each sentence Ui, the pre-trained Glove method is first used to convert each word in Ui into a corresponding word vector to obtain a vector sequence, which is sequentially input into the lower recurrent neural network, and the final state output of the network is taken as the feature vector hi of the current sentence, and then the feature encoding of each sentence {h1, h2, h3, ...hM} is obtained. Then it is input into the upper recurrent neural network for further encoding to obtain the feature vector hD at the conversation level, and finally used as the semantic node X of the entire conversation.

[0098] Then, the adjacency matrix A between nodes is constructed based on the real data.

[0099] The robot speech node is the customer response dialogue node. In some embodiments of the present application, customer semantic information and customer response dialogue are obtained based on customer conversation text data, and the customer order results are also obtained. The customer order results correspond one-to-one with the customer response dialogue.

[0100] S103: Input the customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes into the graph neural network model for training to obtain a trained graph neural network model.

[0101] S104: Input the current session data into the trained graph neural network model to obtain the response session path.

[0102] Based on the customer response conversation history information, a heterogeneous graph containing customer semantic nodes and customer response dialogue nodes can be constructed to predict the optimal conversation response path.

[0103] Figure 3 The figure shows a schematic diagram of the principle of the neural network according to the embodiment of the present application.

[0104] The graph neural network model GNN includes an encoder and a decoder. The input data of the encoder is customer semantic nodes, customer response dialogue nodes and adjacency matrices between nodes in vector form, and the output data of the encoder is graph embedding; the input data of the decoder is graph embedding, and the output data of the decoder is a reconstructed graph, which is the response conversation path, i.e., the conversation path graph.

[0105] like Figure 3 As shown in the figure, the graph neural network model used for path connection prediction uses a variational graph autoencoder (VGAE). The network is divided into two parts: an encoder and a decoder. The encoder takes a curve graph consisting of graph nodes X and an adjacency matrix A as input data, and outputs a graph embedding Z. The decoder takes the graph embedding Z as input, and outputs a reconstructed graph.

[0106] Specifically, the input data is passed through two multi-layer graph convolutional networks (GCN) to obtain the mean and variance of the multi-dimensional Gaussian distribution of the graph embedding:

[0107] μ=GCN μ (X,A); logσ=GCN σ (X,A);

[0108] Where X is a customer semantic node, a customer response dialogue node and / or an order result node; A is an adjacency matrix between nodes.

[0109] After obtaining the mean μ and variance μ, we sample ∈ from the standard Gaussian normal distribution, and the encoder outputs the graph embedding Z = μ + ∈σ; during reconstruction, the decoder is the inner product of the graph embedding, that is,

[0110] Specifically, during training, the variational graph autoencoder VGAE hopes that the reconstructed image is as close to the original image as possible, and at the same time hopes that the distribution q(Z|X,A) calculated by the multi-layer graph convolutional network GCN is as similar as possible to the standard Gaussian distribution p(Z), so the loss function By cross entropy And relative entropy KL divergence, the specific calculation method is:

[0111]

[0112] Finally, the trained graph neural network model is obtained. The output data obtained through the graph neural network processing is a graph composed of the connection relationships between the above nodes, which may include multiple paths from the current session state to the result that can be sold. After using massive training samples to train the graph neural network model and fine-tune the hyperparameters, the model can output an optimal path from the current session state to the result that can be sold.

[0113] Finally, the model predicts the best path for subsequent conversations, and the robot selects the words to communicate with customers according to the predicted best path, thereby maximizing the possibility of closing a deal.

[0114] The intelligent conversation method based on graph neural network in the embodiment of the present application obtains customer semantic information, customer response dialogue and customer order results according to customer conversation text data; according to the customer semantic information, customer response dialogue and customer order results, through a pre-trained language model, the customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between the nodes are converted into vector form; the customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between the nodes are input into the graph neural network model for training to obtain the trained graph neural network model; the current conversation data is input into the trained graph neural network model to obtain the response conversation path.

[0115] After the best conversation path prediction technology of this application is applied, through training with a large amount of call data, the robot can analyze the customer's speech while talking to the customer, and combine the different speech paths of the intelligent robot itself to predict the best path with the order as the end point.

[0116] At the same time, it greatly improves the conversation quality of intelligent robots, improves customer satisfaction, and enables robots to screen customer purchase intentions during conversation, promote high-intent customers to close orders, and enhance the willingness of customers with no intention or low intention, thereby maximizing the possibility of finalizing orders.

[0117] Example 2

[0118] This embodiment provides an intelligent conversation system based on a graph neural network. For details not disclosed in the intelligent conversation system based on a graph neural network in this embodiment, please refer to the specific implementation content of the intelligent conversation method based on a graph neural network in other embodiments.

[0119] Figure 4 A structural schematic diagram of an intelligent conversation system based on a graph neural network according to an embodiment of the present application is shown in the figure.

[0120] like Figure 4As shown, the intelligent conversation system based on graph neural network of an embodiment of the present application specifically includes a customer text processing module 10, a pre-trained language model module 20, a graph neural network training module 30 and a conversation module 40.

[0121] Specifically,

[0122] Customer text processing module 10: used to obtain customer semantic information, customer response dialogue and customer order results based on customer conversation text data.

[0123] First, a large amount of customer conversation data is obtained, and the voice of the customer conversation is converted into customer conversation text data through speech recognition.

[0124] The speech-to-text technology in this embodiment adopts ASR technology.

[0125] Among them, ASR (Automatic Speech Recognition) is a technology that converts human speech into text.

[0126] Specifically, it is first necessary to perform pre-emphasis, frame division and windowing processing on the original speech to obtain the standard speech.

[0127] Obtaining standard voice provides an effective data source for subsequent endpoint detection processing of the standard voice.

[0128] Then, based on the customer conversation text data, the NLP model is used to obtain customer voice information, including customer intentions and customer emotional tendencies.

[0129] At the same time, the customer response techniques and corresponding customer order result information are obtained based on historical conversation data.

[0130] According to the customer conversation text data, obtain customer semantic information, customer response dialogue and customer order results, which specifically includes the following steps:

[0131] Firstly, based on the customer conversation text data, the customer conversation text data is divided into customer conversation data and respondent conversation data through text analysis.

[0132] Then, the responder's conversation data is used as the customer's response term; the customer's semantic information is obtained based on the customer's conversation data. At the same time, the customer's order keywords are searched based on the customer's conversation data and / or the responder's conversation data, and the order results corresponding to the customer's order keywords are used as the customer's order results.

[0133] In this embodiment, customer semantic information specifically includes customer intention information and / or customer emotion information; wherein, customer intention information further includes intended order type, intended order quantity and intended order time.

[0134] Among them, customer intention information can be obtained by building a customer intention lexicon in advance, and customer emotion information can be obtained through a customer emotion lexicon, or by detecting the customer's emotional excitement at the same time.

[0135] Specifically, obtaining customer intention information includes:

[0136] 1) Establish a customer intent database in advance. The customer intent database includes multiple keywords, and each keyword corresponds to an intent information.

[0137] 2) Based on the customer's conversation data, search the customer intent library one by one to see if the keywords exist. If the keywords exist, use the intent information corresponding to the keywords as the customer intent information.

[0138] Specifically, obtaining customer emotional information includes:

[0139] First, the customer's conversation data is identified using a preset voice excitement recognition model to obtain the customer's emotional excitement. Then, the customer's emotional information is obtained based on the corresponding relationship between the customer's emotional excitement and the customer's emotion.

[0140] Specifically, the customer's emotional agitation level needs to be recognized through a voice agitation level recognition model.

[0141] Furthermore, when the speech excitement level recognition is performed by the speech excitement level recognition model, the specific training process of the speech excitement level recognition model is as follows:

[0142] First, the customer's original voice information is converted into a spectrogram and the spectrogram features are extracted. Compared with other feature extraction algorithms, the spectrogram contains more original voice information including time, frequency, amplitude and other information.

[0143] Then, the model is trained and tested. The deep neural network model is trained using the matching input data and the corresponding arousal category labels. The trained model predicts the unlabeled multimodal input data. Finally, the probability value of the arousal prediction can be obtained based on the trained model.

[0144] Specifically, customer emotion information can be obtained through the customer emotion lexicon. For example, customer emotions include complaints, anger, disgust, or anxiety, and each voice emotion can be expressed through a variety of words.

[0145] Therefore, firstly, a library of correspondence between keywords and speech emotions is established; then, keywords in the emotion library are identified based on the text recognition data; finally, the speech emotions corresponding to the keywords are obtained.

[0146] Pre-trained language model module 20: used to convert customer semantic information, customer response dialogue and customer order results into vector customer semantic nodes, customer response dialogue nodes, customer order nodes and adjacency matrix between nodes through pre-trained language model.

[0147] Specifically, the process includes the following:

[0148] a) According to customer semantic information, customer response dialogue and customer order results, the customer semantic feature vector, customer response dialogue feature vector and customer order feature vector are obtained through the neural network model.

[0149] b) The customer semantic feature vector, the customer response dialogue feature vector and the customer order feature vector are used as the customer semantic node, the customer response dialogue node and the customer order node respectively.

[0150] c) Connect the customer semantic nodes, customer response dialogue nodes and customer order nodes according to the conversation correspondence to obtain the adjacency matrix between the nodes.

[0151] For example, the conversation history {U1, U2, U3, ...UM} consists of M sentences. For each sentence Ui, the pre-trained Glove method is first used to convert each word in Ui into a corresponding word vector to obtain a vector sequence, which is sequentially input into the lower recurrent neural network, and the final state output of the network is taken as the feature vector hi of the current sentence, and then the feature encoding of each sentence {h1, h2, h3, ...hM} is obtained. Then it is input into the upper recurrent neural network for further encoding to obtain the feature vector hD at the conversation level, and finally used as the semantic node X of the entire conversation.

[0152] Then, the adjacency matrix A between nodes is constructed based on the real data.

[0153] The robot speech node is the customer response dialogue node. In some embodiments of the present application, customer semantic information and customer response dialogue are obtained based on customer conversation text data, and the customer order results are also obtained. The customer order results correspond one-to-one with the customer response dialogue.

[0154] Graph neural network training module 30: used to input customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes into the graph neural network model for training to obtain a trained graph neural network model.

[0155] Conversation module 40: used to input current conversation data into the trained graph neural network model to obtain a corresponding conversation path.

[0156] Based on the customer response conversation history information, a heterogeneous graph containing customer semantic nodes and customer response dialogue nodes can be constructed to predict the optimal conversation response path.

[0157] Figure 3 The figure shows a schematic diagram of the principle of the neural network according to the embodiment of the present application.

[0158] The graph neural network model GNN includes an encoder and a decoder. The input data of the encoder is customer semantic nodes, customer response dialogue nodes and adjacency matrices between nodes in vector form, and the output data of the encoder is graph embedding; the input data of the decoder is graph embedding, and the output data of the decoder is a reconstructed graph, which is the response conversation path, i.e., the conversation path graph.

[0159] like Figure 3 As shown in the figure, the graph neural network model used for path connection prediction uses a variational graph autoencoder (VGAE). The network is divided into two parts: an encoder and a decoder. The encoder takes a curve graph consisting of graph nodes X and an adjacency matrix A as input data, and outputs a graph embedding Z. The decoder takes the graph embedding Z as input, and outputs a reconstructed graph.

[0160] Specifically, the input data is passed through two multi-layer graph convolutional networks (GCN) to obtain the mean and variance of the multi-dimensional Gaussian distribution of the graph embedding:

[0161] μ=GCN μ (X,A); logσ=GCN σ (X,A);

[0162] Where X is a customer semantic node, a customer response dialogue node and / or an order result node; A is an adjacency matrix between nodes.

[0163] After obtaining the mean μ and variance μ, we sample ∈ from the standard Gaussian normal distribution, and the encoder outputs the graph embedding Z = μ + ∈σ; during reconstruction, the decoder is the inner product of the graph embedding, that is,

[0164] Specifically, during training, the variational graph autoencoder VGAE hopes that the reconstructed image is as close to the original image as possible, and at the same time hopes that the distribution q(Z|X,A) calculated by the multi-layer graph convolutional network GCN is as similar as possible to the standard Gaussian distribution p(Z), so the loss function By cross entropy And relative entropy KL divergence, the specific calculation method is:

[0165]

[0166] Finally, the trained graph neural network model is obtained. The output data obtained through the graph neural network processing is a graph composed of the connection relationships between the above nodes, which may include multiple paths from the current session state to the result that can be sold. After using massive training samples to train the graph neural network model and fine-tune the hyperparameters, the model can output an optimal path from the current session state to the result that can be sold.

[0167] Finally, the model predicts the best path for subsequent conversations, and the robot selects the words to communicate with customers according to the predicted best path, thereby maximizing the possibility of closing a deal.

[0168] In the intelligent conversation system based on graph neural network in the embodiment of the present application, the customer text processing module 10 obtains customer semantic information, customer response dialogue and customer order results according to the customer conversation text data; the pre-trained language model module 20 converts the customer semantic information, customer response dialogue and customer order results into vector form of customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes through the pre-trained language model; the graph neural network training module 30 inputs the customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes into the graph neural network model for training to obtain the trained graph neural network model; the conversation module 40 inputs the current conversation data into the trained graph neural network model to obtain the response conversation path.

[0169] After the best conversation path prediction technology of this application is applied, through training with a large amount of call data, the robot can analyze the customer's speech while talking to the customer, and combine the different speech paths of the intelligent robot itself to predict the best path with the order as the end point.

[0170] At the same time, it greatly improves the conversation quality of intelligent robots, improves customer satisfaction, and enables robots to screen customer purchase intentions during conversation, promote high-intent customers to close orders, and enhance the willingness of customers with no intention or low intention, thereby maximizing the possibility of finalizing orders.

[0171] Example 3

[0172] This embodiment provides an intelligent conversation device based on a graph neural network. For details not disclosed in the intelligent conversation device based on a graph neural network in this embodiment, please refer to the specific implementation content of the intelligent conversation method or system based on a graph neural network in other embodiments.

[0173] Figure 5 A structural schematic diagram of an intelligent conversation device 400 based on a graph neural network according to an embodiment of the present application is shown in FIG.

[0174] like Figure 5As shown, the intelligent conversation device 400 includes:

[0175] Memory 402: used to store executable instructions; and

[0176] Processor 401: used to connect with memory 402 to execute executable instructions to complete the motion vector prediction method.

[0177] Those skilled in the art will understand that Figure 5 The smart conversation device 400 is merely an example and does not constitute a limitation of the smart conversation device 400 . The smart conversation device 400 may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, the smart conversation device 400 may also include input and output devices, network access devices, buses, etc.

[0178] The processor 401 (Central Processing Unit, CPU) may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor 401 may also be any conventional processor, etc. The processor 401 is the control center of the intelligent conversation device 400, and uses various interfaces and lines to connect various parts of the entire intelligent conversation device 400.

[0179] The memory 402 can be used to store computer-readable instructions. The processor 401 implements various functions of the intelligent conversation device 400 by running or executing the computer-readable instructions or modules stored in the memory 402 and calling the data stored in the memory 402. The memory 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the intelligent conversation device 400, etc. In addition, the memory 402 can include a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM) or other non-volatile / volatile storage devices.

[0180] If the modules integrated in the intelligent conversation device 400 are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware to complete through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium, and when the computer-readable instructions are executed by the processor, the steps of the above-mentioned various method embodiments can be implemented.

[0181] Example 4

[0182] This embodiment provides a computer-readable storage medium on which a computer program is stored; the computer program is executed by a processor to implement the intelligent conversation method based on graph neural network in other embodiments.

[0183] The intelligent conversation device and computer storage medium based on graph neural network in the embodiments of the present application obtain customer semantic information, customer response dialogue and customer order results based on customer conversation text data; convert customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes in vector form through a pre-trained language model based on the customer semantic information, customer response dialogue and customer order results; input the customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between nodes into the graph neural network model for training to obtain the trained graph neural network model; input the current conversation data into the trained graph neural network model to obtain the response conversation path.

[0184] After the best conversation path prediction technology of this application is applied, through training with a large amount of call data, the robot can analyze the customer's speech while talking to the customer, and combine the different speech paths of the intelligent robot itself to predict the best path with the order as the end point.

[0185] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0186] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0187] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0188] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0189] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "an", "the" and "the" used in the present invention 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 herein refers to and includes any or all possible combinations of one or more associated listed items.

[0190] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these 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 the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. 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".

[0191] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0192] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An intelligent conversation method based on graph neural network, characterized in that: Specifically include: Based on the customer conversation text data, obtain customer semantic information, customer response language and customer order results; According to the customer semantic information, customer response dialogue and customer order results, the customer semantic nodes, customer response dialogue nodes, customer order nodes and the adjacency matrix between the nodes are converted into vector forms through the pre-trained language model; Inputting the customer semantic node, the customer response dialogue node, the customer order node, and the adjacency matrix between the nodes into the graph neural network model for training to obtain a trained graph neural network model; Inputting the current session data into the trained graph neural network model to obtain a response session path; Among them, the customer semantic information, customer response dialogue and customer order results are converted into customer semantic nodes, customer response dialogue nodes, customer order nodes and adjacency matrices in vector form through a pre-trained language model, specifically including: According to the customer semantic information, customer response dialogue and customer order results, a customer semantic feature vector, a customer response dialogue feature vector and a customer order feature vector are obtained through a neural network model; The customer semantic feature vector, the customer response dialogue feature vector and the customer order feature vector are used as a customer semantic node, a customer response dialogue node and a customer order node respectively; Connecting the customer semantic nodes, customer response dialogue nodes and customer order nodes according to the conversation correspondence relationship to obtain an adjacency matrix between the nodes; The obtaining of customer semantic information, customer response dialogue and customer order results based on customer conversation text data specifically includes: According to the customer conversation text data, the customer conversation text data is divided into customer conversation data and respondent conversation data through text analysis; Using the responder session data as the client response dialogue; Acquire customer semantic information according to the customer-side conversation data, wherein the customer semantic information includes customer intention information and customer emotion information, and the customer intention information includes the intended order type, intended order quantity, and intended order time; According to the customer-side conversation data and / or the respondent-side conversation data, the customer order-making keywords are searched, and the order-making results corresponding to the customer order-making keywords are used as the customer order-making results.

2. The intelligent conversation method according to claim 1, characterized in that: Obtaining customer intent information specifically includes: Pre-establish a customer intent lexicon, wherein the customer intent lexicon includes a plurality of keywords, each keyword corresponding to an intent information; According to the customer conversation data, the keywords of the customer intention lexicon are searched one by one to see whether they exist. When the keywords exist, the intention information corresponding to the keywords is used as the customer intention information.

3. The intelligent conversation method according to claim 1, characterized in that: Acquiring customer emotional information specifically includes: Using a preset voice excitement recognition model to identify the customer's conversation data, and obtain the customer's emotional excitement; According to the corresponding relationship between the customer's emotional excitement and the customer's emotion, the customer's emotional information is obtained.

4. The intelligent conversation method according to claim 1, characterized in that: Before obtaining customer semantic information, customer response dialogue and customer order results based on customer conversation text data, it also includes Obtain customer conversation voice samples; The customer conversation voice sample is converted into customer conversation text data through speech recognition technology.

5. An intelligent conversation system based on graph neural network, characterized in that: Specifically include: Customer text processing module: used to obtain customer semantic information, customer response language and customer order results based on customer conversation text data; Pre-trained language model module: used to convert the customer semantic information, customer response dialogue and customer order results into vector customer semantic nodes, customer response dialogue nodes, customer order nodes and adjacency matrix between nodes through pre-trained language model; A graph neural network training module is used to input the customer semantic nodes, customer response dialogue nodes, customer order nodes, and the adjacency matrix between the nodes into the graph neural network model for training to obtain a trained graph neural network model; Conversation module: used to input current conversation data into the trained graph neural network model to obtain a corresponding conversation path; The pre-trained language model module specifically includes: According to the customer semantic information, customer response dialogue and customer order results, a customer semantic feature vector, a customer response dialogue feature vector and a customer order feature vector are obtained through a neural network model; The customer semantic feature vector, the customer response dialogue feature vector and the customer order feature vector are used as a customer semantic node, a customer response dialogue node and a customer order node respectively; Connecting the customer semantic nodes, customer response dialogue nodes and customer order nodes according to the conversation correspondence relationship to obtain an adjacency matrix between the nodes; The obtaining of customer semantic information, customer response dialogue and customer order results based on customer conversation text data specifically includes: According to the customer conversation text data, the customer conversation text data is divided into customer conversation data and respondent conversation data through text analysis; Using the responder session data as the client response dialogue; Acquire customer semantic information according to the customer-side conversation data, wherein the customer semantic information includes customer intention information and customer emotion information, and the customer intention information includes the intended order type, intended order quantity, and intended order time; According to the customer-side conversation data and / or the respondent-side conversation data, the customer order-making keywords are searched, and the order-making results corresponding to the customer order-making keywords are used as the customer order-making results.

6. An intelligent conversation device based on graph neural network, characterized in that: include: Memory: used to store executable instructions; as well as Processor: used to connect to the memory to execute the executable instructions to complete the intelligent conversation method based on graph neural network as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that: A computer program is stored thereon; the computer program is executed by a processor to implement the intelligent conversation method based on a graph neural network as described in any one of claims 1-4.