A multilingual dialogue method for intelligent customer service

Through the native region inference model and neural network technology, the intelligent customer service system can accurately identify the user's language in a multilingual environment, provide personalized services, solve the problem of inaccurate user questions and answers in the multilingual intelligent question and answer system, and improve the user experience. experience and system accuracy, reducing costs.

CN118364069BActive Publication Date: 2024-10-15CHINA SOUTHERN POWER GRID ARTIFICIAL INTELLIGENCE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410364978.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-28
Publication Date
2024-10-15
Estimated Expiration
2044-03-28

AI Technical Summary

Technical Problem

It is difficult for intelligent question and answer systems to accurately identify user questions and provide accurate answers in a multilingual environment, resulting in reduced user experience and increased costs.

Method used

The native region inference model is used, combined with the user's geographical location information, to determine the user's preferred language, and a neural network is used for model training to achieve multilingual dialogue processing of voice and text, and provide personalized services.

Benefits of technology

It improves the accuracy and user experience of multilingual conversations, reduces the cost of manual customer service, and enhances the accuracy of language recognition and system accuracy through continuous optimization of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364069B_ABST
    Figure CN118364069B_ABST
Patent Text Reader

Abstract

The present application provides a multilingual dialogue method for intelligent customer service, which relates to the field of intelligent voice technology. The operation steps of the method include: receiving user input, processing and parsing the input; inputting the user's text description or voice description, and geographic location information into the native region inference model, using the native region inference model, the system infers the user's native region, determines the user's preferred language, and obtains the user's native region prediction result; according to the determined language, subsequent dialogue processing is performed, and personalized services or answers are provided according to the user's native region and geographic location information, and the user's native language is used for communication or local relevant information is provided. Through the native region inference model, the present application can support multi-language dialogues, including using the user's native language to communicate and provide local relevant information, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent voice technology, and in particular to an intelligent customer service multilingual dialogue method. Background Art

[0002] The intelligent question-answering system mainly consists of three parts: question understanding, knowledge retrieval, and answer generation. Question understanding includes question classification and keyword extraction. Knowledge retrieval includes structured and unstructured information retrieval. Answer generation includes answer extraction and answer verification. The core issue is to deal with the understanding of the question and the degree of match between the question and the answer.

[0003] Especially for voice dialogue intelligent question-and-answer systems, more and more users are using intelligent voice customer service nowadays. Due to regional reasons, there is a big gap in languages ​​between users in different regions. Multi-language recognition brings difficulties to the intelligent question-and-answer system in both identifying and answering users' questions. There are problems such as high difficulty in recognition and incorrect input of user questions. Answering users' questions on this basis can easily lead to deviations from the user's ideal answers, and there is a problem of inaccurate output answers.

[0004] Therefore, this application specifically proposes an intelligent customer service multilingual dialogue method to solve the above problems. Summary of the invention

[0005] In order to overcome the problem of deviation between user questions and intelligent customer service answers and inaccurate output answers in multi-language intelligent question-and-answer systems in the related art, an embodiment of the present application provides an intelligent customer service multi-language dialogue method to facilitate multi-language dialogue and communication, improve service efficiency, and reduce the cost brought by manual customer service.

[0006] The technical solution adopted by this application to solve the technical problem is:

[0007] An intelligent customer service multilingual dialogue method, the method operation steps are as follows:

[0008] Step 1: Receive user input, including voice and text input by the user, and process and parse the input in combination with checking the user's geographic location information;

[0009] Step 2: A native region inference model is set up in the backend. The native region inference model combines the user's geographic location information input by the user to determine the user's preferred language and obtain the user's native region prediction result;

[0010] Step 3: Process the conversation in the determined language, provide personalized services or answers on the front-end page based on the user's native region and geographic location information, and communicate in the user's native language or provide local relevant information.

[0011] Furthermore, if voice input is selected in step 1, and the user starts speaking, the front-end interface will prompt the user that recording is in progress. After the user stops speaking, the front-end interface will convert the voice into text. The conversion process is performed after the user stops speaking.

[0012] If text input is selected, the user enters text in the input box, and the front-end interface displays the text entered by the user in real time. After the user confirms the input, clicks the Send button or presses the Enter key, and the front-end interface sends the input content to the back-end for processing.

[0013] Further, in step 2;

[0014] Among them, in the first three conversations, for users who have provided geographic location information, the information is directly used as the native region; for users who have not provided geographic location information, the native region inference model is used according to the results of the native region inference model as their native region;

[0015] Among them, for more than three conversations, regardless of whether the user provides geographic location information, the native region is inferred based on the native region inference model based on the conversation content and the result of the native region inference model is used as the native region.

[0016] Furthermore, the steps for establishing the native region inference model are as follows:

[0017] S1 collects speech samples of different languages ​​and accents, including samples of different types of languages ​​and accents, and records the position information corresponding to these samples. For speech samples that do not carry position information, their position information is set to the same virtual position K;

[0018] When collecting speech samples, we collect them according to the weight alignment. Let the proposed collection amount be X, and the collection amount at different positions is expressed as , where i is the position index, i is used to represent the position information, and XK represents the language sample of the position information as a virtual position;

[0019] ;

[0020] According to the distribution of the target user group, determine the area where voice samples and location information need to be collected, and according to the collection coefficient Collect language data, collect coefficients The main influencing factors are user activity and population size;

[0021] ;

[0022] Among them, a represents the user activity impact factor, and b represents the population impact factor. The activity impact factor of each region is set according to the user activity of each region. The user region with higher activity is given a larger activity impact factor, and the user region with more population is given a larger population impact factor.

[0023] S2 Data Processing

[0024] Clean the text data, remove special characters and stop words, tokenize and stem the text data, use the bag-of-words model to convert the text data into feature vectors, take each word as a feature, construct a feature vector to represent each text, and annotate each feature vector with regional information;

[0025] S3 model training

[0026] Use a neural network to train the collected data, using word embedding as the input layer, and the output layer can be a softmax layer with 1 neuron, representing the most likely region, using a softmax output layer with one neuron to represent the most likely region.

[0027] Furthermore, the model training uses the cross entropy loss function as the loss function and Adam as the optimizer. For each sample, its text description is input into the neural network for forward propagation, and the regional probability distribution of the model output is calculated. The real regional label is represented by one-hot encoding, and the weight of the neural network is updated using the back-propagation algorithm, and the weight is updated according to the gradient; the above steps are repeated until the maximum number of iterations is reached or the loss function converges.

[0028] Furthermore, in model training, the text description of each sample is represented as , which is expressed as the corresponding regional label , where i represents the label index, word embedding maps each word to a vector of length d, and the text description Represented as a sequence of length T, that is, a word is a d-dimensional vector, and the text is described as a T×d vector;

[0029] The weights and biases of the neural network are represented as w and b respectively;

[0030] The regional probability distribution of the model output is expressed as ,in represents the probability that the i-th sample belongs to region j;

[0031] Therefore, the loss optimization function Loss is expressed as:

[0032] ;

[0033] The optimizer is represented as:

[0034] ;

[0035] is the parameter of the tth iteration, is the learning rate, and are the first-order moment estimate and the second-order moment estimate of the gradient, respectively. It is a very small number.

[0036] The advantages of this application are:

[0037] Through the native region inference model, the system can support conversations in multiple languages ​​and provide services to users in multiple regions. Through the native region inference model, the system can provide personalized conversation services based on the user's native region and language, including communicating in the user's native language and providing local relevant information, improving the user experience.

[0038] This application also flexibly selects the corresponding language and dialogue processing method based on the geographic location information and input content provided by the user. It not only outputs the appropriate language for the user's geographic location, but also conforms to the user's language habits, further improving the user experience.

[0039] In addition, in continuous dialogue with users, we continue to optimize the native region inference model, improve the accuracy of the language, and improve the accuracy of the system and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 Flowchart of the intelligent customer service multilingual dialogue method provided for the implementation method of this application;

[0041] Figure 2 A flow chart of a method for constructing a native region inference model provided for an implementation of the present application. DETAILED DESCRIPTION

[0042] The technical solution in the embodiments of the present application is to solve the problem that in previous intelligent question-and-answer systems, in multiple languages, there are deviations between user questions and intelligent customer service answers, and the output answers are inaccurate.

[0043] Reference Figure 1 , an intelligent customer service multilingual dialogue method, the method implementation steps are as follows:

[0044] Step 1: Receive user input, including voice and text input by the user, and process and parse the input in combination with the user's geographic location information.

[0045] If voice input is selected and the user starts speaking, the front-end interface will display a waveform of the voice input or prompt the user that a recording is in progress. After the user stops speaking, the front-end interface will convert the voice into text. The conversion process will be performed after the user stops speaking.

[0046] If you select text input, the user enters text in the input box, and the front-end interface displays the text entered by the user in real time. After the user confirms the input, clicks the send button or presses the enter key, and the front-end interface sends the input content to the back-end for processing;

[0047] The front-end interface transmits the input content to the back-end service through the network. After the back-end service receives the user input content, it generates reply content based on the processing results and transmits the reply content back to the front-end interface.

[0048] Step 2: A native region inference model is set up in the backend. The native region inference model combines the user's geographic location information input by the user to determine the user's preferred language and obtain the user's native region prediction result;

[0049] Among them, in the first three conversations, for users who have provided geographic location information, the information is directly used as the native region; for users who have not provided geographic location information, the native region inference model is used according to the results of the native region inference model as their native region;

[0050] Among them, for more than three conversations, regardless of whether the user provides geographic location information, the native region is inferred based on the native region inference model based on the conversation content and the result of the native region inference model is used as the native region.

[0051] According to the native region inference model, the native region inference model can analyze the user's language habits. The native region inference model can recommend the most suitable language for the user based on its own training model, use the user's native language to communicate and provide local relevant information, thereby improving the user experience.

[0052] Step 3: Process the conversation in the determined language, provide personalized services or answers on the front-end page based on the user's native region and geographic location information, and communicate in the user's native language or provide local relevant information.

[0053] Among them, in the process of providing personalized services or answers, the system communicates with users many times, and continuously optimizes and improves the quality and accuracy of services based on user feedback. As the amount of information obtained by users increases, the accuracy of the native region inference model is further improved. According to user feedback and communication, the content and methods of personalized services are continuously optimized to improve user experience and satisfaction.

[0054] Reference Figure 2, establish the native region inference model, and the steps are as follows:

[0055] S1 collects speech samples of different languages ​​and accents, including samples of different types of languages ​​and accents, and records the position information corresponding to these samples. For speech samples that do not carry position information, their position information is set to the same virtual position K;

[0056] When collecting speech samples, we collect them according to the weight alignment. Let the proposed collection amount be X, and the collection amount at different positions is expressed as , where i is the position index, i is used to represent the position information, and XK represents the language sample of the position information as a virtual position;

[0057] ;

[0058] According to the distribution of the target user group, determine the area where voice samples and location information need to be collected, and according to the collection coefficient Collect language data, collect coefficients The main influencing factors are user activity and population size;

[0059] ;

[0060] Among them, a represents the user activity impact factor, and b represents the population impact factor. The activity impact factor of each region is set according to the user activity of each region. The higher the user activity, the greater the activity impact factor is assigned to the region, and the greater the population, the greater the population impact factor is assigned to the region.

[0061] By collecting language resources according to the collection coefficient and taking into account factors such as user activity and population size, the selected regions are more likely to contain more representative users, thereby improving the results of tasks related to speech recognition and location information. At the same time, it avoids data collection activities in some unnecessary areas, saves costs and time, and makes the data collection process more efficient and economical.

[0062] S2 Data Processing

[0063] Clean the text data, remove special characters and stop words, tokenize and stem the text data, use the bag-of-words model to convert the text data into feature vectors, take each word as a feature, construct a feature vector to represent each text, and mark the region information for each feature vector.

[0064] S3 model training

[0065] Use a neural network to train the collected data, use word embedding as the input layer, and the output layer can be a softmax layer with 1 neuron, representing the most likely region. Using a softmax output layer with one neuron to represent the most likely region can simplify the model structure and improve training effects and generalization capabilities.

[0066] The cross entropy loss function is used as the loss function and Adam is used as the optimizer. For each sample, its text description is input into the neural network for forward propagation, and the regional probability distribution of the model output is calculated. The real regional label is represented by one-hot encoding, that is, for each sample, there is a vector with a length of the number of regions, in which only one element is 1 and the rest are 0; the weights of the neural network are updated using the back-propagation algorithm to reduce the loss function, and the weights are updated according to the gradient; the above steps are repeated until the maximum number of iterations is reached or the loss function converges.

[0067] The text description of each sample is represented as , which is expressed as the corresponding regional label , where i represents the label index, word embedding maps each word to a vector of length d, and the text description Represented as a sequence of length T, that is, a word is a d-dimensional vector, and the text is described as a T×d vector;

[0068] The weights and biases of the neural network are represented as w and b respectively;

[0069] The regional probability distribution of the model output is expressed as ,in represents the probability that the i-th sample belongs to region j;

[0070] Therefore, the loss optimization function Loss is expressed as:

[0071] ;

[0072] The optimizer is represented as:

[0073] ;

[0074] is the parameter of the tth iteration, is the learning rate, and are the first-order moment estimate and the second-order moment estimate of the gradient, respectively. is a small number used for numerical stability.

[0075] After the native region inference model is established, it is embedded in the customer service system to assist in inferring the user's native region, and deployed to the online environment to ensure that the system can respond to user requests in real time.

[0076] Finally, it should be noted that: Obviously, the above embodiments are only examples for clearly explaining the present application, and are not intended to limit the implementation methods. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from this are still within the scope of protection of the present application.

Claims

1. An intelligent customer service multilingual dialogue method, characterized in that: The method steps are as follows: Step 1: Receive user input, including voice and text input by the user, and process and parse the input in combination with checking the user's geographic location information; Step 2: A native region inference model is set up in the backend. The native region inference model combines the user's geographic location information input by the user to determine the user's preferred language and obtain the user's native region prediction result; Step 3: Process the conversation in the determined language, provide personalized services or answers on the front-end page based on the user's native region and geographic location information, and communicate in the user's native language or provide local relevant information; In step 2, in the first three conversations, for users who have provided their geographic location information, the information is directly used as the native region; for users who have not provided their geographic location information, the native region inference model is used according to the result of the native region inference model as their native region; Among them, for more than three conversations, regardless of whether the user provides geographic location information, the native region inference model is used based on the conversation content and the result of the native region inference model is used as the native region; The steps to establish the native region inference model are as follows: S1 collects speech samples of different languages ​​and accents, including samples of different types of languages ​​and accents, and records the position information corresponding to these samples. For speech samples that do not carry position information, their position information is set to the same virtual position K; When collecting speech samples, we collect them according to the weight alignment. Let the proposed collection amount be X, and the collection amount at different positions is expressed as ,in is the position index, Used to represent location information, XK indicates that the location information is a voice sample of a virtual location; ; According to the distribution of the target user group, determine the area where voice samples and location information need to be collected, and according to the collection coefficient Collect language data, collect coefficients The main influencing factors are user activity and population size; ; Among them, a represents the user activity impact factor, and b represents the population impact factor. The activity impact factor of each region is set according to the user activity of each region. The user region with higher activity is given a larger activity impact factor, and the user region with more population is given a larger population impact factor. S2 data processing: clean text data, remove special characters and stop words, tokenize and stem text data, use the bag-of-words model to convert text data into feature vectors, take each word as a feature, construct a feature vector to represent each text, and annotate each feature vector with regional information; S3 model training,uses a neural network to train the collected data,using word embedding as the input layer, the output layer can be a softmax layer with 1 neuron,representing the most likely region, and using a softmax output layer with one neuron to represent the most likely region.

2. The intelligent customer service multilingual dialogue method according to claim 1, characterized in that: If voice input is selected in step 1, the user starts speaking, and the front-end interface prompts the user that recording is in progress. After the user stops speaking, the front-end interface converts the voice into text. The conversion process is performed after the user stops speaking. If text input is selected, the user enters text in the input box, and the front-end interface displays the text entered by the user in real time. After the user confirms the input, clicks the Send button or presses the Enter key, and the front-end interface sends the input content to the back-end for processing.

3. The intelligent customer service multilingual dialogue method according to claim 1, characterized in that: The model training uses the cross entropy loss function as the loss function and Adam as the optimizer. For each sample, its text description is input into the neural network for forward propagation, and the regional probability distribution of the model output is calculated. The real regional label is represented by one-hot encoding. The weight of the neural network is updated using the back-propagation algorithm, and the weight is updated according to the gradient. The above steps are repeated until the maximum number of iterations is reached or the loss function converges.

4. The intelligent customer service multilingual dialogue method as claimed in claim 3, characterized in that: During model training, the text description of each sample is represented as , which is expressed as the corresponding regional label , where i represents the index of the sample, word embedding maps each word to a vector of length d, and the text description Represented as a sequence of length T, that is, a word is a d-dimensional vector, and the text is described as a T×d vector; The weights and biases of the neural network are denoted as w and b respectively; The regional probability distribution of the model output is expressed as ,in represents the probability that the i-th sample belongs to region j; Therefore, the loss optimization function Loss is expressed as: ; The optimizer is represented as: ; is the parameter of the tth iteration, is the learning rate, and are the first-order moment estimate and the second-order moment estimate of the gradient, respectively. It's a very small number.