AI conversation semantic recognition method and system for intelligent customer service
Through iterative turn-based knowledge learning combined with user dialogue text and behavioral data, the intelligent customer service dialogue semantic recognition network is optimized, which solves the problem of low recognition accuracy in traditional methods and improves the performance and user experience of the intelligent customer service system.
Patent Information
- Application Number
- CN202410676634.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-29
AI Technical Summary
The traditional dialogue semantic recognition method of intelligent customer service systems ignores user behavior data, resulting in low recognition accuracy and poor user experience.
It uses an iterative turn-based knowledge learning method, combines user dialogue text records and page behavior path data, and generates a target dialogue semantic recognition network through turn-based optimization of the taught and taught dialogue semantic recognition networks, which is used to identify intelligent customer service dialogue data.
It significantly improves the accuracy and efficiency of dialogue semantic recognition, more accurately captures the user's true intentions, and improves the service quality and user experience of the intelligent customer service system.
Smart Images

Figure CN118246460B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an AI dialogue semantic recognition method and system for intelligent customer service. Background Art
[0002] With the rapid development of artificial intelligence technology, intelligent customer service systems have become an important means for enterprises to improve customer service quality and reduce labor costs. However, the performance of intelligent customer service systems often depends on the accuracy of their core component, the conversational semantic recognition network. Traditional conversational semantic recognition methods are mostly based on single text input analysis, ignoring the important impact of user behavior data on recognition results, resulting in low recognition accuracy and poor user experience. Summary of the invention
[0003] In order to at least overcome the above-mentioned deficiencies in the prior art, the purpose of the embodiments of the present application is to provide an AI dialogue semantic recognition method and system for intelligent customer service.
[0004] According to one aspect of the present application, a method for AI dialogue semantic recognition for intelligent customer service is provided, the method comprising:
[0005] Obtain sample intelligent customer service conversation data and obtain the taught conversation semantic recognition network and the teaching conversation semantic recognition network optimized by the previous round of iterative turn-based knowledge learning, each of the sample intelligent customer service conversation data including a user conversation text record and corresponding user page behavior path data;
[0006] Based on the semantic recognition data generated by performing conversation semantic recognition on the candidate sample intelligent customer service conversation data obtained from the sample intelligent customer service conversation data respectively by the taught conversation semantic recognition network and the teaching conversation semantic recognition network, a candidate taught training error parameter is determined, and the taught conversation semantic recognition network is optimized according to the candidate taught training error parameter to obtain a candidate taught conversation semantic recognition network;
[0007] Determine a taught response training error parameter based on semantic recognition data generated by performing conversation semantic recognition on test sample conversation data obtained from the sample intelligent customer service conversation data by the candidate taught conversation semantic recognition network and conversation intention annotation data of the test sample conversation data, and determine a teaching training error parameter based on semantic recognition data generated by performing conversation semantic recognition on teaching sample intelligent customer service conversation data obtained from the sample intelligent customer service conversation data by the teaching conversation semantic recognition network and conversation intention annotation data of the teaching sample intelligent customer service conversation data;
[0008] Based on the taught response training error parameter and the teaching training error parameter, a teaching dialogue semantic recognition network optimized by the current round of iterative turn knowledge learning is obtained; and according to the teaching dialogue semantic recognition network optimized by the current round of iterative turn knowledge learning and the sample intelligent customer service dialogue data, knowledge learning is performed on the taught dialogue semantic recognition network optimized by the previous round of iterative turn knowledge learning to generate a taught dialogue semantic recognition network optimized by the current round of iterative turn knowledge learning;
[0009] According to the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network optimized by this round of iterative turn-based knowledge learning, return to the step of obtaining the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network optimized by the previous round of iterative turn-based knowledge learning to continue the turn-based knowledge learning, and generate a target dialogue semantic recognition network based on the taught dialogue semantic recognition network optimized when the network converges. The target dialogue semantic recognition network is used to perform dialogue semantic recognition on any input intelligent customer service dialogue data.
[0010] According to one aspect of an embodiment of the present application, an intelligent customer service platform system is provided, which includes a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions, and the machine-executable instructions are loaded and executed by the processor to implement the AI dialogue semantic recognition method for intelligent customer service in any one of the aforementioned possible implementations.
[0011] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above three aspects.
[0012] In the technical solutions provided by some embodiments of the present application, the embodiments of the present application significantly improve the accuracy and efficiency of dialogue semantic recognition by iterative turn-based knowledge learning. Specifically, by continuously acquiring sample intelligent customer service dialogue data, and using the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network optimized in the previous round of iteration to perform dialogue semantic recognition on candidate samples, the candidate taught training error parameters are effectively determined, thereby realizing the optimization of the taught dialogue semantic recognition network. In addition, by comparing the dialogue intention prediction and annotation data of the test sample dialogue data and the teaching sample intelligent customer service dialogue data, the taught response training error parameters and the teaching training error parameters are determined respectively, providing a basis for further optimization. In the process of turn-based knowledge learning, not only the user dialogue text records are considered, but also the user page behavior path data is combined to realize the comprehensive recognition of text intention and behavior intention, thereby more accurately capturing the user's true intention. In addition, through continuous iteration and optimization, the target dialogue semantic recognition network finally generated can efficiently and accurately recognize any input intelligent customer service dialogue data, greatly improving the service quality and user experience of the intelligent customer service system. Therefore, through the iterative turn-based knowledge learning method, combined with user conversation text records and user page behavior path data, efficient and accurate conversation semantic recognition is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be extracted in combination with these drawings without creative work.
[0014] Figure 1 A flowchart of an AI conversation semantic recognition method for intelligent customer service provided in an embodiment of the present application;
[0015] Figure 2 A schematic block diagram of the architecture of an intelligent customer service platform system for implementing the above-mentioned AI conversation semantic recognition method for intelligent customer service provided in an embodiment of the present application. DETAILED DESCRIPTION
[0016] The following description is intended to enable one of ordinary skill in the art to implement and combine the present application, and the description is provided in the context of a specific application scenario and its requirements. It will be apparent to one of ordinary skill in the art that various changes may be made to the disclosed embodiments, and that the general principles defined in the present application may be applied to other embodiments and application scenarios without departing from the principles and scope of the present application. Therefore, the present application is not limited to the described embodiments, but should be given the broadest scope consistent with the claims.
[0017] Figure 1 This is a flow chart of an AI conversation semantic recognition method for intelligent customer service provided by an embodiment of the present application. The AI conversation semantic recognition method for intelligent customer service is introduced in detail below.
[0018] Step S110, obtaining sample intelligent customer service dialogue data and obtaining the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network optimized by the previous round of iterative alternating knowledge learning, each of the sample intelligent customer service dialogue data includes a user dialogue text record and corresponding user page behavior path data.
[0019] In this embodiment, the server first obtains a batch of sample intelligent customer service dialogue data from the stored data set. These sample intelligent customer service dialogue data may include the dialogue text records between users and intelligent customer service, as well as the behavior path data of these users on the page during the dialogue process (such as which products they clicked, which pages they browsed, etc.). At the same time, the server loads the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network that have been optimized in the previous round of iterations.
[0020] In one scenario, assume that an e-commerce platform has an intelligent customer service system. When users encounter problems during the shopping process, they will have conversations with the intelligent customer service. The content of these conversations (including questions raised by users and responses from the intelligent customer service) and the user's behavior on the page during the conversation (such as clicking on a product link, browsing a page, etc.) will be recorded to form sample intelligent customer service conversation data. These sample intelligent customer service conversation data will be used to train the conversation semantic recognition network so that it can understand the user's intentions more accurately.
[0021] That is, the user dialogue text record refers to the text information entered by the user during the intelligent customer service dialogue process, which directly reflects the user's questions, needs or feedback. For example, in the dialogue window of the intelligent customer service, the user may enter text such as "When will this product be shipped?" or "I want to cancel the order". These texts are user dialogue text records and are key information that the intelligent customer service needs to understand and respond to. Furthermore, the user page behavior path data refers to a series of behavior data of the user on the e-commerce platform page during the intelligent customer service dialogue process, which can reflect the user's interests, preferences and intentions, and is an important supplement to the dialogue text. For example, while the user is talking to the intelligent customer service, the user may also be browsing the product page, checking the order details or performing other operations. These operations will generate corresponding page behavior data, such as clicking on a product link, browsing the length of time on a page, etc., which can help the intelligent customer service understand the user's intentions and needs more comprehensively.
[0022] The taught dialogue semantic recognition network is the party that receives teaching, and can be understood as the student dialogue semantic recognition network in the knowledge distillation process, while the teaching dialogue semantic recognition network is responsible for providing teaching, and can be understood as the teacher dialogue semantic recognition network in the knowledge distillation process. Through knowledge learning, the two networks can promote each other and improve performance together. For example, suppose that in the previous round of iterations, the teaching dialogue semantic recognition network is first used to recognize a batch of sample intelligent customer service dialogue data, and the taught dialogue semantic recognition network is optimized based on the recognition results. Then, the roles of the two networks are exchanged, and the optimized taught dialogue semantic recognition network is used to recognize another batch of sample intelligent customer service dialogue data, and the teaching dialogue semantic recognition network is optimized based on the recognition results. In this way, the two networks continuously improve their performance in the process of taking turns to learn. In the next round of iterations, the two optimized networks will continue to be used for taking turns to learn knowledge.
[0023] Step S120, based on the semantic recognition data generated by performing conversation semantic recognition on the candidate sample intelligent customer service conversation data obtained from the sample intelligent customer service conversation data respectively by the taught conversation semantic recognition network and the teaching conversation semantic recognition network, determine the candidate taught training error parameters, and optimize the taught conversation semantic recognition network according to the candidate taught training error parameters to obtain the candidate taught conversation semantic recognition network.
[0024] In detail, the candidate sample intelligent customer service dialogue data is a portion of data randomly selected from the entire sample intelligent customer service dialogue data set or selected according to a certain strategy, and is used to evaluate or train the dialogue semantic recognition network in the current iteration or optimization step. For example, suppose there is a sample intelligent customer service dialogue data set containing 10,000 dialogues. In the current iteration, 1,000 dialogues may be randomly selected as candidate sample intelligent customer service dialogue data for evaluating or training the taught dialogue semantic recognition network.
[0025] In this embodiment, conversation semantics recognition refers to the process of identifying and understanding the user's intention or needs in the conversation by analyzing the conversation text and possible auxiliary information (such as user behavior data). In the intelligent customer service system, it involves converting the natural language text input by the user into a semantic representation that can be understood by the machine.
[0026] The semantic recognition data is the output data generated by the conversation semantic recognition network after processing the candidate sample intelligent customer service conversation data, which represents the network's prediction or understanding of the conversation intent. For example, for the user input "When will this product be shipped?", if the conversation semantic recognition network can correctly identify the user's intent, then the generated semantic recognition data may be a category label or probability distribution representing the intent of "asking about the shipping time".
[0027] The candidate taught training error parameter is an indicator for evaluating the performance of the taught dialogue semantic recognition network on the candidate sample intelligent customer service dialogue data, indicating the gap or degree of error between the network prediction result and the true intention. For example, assuming that the true intention of a dialogue in the candidate sample intelligent customer service dialogue data is "ask about the delivery time", but the taught dialogue semantic recognition network predicts "check the order status". Then, an error parameter (such as cross entropy loss) can be calculated to quantify this prediction error.
[0028] That is, in this embodiment, the server randomly selects a portion of the sample intelligent customer service dialogue data as candidate sample intelligent customer service dialogue data. In detail, the taught dialogue semantic recognition network is first used to perform dialogue semantic recognition on this portion of candidate sample intelligent customer service dialogue data to generate semantic recognition data. Then, the server uses the teaching dialogue semantic recognition network to recognize the same data to generate another set of semantic recognition data. By comparing the gap between the two sets of semantic recognition data and the true intention (i.e., error parameter), the server determines a candidate taught training error parameter. Based on this candidate taught training error parameter, the server optimizes the taught dialogue semantic recognition network to obtain a candidate taught dialogue semantic recognition network.
[0029] Step S130, determining a taught response training error parameter based on the semantic recognition data generated by the candidate taught dialogue semantic recognition network performing dialogue semantic recognition on the test sample dialogue data obtained from the sample intelligent customer service dialogue data and the dialogue intention annotation data of the test sample dialogue data, and determining a teaching training error parameter based on the semantic recognition data generated by the teaching dialogue semantic recognition network performing dialogue semantic recognition on the teaching sample intelligent customer service dialogue data obtained from the sample intelligent customer service dialogue data and the dialogue intention annotation data of the teaching sample intelligent customer service dialogue data.
[0030] In detail, the test sample conversation data is a data set used to evaluate the performance of the conversation semantics recognition network on unseen data, and is separate from the candidate sample intelligent customer service conversation data to ensure the objectivity of the evaluation results. For example, during the training process, the entire sample intelligent customer service conversation data set is usually divided into a training set, a validation set, and a test set. The test sample conversation data is a portion of the data selected from the test set, which is used to evaluate the performance of the conversation semantics recognition network during or after the training process.
[0031] The dialogue intention annotation data is the real intention or demand manually annotated for the dialogue sample, which is compared with the prediction results of the dialogue semantic recognition network to evaluate the performance of the network. For example, in an intelligent customer service system, it is usually necessary to hire some experts or annotators to annotate the real intention of the dialogue sample. For example, for a user input "When will this product be shipped?", the annotator may annotate the intention as "ask about the shipping time", and these annotation data are dialogue intention annotation data.
[0032] That is, in this embodiment, the server again selects a part of the sample intelligent customer service dialogue data as the test sample dialogue data, uses the candidate taught dialogue semantic recognition network to identify, and compares with the real intention of these test sample dialogue data to generate the taught response training error parameter. At the same time, the server selects another part as the teaching sample intelligent customer service dialogue data, uses the teaching dialogue semantic recognition network to identify, and generates the teaching training error parameter.
[0033] Step S140, based on the taught response training error parameter and the teaching training error parameter, obtain the teaching dialogue semantic recognition network optimized for this round of iterative turn knowledge learning, and perform knowledge learning on the taught dialogue semantic recognition network optimized for the previous round of iterative turn knowledge learning according to the teaching dialogue semantic recognition network optimized for this round of iterative turn knowledge learning and the sample intelligent customer service dialogue data to generate the taught dialogue semantic recognition network optimized for this round of iterative turn knowledge learning.
[0034] In this embodiment, based on the training error parameters of the taught response and the teaching training error parameters obtained in the previous step, the server optimizes the teaching dialogue semantic recognition network to obtain a teaching dialogue semantic recognition network optimized by knowledge learning in this round of iteration. Then, the server uses this optimized teaching dialogue semantic recognition network and combines it with the sample intelligent customer service dialogue data to perform knowledge learning on the teaching dialogue semantic recognition network optimized by the previous round of iteration, and further optimizes the teaching dialogue semantic recognition network.
[0035] Step S150, based on the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network optimized by this round of iterative turn-based knowledge learning, return to the step of obtaining the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network optimized by the previous round of iterative turn-based knowledge learning to continue the turn-based knowledge learning, and generate a target dialogue semantic recognition network based on the taught dialogue semantic recognition network optimized when the network converges, and the target dialogue semantic recognition network is used to perform dialogue semantic recognition on any input intelligent customer service dialogue data.
[0036] In this embodiment, the server determines whether the current taught dialogue semantic recognition network and the teaching dialogue semantic recognition network have converged (i.e., whether the performance is stable and no longer significantly improved). If not, the server returns to step S110 and continues to iteratively optimize the two networks. When the network converges, the server uses the current taught dialogue semantic recognition network as the target dialogue semantic recognition network for dialogue semantic recognition of any input intelligent customer service dialogue data.
[0037] During this process, the server will also assign a training value to each sample intelligent customer service conversation data based on its complexity and diversity. When selecting the conversation data required for turn-based knowledge learning, the server can give priority to selecting sample intelligent customer service conversation data with higher training value to ensure that the network can learn more important information and patterns.
[0038] Based on the above steps, the embodiment of the present application significantly improves the accuracy and efficiency of dialogue semantic recognition by iterative turn-based knowledge learning. Specifically, by continuously acquiring sample intelligent customer service dialogue data, and using the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network optimized in the previous round of iteration to perform dialogue semantic recognition on the candidate samples, the candidate taught training error parameters are effectively determined, thereby realizing the optimization of the taught dialogue semantic recognition network. In addition, by comparing the dialogue intention prediction and annotation data of the test sample dialogue data and the teaching sample intelligent customer service dialogue data, the taught response training error parameters and the teaching training error parameters are determined respectively, providing a basis for further optimization. In the process of turn-based knowledge learning, not only the user dialogue text records are considered, but also the user page behavior path data is combined to realize the comprehensive recognition of text intention and behavior intention, thereby more accurately capturing the user's true intention. In addition, through continuous iteration and optimization, the target dialogue semantic recognition network finally generated can efficiently and accurately recognize any input intelligent customer service dialogue data, greatly improving the service quality and user experience of the intelligent customer service system. Therefore, through the iterative turn-based knowledge learning method, combined with user conversation text records and user page behavior path data, efficient and accurate conversation semantic recognition is achieved.
[0039] In a possible implementation, the step of performing dialogue semantics recognition on the sample intelligent customer service dialogue data by the taught dialogue semantics recognition network includes:
[0040] Step S121, loading the user dialogue text records in the sample intelligent customer service dialogue data into the taught dialogue semantic recognition network.
[0041] In this embodiment, when the server starts to execute the task of the taught conversation semantic recognition network, it first reads the user conversation text record from the stored sample intelligent customer service conversation data. The server loads this user conversation text record into the taught conversation semantic recognition network and prepares for the next step of semantic analysis.
[0042] Step S122, using the encoder of the taught dialogue semantic recognition network to extract the semantic encoding vector corresponding to the user dialogue text record.
[0043] In this embodiment, after loading the user conversation text record, the server uses the encoder part in the taught conversation semantic recognition network to process the user conversation text record. The encoder is usually a deep learning model, such as a recurrent neural network (RNN) or a Transformer.
[0044] In this embodiment, the encoder receives the text input by the user and processes it word by word. Each word is converted into a word embedding, and then the encoder converts these word embeddings into a fixed-length semantic encoding vector, which is a semantic representation of the entire conversation text.
[0045] Step S123, using the semantic mapping unit of the taught dialogue semantic recognition network, obtains semantic mapping features based on the semantic encoding vector, wherein the semantic mapping features capture key information and semantic structure in the user dialogue text record.
[0046] Next, the server processes this semantic encoding vector using the semantic mapping unit of the taught conversation semantic recognition network. The role of the semantic mapping unit is to transform the semantic encoding vector into higher-level feature representations that can capture the key information and semantic structure in the user conversation text transcript.
[0047] For example, the semantic mapping unit may recognize the keywords "query", "order", and "status", and encode the relationship between them (such as the relationship between "query" and "order status") into the feature. In this way, the server obtains a semantic mapping feature that contains the key information and semantic structure of the conversation.
[0048] Step S124, using the classification unit of the taught dialogue semantic recognition network, obtaining a dialogue intention prediction result based on the semantic mapping feature.
[0049] Finally, the server uses the classification unit of the taught conversation semantic recognition network to process the semantic mapping features and generate a prediction result of the conversation intent. The classification unit is usually a fully connected neural network layer that receives the semantic mapping features as input and outputs a probability distribution of one or more intent categories.
[0050] For example, the classification unit may output a probability distribution in which the probability of the intent category "query order status" is the highest. Therefore, the server predicts "query order status" as the conversation intent.
[0051] After the whole process is completed, the server successfully uses the taught conversation semantic recognition network to perform semantic recognition on the user's conversation text and predicts the user's conversation intention. The prediction result can be used for subsequent intelligent customer service responses or other related tasks.
[0052] In a possible implementation, the step of teaching the conversation semantics recognition network to perform conversation semantics recognition on the sample intelligent customer service conversation data includes:
[0053] Step S125: loading the sample intelligent customer service dialogue data into the teaching dialogue semantic recognition network.
[0054] In this embodiment, for example, the server retrieves a conversation record, and the user conversation text record is: "I want to cancel the order I placed this morning", and the user behavior path data shows that the user stayed on the order page for a long time and clicked the "Cancel Order" button multiple times.
[0055] The server loads these sample intelligent customer service conversation data into the teaching conversation semantic recognition network, preparing for the next step of semantic analysis.
[0056] Step S126, using the text intention prediction unit in the teaching dialogue semantic recognition network, the user dialogue text record in the sample intelligent customer service dialogue data is recognized to generate a first dialogue intention prediction result.
[0057] In this embodiment, the server inputs the user conversation text record into the text intention prediction unit in the teaching conversation semantic recognition network, and the text intention prediction unit generally includes a text encoder, a semantic mapping layer and a classification layer.
[0058] The text encoder first converts each word in the user conversation text record into a word vector, and then processes these word vectors to capture the contextual information in the text and generate a semantic encoding vector. Next, the semantic mapping layer converts the semantic encoding vector into semantic mapping features, which capture the key information and semantic structure in the text. Finally, the classification layer generates a preliminary prediction result of the conversation intent based on the semantic mapping features, that is, the first conversation intent prediction result.
[0059] In this embodiment, the text intention prediction unit may identify the two keywords "cancel" and "order", and combine the context information to preliminarily predict that the user's intention is to "cancel the order."
[0060] Step S127, using the behavior intention prediction unit in the teaching dialogue semantic recognition network, the user page behavior path data in the sample intelligent customer service dialogue data is identified to generate a second dialogue intention prediction result.
[0061] In this embodiment, the server then inputs the user page behavior path data into a behavior intention prediction unit in the teaching dialogue semantic recognition network, and the behavior intention prediction unit generally includes a graph autoencoder, a semantic mapping layer, and a classification layer.
[0062] The graph autoencoder first converts the user page behavior path data into graph structure data, where nodes represent pages and edges represent the user's jump behavior between different pages. Then, the graph autoencoder extracts the key information in the graph structure data and generates a graph autoencoder vector sequence. Next, the semantic mapping layer converts these graph autoencoder vector sequences into graph convolution features, which reflect the user's behavior patterns and preferences on the page. Finally, the classification layer generates the second dialogue intention prediction result based on the graph convolution features.
[0063] In this embodiment, the behavior intention prediction unit may recognize that the user stays on the order page for a long time and clicks the "Cancel Order" button multiple times, thereby predicting that the user's intention is to "cancel the order."
[0064] Step S128, utilizing the fused intention prediction unit in the teaching dialogue semantic recognition network, generates a fused semantic feature based on the semantic mapping feature generated by the text intention prediction unit based on the user dialogue text record and the graph convolution feature generated by the behavior intention prediction unit based on the user page behavior path data, and generates a third dialogue intention prediction result based on the fused semantic feature, wherein the graph convolution feature reflects the user's behavior patterns and preferences on the page.
[0065] Finally, the server integrates the results of text intent prediction and behavior intent prediction by using a fusion intent prediction unit in the taught conversation semantic recognition network. The fusion intent prediction unit receives the semantic mapping features generated by the text intent prediction unit and the graph convolution features generated by the behavior intent prediction unit as input.
[0066] The fusion intention prediction unit first fuses these features to generate fusion semantic features. The fusion process may involve feature concatenation, weighting or other forms of combination. Then, the classification layer generates the final dialogue intention prediction result based on the fusion semantic features, that is, the third dialogue intention prediction result.
[0067] In this embodiment, the fusion intention prediction unit may fuse the results of text intention prediction and behavior intention prediction, because both point to the intention of "cancel the order". Therefore, the final dialogue intention prediction result is also "cancel the order".
[0068] After the whole process is completed, the server successfully uses the taught conversation semantic recognition network to perform comprehensive semantic recognition of the user's conversation text and behavior data, and generates a prediction result of the conversation intention, which can provide guidance and assistance for the subsequent taught conversation semantic recognition network.
[0069] In a possible implementation, step S126 may include:
[0070] Step S1261: Load the user dialogue text record in the sample intelligent customer service dialogue data into the text intention prediction unit of the teaching dialogue semantic recognition network.
[0071] Step S1262, using the encoder of the text intent prediction unit to extract the semantic coding vector corresponding to the user conversation text record, using the semantic mapping unit of the text intent prediction unit to generate the semantic mapping feature based on the semantic coding vector, and using the classification unit of the text intent prediction unit to obtain the first conversation intent prediction result based on the semantic mapping feature.
[0072] In this embodiment, when the server starts to process the sample intelligent customer service dialogue data, it first locates the user dialogue text record part. For example, the server retrieves a dialogue record from the database, and the user dialogue text record is: "Excuse me, does this product support seven-day no-reason return?"
[0073] The server loads this user conversation text record into the text intent prediction unit of the teaching conversation semantic recognition network, preparing for subsequent text intent recognition.
[0074] Once the user conversation text record is loaded into the text intent prediction unit, the server can start the encoder part of the unit. The encoder is usually a deep learning model such as a recurrent neural network (RNN), a long short-term memory network (LSTM), or a Transformer.
[0075] In this embodiment, the encoder processes the user conversation text record "Does this product support seven-day unconditional return?" word by word. Each word is converted into a word embedding, and then the encoder processes these word embeddings, considering the contextual relationship between them, and generates a fixed-length semantic encoding vector, which captures the semantic information of the entire text record.
[0076] Next, the server processes the semantic encoding vector using the semantic mapping unit of the text intent prediction unit. The role of the semantic mapping unit is to transform the semantic encoding vector into a higher-level feature representation that can highlight the key information and semantic structure in the text.
[0077] In this embodiment, the semantic mapping unit may identify the keywords "product", "support", "seven-day no-reason return", etc. in the text, and consider the grammatical and semantic relationships between them to generate a semantic mapping feature that captures the user's intention to inquire about the product return policy.
[0078] Finally, the server uses the classification unit of the text intent prediction unit to process the semantic mapping features and generate a prediction result of the dialogue intent, that is, the first dialogue intent prediction result. The classification unit is usually a fully connected neural network layer that receives the semantic mapping features as input and outputs a probability distribution of one or more intent categories.
[0079] In this embodiment, the classification unit can output a probability distribution, in which the probability of the intent category "query return policy" is the highest. Therefore, the server uses "query return policy" as the first conversation intention prediction result, which means that the server predicts that the user's intention is to learn about the product's return policy based on the user conversation text record.
[0080] After the whole process is completed, the server successfully uses the text intent prediction unit in the teaching dialogue semantic recognition network to identify the intent of the user dialogue text record and generates a first dialogue intent prediction result, which can provide a basis for subsequent intent fusion or network optimization.
[0081] In a possible implementation, step S127 may include:
[0082] Step S1271, loading the user page behavior path data in the sample intelligent customer service dialogue data into the behavior intention prediction unit of the teaching dialogue semantic recognition network.
[0083] Step S1272, using the graph autoencoder of the behavior intention prediction unit to extract the graph autoencoder vector sequence corresponding to the user page behavior path data, using the semantic mapping unit of the behavior intention prediction unit to obtain graph convolution features based on the graph autoencoder vector sequence, and using the classification unit of the behavior intention prediction unit to obtain a second dialogue intention prediction result based on the graph convolution features.
[0084] In another scenario of this embodiment, when the server starts to process the sample intelligent customer service conversation data, it will pay special attention to the user page behavior path data part, which records the user's page jump and interaction behavior during the conversation. For example, the server retrieves a conversation record, in which the user page behavior path data shows that the user first visited the product details page, then viewed user reviews, then entered the shopping cart page, and finally stayed on the checkout page.
[0085] The server loads these user page behavior path data into the behavior intention prediction unit of the teaching dialogue semantic recognition network, preparing for subsequent behavior intention recognition.
[0086] Once the user page behavior path data is loaded into the behavior intention prediction unit, the server can start the graph autoencoder part of the behavior intention prediction unit. The graph autoencoder is a neural network model that can process graph structure data.
[0087] In this embodiment, the graph autoencoder first converts the user page behavior path data into graph structure data. The nodes in the graph represent different pages (such as product details page, user review page, shopping cart page, checkout page, etc.), and the edges represent the user's jump behavior between these pages. Then, the graph autoencoder learns the intrinsic representation of the graph data through unsupervised learning, extracts the features of each node and edge, and generates a graph autoencoder vector sequence, which captures key information such as the user's jump order between pages and the duration of stay.
[0088] Next, the server uses the semantic mapping unit of the behavior intention prediction unit to process the graph self-encoding vector sequence. The role of the semantic mapping unit is to convert the graph self-encoding vector sequence into a higher-level feature representation that can reflect the user's behavior patterns and preferences on the page.
[0089] In this embodiment, the semantic mapping unit may use a graph neural network model such as a graph convolutional network (GCN) to process the graph self-encoding vector sequence. Through the graph convolution operation, the model can capture the neighbor relationship between nodes and the overall structural information of the graph, and generate a graph convolution feature. This feature integrates the user's jump behavior between pages and the attribute information of the page itself, which can more accurately reflect the user's intention.
[0090] Finally, the server uses the classification unit of the behavior intention prediction unit to process the graph convolution features and generate a prediction result of the dialogue intent, that is, the second dialogue intent prediction result. The classification unit is usually a fully connected neural network layer that receives the graph convolution features as input and outputs the probability distribution of one or more intent categories.
[0091] In this embodiment, the classification unit outputs a probability distribution, in which the probability of the intent category "preparing to purchase goods" is the highest. This is because the user's behavior path shows that they are viewing product details, user reviews, and finally staying on the checkout page, all of which imply that the user has the intention to buy. Therefore, the server uses "preparing to purchase goods" as the second conversation intention prediction result, which means that the server predicts that the user's intention is to prepare to purchase goods based on the user's page behavior path data.
[0092] After the whole process is completed, the server successfully uses the behavior intention prediction unit in the teaching dialogue semantic recognition network to identify the intent of the user page behavior path data, and generates a second dialogue intention prediction result. The second dialogue intention prediction result can be combined with the text intention prediction result to provide comprehensive and accurate information for subsequent intent fusion or network optimization.
[0093] In a possible implementation, when the taught dialog semantics recognition network is used for local node dialog semantics recognition, step S128 may include:
[0094] Step S1281, loading the semantic mapping features and the graph convolution features into the fusion intention prediction unit of the teaching dialogue semantic recognition network.
[0095] Step S1282: Using the fusion unit of the fusion intention prediction unit, the semantic mapping feature is fused with the graph convolution feature to generate a fused semantic feature; using the classification unit of the fusion intention prediction unit, a third dialogue intention prediction result is generated based on the fused semantic feature.
[0096] In this embodiment, in another scenario example, assume that the intelligent customer service system of the e-commerce platform is processing a user's conversation, and the user enters the text: "Is there any discount for this TV?" At the same time, the user behavior path data shows that the user has previously browsed multiple TV product pages and stayed on the details page of a certain TV for a long time.
[0097] The server first loads the semantic mapping features generated by the text intent prediction unit based on the user conversation text record "Is there any discount for this TV?" into the fusion intent prediction unit that teaches the conversation semantic recognition network. At the same time, the server also loads the graph convolution features generated by the behavior intent prediction unit based on the behavior path data of the user's previous browsing of the TV product page into the text intent prediction unit.
[0098] In the fusion intention prediction unit, the server starts the fusion unit to process the two features. The fusion unit may adopt multiple fusion strategies, such as feature concatenation, weighted summation, etc.
[0099] In this embodiment, the fusion unit performs a splicing operation on the semantic mapping feature and the graph convolution feature. The semantic mapping feature may capture the key information of the user's inquiry about the promotion, while the graph convolution feature reflects the user's interest and attention in a certain TV product. By splicing these two features, the fusion unit generates a fused semantic feature containing text information and behavior information.
[0100] Once the fused semantic feature is generated, the server processes it using the classification unit of the fused intent prediction unit. The classification unit is usually a trained fully connected neural network layer that receives the fused semantic feature as input and outputs a probability distribution of one or more intent categories.
[0101] In this embodiment, the classification unit may output a probability distribution in which the intent category of "querying TV promotions" has the highest probability. This is because the fused semantic feature contains both the text information of the user asking about promotions and the user's attention and interest in a certain TV product. These two together point to the user's intention to query whether the TV has any promotions.
[0102] Therefore, the server uses "query TV promotions" as the third conversation intention prediction result, which integrates the user's text input and behavior data to provide more accurate user intention information for the intelligent customer service system.
[0103] After the whole process is completed, the server successfully uses the fusion intention prediction unit in the teaching dialogue semantic recognition network to generate a fusion semantic feature, and generates a third dialogue intention prediction result based on the fusion semantic feature. The third dialogue intention prediction result can provide strong support for subsequent dialogue generation or intelligent response.
[0104] And, in a possible implementation, when the taught dialog semantics recognition network is used for global dialog semantics recognition, step S128 may include:
[0105] Step S1283, determine the contextual semantic data of the previous predicted intention, where the contextual semantic data refers to the semantic information of the previous predicted intention, including one or more intention recognition results of previous conversation rounds or summary data of the user's historical conversations.
[0106] Step S1284, loads the contextual semantic data of the pre-predicted intention, the semantic mapping features generated by the text intention prediction unit based on the user conversation text record, and the graph convolution features generated by the behavior intention prediction unit based on the user page behavior path data into the fusion intention prediction unit of the teaching conversation semantic recognition network.
[0107] Step S1285, utilizing the cross-feature focusing processing branch of the fusion intention prediction unit, obtains text focusing features and behavior focusing features based on the contextual semantic data, the semantic mapping features and the graph convolution features.
[0108] Step S1286, using the fusion unit of the fusion intention prediction unit, fuses the text focus feature with the behavior focus feature to generate a fusion semantic feature, and using the classification unit of the fusion intention prediction unit to generate a third dialogue intention prediction result based on the fusion semantic feature.
[0109] In this embodiment, in another scenario, assume that an intelligent customer service system of an e-commerce platform is processing a continuous conversation of a user. The user has expressed interest in a certain mobile phone in the previous conversation round and asked about the detailed specifications of the mobile phone. Now, the user enters a new text: "Is this mobile phone in stock?" At the same time, the user behavior path data shows that the user has visited the details page of the mobile phone again and checked the inventory status.
[0110] The server first determines the contextual semantic data of the pre-predicted intent related to the current conversation turn. In this embodiment, the contextual semantic data includes the user intent identified by the intelligent customer service system in the previous conversation turn, that is, the user is interested in the detailed specifications of the mobile phone, which may be stored in the user's historical conversation record or intent recognition result cache.
[0111] The server loads the contextual semantic data of the pre-predicted intent, the semantic mapping features generated by the text intent prediction unit based on the user's newly input text "Is this phone in stock?", and the graph convolution features generated by the behavior intent prediction unit based on the user's page behavior path data into the fusion intent prediction unit of the teaching dialogue semantic recognition network.
[0112] In the fusion intent prediction unit, the server starts the cross-feature focus processing branch to process these features, which may first encode the contextual semantic data and convert it into a fixed-length contextual semantic vector. Then, it may perform an outer product operation on the semantic mapping features and the graph convolution features to generate a cross-feature matrix that captures the interactive information between text intent and behavioral intent.
[0113] Next, the cross-feature focusing processing branch combines the encoded context semantic vector with the cross-feature matrix. This combination may be achieved by broadcasting the context semantic vector on a predefined feature dimension or concatenating it with some parts of the cross-feature matrix. In this way, the context semantic information is integrated into the cross-feature.
[0114] Then, the cross-feature focus processing branch uses the attention mechanism to process the cross-feature matrix that incorporates contextual semantic information. The attention mechanism assigns different weights to different features in the cross-feature matrix, which represent the importance of the interaction between different features. By calculating these weights and multiplying them with the cross-feature matrix, the server obtains the weighted cross-feature matrix, namely the text-focused features and the behavior-focused features, which highlight the most important text intent and behavior intent information in the current dialogue round.
[0115] Once the text-focused features and behavior-focused features are obtained, the server processes these features using the fusion unit of the fusion intent prediction unit. The fusion unit may use simple concatenation, weighted summation, or other fusion strategies to generate a fused semantic feature that integrates text intent, behavior intent, and contextual semantic information, providing a comprehensive basis for intent recognition in the current dialogue round.
[0116] Finally, the server uses the classification unit of the fusion intention prediction unit to process the fusion semantic features and output a probability distribution of one or more intent categories. In this embodiment, the classification unit may output a probability distribution in which the intent category "query the mobile phone inventory status" has the highest probability. This is because the fusion semantic features combine the user's newly input text, the user's behavior path, and the previous conversation history, which together point to the user's intention to query whether the mobile phone is in stock.
[0117] Therefore, the server uses "query the mobile phone inventory status" as the third conversation intention prediction result. The third conversation intention prediction result not only takes into account the user's current input and behavior, but also combines the previous conversation history, providing the intelligent customer service system with more accurate global conversation intention recognition capabilities.
[0118] In a possible implementation, step S1285 may include:
[0119] Step S1285-1, encode the context semantic data based on a pre-trained word embedding model or a context encoder to convert the context semantic data into a context semantic vector of fixed length.
[0120] In another scenario example in this embodiment, assume that in an intelligent customer service system of an e-commerce platform, a user has multiple rounds of conversations with an intelligent customer service. In one round of conversation, the user enters the text: "Are there other colors available for this headset?" At the same time, the user's behavior path data shows that the user has previously browsed multiple headset products and is interested in a headset of a specific color. In addition, the intent recognition results of the previous rounds of conversations show that the user has been looking for a headset that meets his needs.
[0121] The server first obtains the intent recognition results of the previous conversation rounds or the summary data of the user's historical conversations as contextual semantic data. These contextual semantic data may include the recognition results of the user's previously expressed requirements for the color of the headphones, sound quality, etc.
[0122] The server encodes the contextual semantic data using pre-trained word embedding models (such as Word2Vec, GloVe, etc.) or context encoders (such as BERT, Transformer, etc.). The purpose of encoding is to convert the contextual semantic data in text form into a fixed-length contextual semantic vector that can capture the key features of the contextual information.
[0123] Step S1285-2, performing an outer product operation on the semantic mapping feature and the graph convolution feature to generate a corresponding cross feature matrix, wherein the cross feature matrix captures the interaction information between the semantic mapping feature and the graph convolution feature.
[0124] In this embodiment, the server then performs an outer product operation on the semantic mapping features generated by the text intention prediction unit based on the text currently input by the user and the graph convolution features generated by the behavior intention prediction unit based on the user behavior path data. The result of the outer product operation is a cross feature matrix, each element of which represents an interaction between the semantic mapping features and the graph convolution features. Through this cross feature matrix, the server can capture the potential correlation and mutual influence between text intention and behavior intention.
[0125] Step S1285-3, concatenate the encoded context semantic vector with the cross-feature matrix or broadcast it on a predefined feature dimension so as to integrate the context semantic vector into the cross-features of the cross-feature matrix.
[0126] In this embodiment, the server fuses the encoded context semantic vector with the cross-feature matrix. The fusion method can be to directly splice the context semantic vector with a certain dimension of the cross-feature matrix, or to broadcast the context semantic vector on a predefined feature dimension (i.e., copy the context semantic vector to match the dimension of the cross-feature matrix), and then perform element-by-element addition or multiplication operations with the cross-feature matrix, so that the context semantic information is effectively integrated into the cross-feature matrix.
[0127] Step S1285-4, use the attention mechanism to focus on the cross-feature matrix that integrates the context semantic vector, and output the corresponding focus weight vector, which represents the importance of the interaction between different features.
[0128] In this embodiment, the server then uses the attention mechanism to process the cross-feature matrix that incorporates the context semantic vector. The attention mechanism can assign different weights to different features in the cross-feature matrix, and these weights represent the importance of different feature interactions in the current dialogue round. By calculating the weights and multiplying them with the cross-feature matrix, the server obtains a weighted cross-feature matrix. In this weighted matrix, important feature interactions are enhanced, while unimportant feature interactions are weakened or ignored.
[0129] Step S1285-5, multiplying the weight vector by the cross-feature matrix to obtain a weighted cross-feature matrix, wherein the weighted cross-feature matrix includes text-focused features and behavior-focused features.
[0130] In this embodiment, the weighted cross-feature matrix contains the focus features of text intent and behavior intent, which not only capture the key features of the text information and behavior information input by the user in the current dialogue round, but also incorporate the previous dialogue history and contextual semantic information. The server can extract the text focus features and behavior focus features from the weighted cross-feature matrix, and these text focus features and behavior focus features will be used as inputs for subsequent classification units to generate the third dialogue intent prediction result.
[0131] Through the above steps, the server can use the cross-feature focus processing branch of the fusion intention prediction unit to effectively fuse contextual semantic data, semantic mapping features, and graph convolution features, generate text-focused features and behavior-focused features containing rich information, and provide strong support for global conversation semantic recognition.
[0132] In a possible implementation, step S120 may include:
[0133] Step S1201, using the taught dialogue semantic recognition network to perform dialogue semantic recognition on the user dialogue text records in the candidate sample intelligent customer service dialogue data, generate candidate taught dialogue intention recognition data, and construct dialogue intention prediction error parameters based on the candidate taught dialogue intention recognition data and the dialogue intention annotation data of the candidate sample intelligent customer service dialogue data.
[0134] In this embodiment, the server first selects a batch of sample intelligent customer service dialogue data as candidate sample intelligent customer service dialogue data. For each record in these candidate sample intelligent customer service dialogue data, the server first uses the taught dialogue semantic recognition network to perform dialogue semantic recognition on the user dialogue text record.
[0135] For example, a user conversation text record in a record in the candidate sample intelligent customer service conversation data is: "What is the battery life of this phone?" The taught conversation semantic recognition network will process this text and generate a candidate taught conversation intention recognition data, such as the predicted intention is "query the battery life of the phone."
[0136] At the same time, the server can view the conversation intent annotation data of this candidate sample intelligent customer service conversation data. The real intent annotation is also "query the battery life of the mobile phone." The server compares the candidate taught conversation intent recognition data with the conversation intent annotation data, calculates the difference between them, and thus constructs the conversation intent prediction error parameter.
[0137] Step S1202: After generating semantic mapping features corresponding to the user dialogue text records in the candidate sample intelligent customer service dialogue data using the initialized text guidance model, the semantic mapping features are converted into text tendency factors.
[0138] Next, the server uses an initialized text-guided model to process the user conversation text records in the candidate sample intelligent customer service conversation data. The text-guided model may be a pre-trained neural network model that can convert text into high-dimensional semantic representations.
[0139] For the above text record "How is the battery life of this phone?", the text-guided model will generate a corresponding semantic mapping feature, which captures the key semantic information in the text. Then, the server converts this semantic mapping feature into a text tendency factor, which may be a numerical value representing the tendency of this text record for a specific intent (such as "querying the battery life of the phone").
[0140] Step S1203, using the initialized behavior guidance model, after generating graph convolution features corresponding to the user page behavior path data in the candidate sample intelligent customer service dialogue data, the graph convolution features are converted into behavior tendency factors.
[0141] At the same time, the server will also use an initialized behavior guidance model to process the user page behavior path data in the candidate sample intelligent customer service conversation data. The behavior guidance model may be a graph neural network model that can process graph structured data and extract key features.
[0142] Suppose the user's behavior path data shows that the user has viewed the battery life specifications of multiple mobile phones and stayed on the battery life details page of a certain mobile phone for a long time. The behavior guidance model processes this data and generates a graph convolution feature that captures the user's behavior patterns and preferences on the page. The server then converts this graph convolution feature into a behavior tendency factor, which also represents the user's inclination towards a specific intent.
[0143] Step S1204: determine a first focus point error parameter based on the candidate taught dialogue intention recognition data and the first dialogue intention prediction result, determine a second focus point error parameter based on the candidate taught dialogue intention recognition data and the second dialogue intention prediction result, and determine a third focus point error parameter based on the candidate taught dialogue intention recognition data and the third dialogue intention prediction result.
[0144] The server already has candidate taught conversation intention recognition data and the first conversation intention prediction results, the second conversation intention prediction results, and the third conversation intention prediction results generated by the teaching conversation semantic recognition network. Next, the server can determine different focus point error parameters based on these data and prediction results.
[0145] For the first focus point error parameter, the server can compare the difference between the candidate taught dialogue intention recognition data and the first dialogue intention prediction result (generated based on the text intention prediction unit); for the second focus point error parameter, the server can compare the difference between the candidate taught dialogue intention recognition data and the second dialogue intention prediction result (generated based on the behavior intention prediction unit); for the third focus point error parameter, the server can compare the difference between the candidate taught dialogue intention recognition data and the third dialogue intention prediction result (generated based on the fusion intention prediction unit).
[0146] Step S1205, after weighting the first focus point error parameter based on the text tendency factor and weighting the second focus point error parameter based on the behavior tendency factor, the result is merged with the third focus point error parameter to generate a cross-mode matching error parameter.
[0147] The server uses the text tendency factor to weight the first focus point error parameter and uses the behavior tendency factor to weight the second focus point error parameter. This is done because different conversation texts and behaviors may have different importance for predicting specific intents, and this difference in importance can be reflected through weighting.
[0148] The weighted first and second focus error parameters are fused with the third focus error parameter to generate a cross-modal matching error parameter, which comprehensively considers text intent, behavioral intent and the interaction information between them, and is used to evaluate the performance of the taught dialogue semantic recognition network in global dialogue semantic recognition.
[0149] Step S1206: determining candidate taught training error parameters based on the dialogue intention prediction error parameters and the cross-modal matching error parameters.
[0150] Finally, the server combines the conversation intention prediction error parameters with the cross-modal matching error parameters to generate candidate taught training error parameters. The error parameters comprehensively evaluate the performance of the taught conversation semantic recognition network on the conversation semantic recognition task and provide a basis for subsequent network optimization.
[0151] In a possible implementation, step S1202 may include:
[0152] Step S1202-1, using the initialized text guidance model, convert the user conversation text record into a high-dimensional vector representation, and map the high-dimensional vector representation to a semantic space through a semantic mapping layer to form a semantic mapping feature. The semantic mapping layer is a fully connected layer.
[0153] Step S1202-2, principal component analysis is used to perform dimensionality reduction processing on the semantic mapping features. The feature vector after dimensionality reduction is the text tendency factor, which reflects the weight information of the key semantic direction and emotional tendency in the user conversation text.
[0154] In this embodiment, the server first loads a user conversation text record in the candidate sample intelligent customer service conversation data, for example: "How good is the camera of this phone?" Then, the server uses the initialized text guidance model (which may be a pre-trained BERT or GPT model) to process this text. The model converts each word in the text into a corresponding word vector and generates a high-dimensional vector representation considering the contextual relationship. This representation captures the overall semantic information of the text.
[0155] Next, the server passes the high-dimensional vector representation to the semantic mapping layer (usually a fully connected layer) in the text-guided model, which further processes the high-dimensional vector and maps it to a specific semantic space to generate a semantic mapping feature, which is an abstract representation of the key semantic information in the text.
[0156] The server uses principal component analysis (PCA) or other dimensionality reduction techniques to reduce the dimensionality of semantic mapping features. The purpose of dimensionality reduction is to remove redundant information in the features while retaining the most important parts. The feature vector after dimensionality reduction is the text tendency factor, which reflects the weight information of the key semantic direction and emotional tendency in the user's conversation text. For example, in this example, the text tendency factor may indicate the user's concern about the "mobile phone camera effect".
[0157] In a possible implementation, step S1203 may include:
[0158] Step S1203 - 1 , converting the user page behavior path data into graph structure data, wherein nodes in the graph structure data represent pages, and edges represent the user's jump behavior between different pages.
[0159] Step S1203 - 2 , assigning corresponding features to each node and edge of the graph structure data, wherein the features include page dwell time and jump frequency.
[0160] Step S1203-3, using the initialized behavior guidance model to process the graph structure data, and extracting the graph convolution features of the user's page behavior path through a graph convolution operation, wherein the graph convolution features integrate the user's jump behavior between pages and the attribute information of the page itself.
[0161] Step S1203-4, performing feature mapping after pooling and normalization operations on the graph convolution features to generate a behavior tendency factor, which represents the weight information of the user's behavior pattern and preference.
[0162] In this embodiment, the server loads the user page behavior path data in the candidate sample intelligent customer service dialogue data, which describes the user's browsing and jumping behavior on the platform. The server converts these behavior path data into graph structure data, where each node represents a page and the edge represents the user's jumping behavior between different pages.
[0163] For each node and edge in the graph structure data, the server assigns corresponding features, which may include the user's stay time on a certain page, the frequency of jumping from one page to another, etc. These features reflect the user's behavior patterns and preferences.
[0164] The server uses an initialized behavior guidance model (which may be a graph convolutional network, such as GCN) to process graph structure data. The model extracts graph convolution features of the user's page behavior path through graph convolution operations. These graph convolution features integrate the user's jump behavior between pages and the attribute information of the page itself, and can fully reflect the user's behavior pattern.
[0165] The server performs pooling and normalization operations on the extracted graph convolution features to remove redundant information and unify the feature scale. Then, the server performs feature mapping to convert the processed graph convolution features into behavioral tendency factors, which represent the user's behavior pattern and preference weight information, such as the user's preference for a certain type of product.
[0166] Through the above steps, the server can generate text tendency factors and behavior tendency factors, which will be used in the subsequent training error parameter calculation and model optimization process.
[0167] In a possible implementation, step S130 may include:
[0168] Step S131, loading the user dialogue text records in the test sample dialogue data into the taught dialogue semantic recognition network.
[0169] Step S132, using the encoder of the taught dialogue semantic recognition network to extract the semantic encoding vector corresponding to the user dialogue text record.
[0170] Step S133, using the semantic mapping unit of the taught dialogue semantic recognition network to obtain semantic mapping features based on the semantic encoding vector.
[0171] Step S134, using the classification unit of the taught dialogue semantic recognition network, obtaining a dialogue intention prediction result based on the semantic mapping feature.
[0172] Step S135 , constructing a dialogue intention prediction error parameter based on the dialogue intention prediction result and the dialogue intention annotation data of the test sample dialogue data as a taught response training error parameter.
[0173] In this embodiment, the server starts to process the test sample dialogue data selected from the sample intelligent customer service dialogue data, and the test sample dialogue data is used to evaluate the performance of the candidate taught dialogue semantic recognition network. For example, the server selects a test sample dialogue data from the test data set, in which the user dialogue text record is: "How long is the warranty period of this mobile phone?"
[0174] The server loads the user conversation text record into the candidate taught conversation semantic recognition network, preparing for conversation semantic recognition.
[0175] Once the user conversation text records are loaded into the candidate taught conversation semantic recognition network, the server can start the encoder part of the network. The encoder is a deep learning model that is able to process text data and extract key information.
[0176] In this example, the encoder converts each word in the user conversation text record "How long is the warranty period of this phone?" into a word vector, and considers the context to generate a fixed-length semantic encoding vector that captures the overall semantic information of the text.
[0177] Next, the server processes the semantic encoding vector using the semantic mapping unit of the candidate taught dialogue semantic recognition network. The role of the semantic mapping unit is to transform the semantic encoding vector into a higher-level feature representation that can more directly reflect the user's intention.
[0178] In this example, the semantic mapping unit receives the semantic encoding vector as input and generates a semantic mapping feature through a series of nonlinear transformations. The feature captures the key semantic information of the user asking about the warranty period of the mobile phone.
[0179] The server then processes the semantic mapping features using the classification unit of the candidate taught dialog semantic recognition network. The classification unit is a fully connected neural network layer that receives the semantic mapping features as input and outputs a probability distribution over one or more intent categories.
[0180] In this example, the classification unit outputs a probability distribution in which the probability of the intent category "query the warranty period of the mobile phone" is the highest. Therefore, the server predicts "query the warranty period of the mobile phone" as the dialogue intent prediction result.
[0181] Finally, the server compares the conversation intent prediction result with the conversation intent annotation data of the test sample conversation data. In this example, the conversation intent annotation data of the test sample conversation data is also "query the warranty period of the mobile phone."
[0182] The server calculates the difference between the prediction result and the annotated data and generates a dialogue intent prediction error parameter, which reflects the performance of the candidate taught dialogue semantic recognition network on the test sample dialogue data. Since the prediction result is exactly the same as the annotated data, this error parameter may be a small value.
[0183] The server uses this conversation intention prediction error parameter as the taught response training error parameter for subsequent network optimization and model adjustment. Through continuous iteration and optimization, the server can gradually improve the performance of the candidate taught conversation semantic recognition network, enabling it to more accurately identify the user's conversation intention.
[0184] In a possible implementation, step S130 may further include:
[0185] Step S136, loading the teaching sample intelligent customer service dialogue data into the teaching dialogue semantic recognition network to generate corresponding first dialogue intention prediction results, second dialogue intention prediction results and third dialogue intention prediction results.
[0186] Step S137: determine a first dialogue intention prediction error parameter based on the dialogue intention annotation data of the teaching sample intelligent customer service dialogue data and the first dialogue intention prediction result; determine a second dialogue intention prediction error parameter based on the dialogue intention annotation data of the teaching sample intelligent customer service dialogue data and the second dialogue intention prediction result; determine a third dialogue intention prediction error parameter based on the dialogue intention annotation data of the teaching sample intelligent customer service dialogue data and the third dialogue intention prediction result; and fuse the first dialogue intention prediction error parameter, the second dialogue intention prediction error parameter and the third dialogue intention prediction error parameter to generate a teaching training error parameter.
[0187] In this embodiment, the server selects a portion of the sample intelligent customer service dialogue data set as teaching sample intelligent customer service dialogue data, and these teaching sample intelligent customer service dialogue data are used to teach and train the teaching dialogue semantic recognition network to optimize its performance.
[0188] For example, the server selects a teaching sample intelligent customer service conversation data, which includes a user conversation text record: "What colors are available for this phone?" and the corresponding user page behavior path data (such as the user browsed multiple color option pages).
[0189] The server loads this teaching sample intelligent customer service dialogue data into the teaching dialogue semantic recognition network, preparing for dialogue semantic recognition.
[0190] Once the teaching sample intelligent customer service dialogue data is loaded into the teaching dialogue semantic recognition network, the server can respectively start the text intent prediction unit, the behavior intent prediction unit and the fusion intent prediction unit in the network.
[0191] The text intention prediction unit processes the user conversation text record and generates a first conversation intention prediction result, for example, predicting that the user's intention is to "query the mobile phone color options."
[0192] The behavior intention prediction unit processes the user page behavior path data and generates a second conversation intention prediction result, which also predicts that the user's intention is "querying mobile phone color options", but this time it is based on the user's behavior path.
[0193] The fusion intention prediction unit combines the outputs of the text intention prediction unit and the behavior intention prediction unit to generate a third dialogue intention prediction result. This third dialogue intention prediction result comprehensively considers the text and behavior information, and may still be "querying mobile phone color options."
[0194] The server then obtains the conversation intent annotation data of the teaching sample intelligent customer service conversation data. The annotation data is the real user intent and is used for comparison with the prediction results.
[0195] In this example, the conversation intent annotation data is also "query phone color options".
[0196] The server calculates the difference between the first dialogue intention prediction result and the labeled data to generate a first dialogue intention prediction error parameter; calculates the difference between the second dialogue intention prediction result and the labeled data to generate a second dialogue intention prediction error parameter; calculates the difference between the third dialogue intention prediction result and the labeled data to generate a third dialogue intention prediction error parameter. These error parameters quantify the gap between the prediction result and the true intention, reflecting the performance of the taught dialogue semantic recognition network in different aspects.
[0197] Finally, the server fuses the first, second, and third dialogue intention prediction error parameters to generate a teaching training error parameter. The fusion process may involve weighted averaging or other statistical operations on the error parameters.
[0198] The training error parameter comprehensively reflects the overall performance of the training dialogue semantic recognition network in terms of text intent recognition, behavior intent recognition, and fusion intent recognition. The server can use this error parameter to evaluate the performance of the network and guide subsequent network optimization and adjustment.
[0199] Through the above steps, the server can perform conversation semantics recognition on the teaching sample intelligent customer service conversation data based on the teaching conversation semantic recognition network, and determine the teaching training error parameters, providing a basis for further optimization of the network.
[0200] In a possible implementation, step S140 may include:
[0201] Step S141, obtaining taught sample intelligent customer service dialogue data from the sample intelligent customer service dialogue data.
[0202] Step S142, using the taught dialogue semantic recognition network optimized by the previous round of iterative turn-based knowledge learning to perform dialogue semantic recognition on the user dialogue text records in the taught sample intelligent customer service dialogue data, generate taught dialogue intention recognition data, and construct dialogue intention prediction error parameters based on the taught dialogue intention recognition data and the dialogue intention annotation data of the taught sample intelligent customer service dialogue data.
[0203] Step S143, based on the taught dialogue intention recognition data and the teaching dialogue semantic recognition network optimized by the iterative turn-based knowledge learning in this round, the first dialogue intention prediction result, the second dialogue intention prediction result and the third dialogue intention prediction result generated by performing dialogue semantic recognition on the taught sample intelligent customer service dialogue data, determine the cross-mode matching error parameter.
[0204] Step S144: determining a taught training error parameter based on the dialogue intention prediction error parameter and the cross-modal matching error parameter.
[0205] Step S145, after optimizing the taught dialog semantic recognition network optimized by the previous round of iterative turn knowledge learning based on the taught training error parameter, a taught dialog semantic recognition network optimized by the current round of iterative turn knowledge learning is generated.
[0206] In this embodiment, the server starts a new round of iterative optimization process. First, a portion of data is randomly selected from the stored sample intelligent customer service dialogue data set or selected according to a certain strategy as the taught sample intelligent customer service dialogue data, which will be used to teach the taught dialogue semantic recognition network of the previous round of iterative optimization for learning.
[0207] For example, the server selected 100 conversation records as taught sample intelligent customer service conversation data, which contained various user queries and intentions.
[0208] The server loads the user dialogue text records in the taught sample intelligent customer service dialogue data into the taught dialogue semantic recognition network optimized in the previous round of iteration. The taught dialogue semantic recognition network performs semantic recognition on each user dialogue text record and generates taught dialogue intention recognition data.
[0209] For example, for the user input text "Does this TV support 4K resolution?", the taught dialogue semantic recognition network may recognize that the intent is "query the TV resolution".
[0210] The server compares the taught conversation intent recognition data with the conversation intent annotation data of the taught sample intelligent customer service conversation data, calculates the difference between them, and thus constructs a conversation intent prediction error parameter, which measures the accuracy of the taught conversation semantic recognition network in identifying user intent.
[0211] Continuing with the above example, if the dialogue intent annotation data is also "query TV resolution", but the recognition result of the taught dialogue semantic recognition network is "query TV size", then the server can calculate the difference between the two and generate an error parameter.
[0212] The server uses the teaching dialogue semantic recognition network optimized by this round of iterative knowledge learning to perform dialogue semantic recognition on the same taught sample intelligent customer service dialogue data, and generates the first dialogue intention prediction result (based on the text intention prediction unit), the second dialogue intention prediction result (based on the behavior intention prediction unit) and the third dialogue intention prediction result (based on the fusion intention prediction unit).
[0213] The server then compares the taught conversation intent recognition data with these three prediction results to determine the cross-modal matching error parameter, which measures the performance of the taught conversation semantic recognition network in fusing textual intent and behavioral intent.
[0214] The server fuses the dialogue intention prediction error parameters with the cross-modal matching error parameters to generate taught training error parameters, which comprehensively reflect the overall performance of the taught dialogue semantic recognition network on the dialogue semantic recognition task.
[0215] Based on the taught training error parameters, the server uses an optimization algorithm (such as a gradient descent algorithm) to adjust the parameters of the taught dialogue semantic recognition network optimized in the previous round of iterations to reduce the error parameters and improve the performance of the network.
[0216] After parameter adjustment and optimization, the server generates a taught conversation semantic recognition network optimized by knowledge learning in this round of iteration. The performance of this network in conversation semantic recognition is improved compared with the previous round of iteration. The server can use it for the next round of iteration or deploy it in actual applications.
[0217] In a possible implementation, the method further includes:
[0218] Step A110, determining the training value corresponding to each sample intelligent customer service dialogue data in the sample intelligent customer service dialogue data.
[0219] Step A120, in the process of learning the taught dialogue semantic recognition network and the teaching knowledge, based on the descending order of the training value, the taught sample intelligent customer service dialogue data and the teaching sample intelligent customer service dialogue data required for the turn-based knowledge learning are selected from the sample intelligent customer service dialogue data respectively.
[0220] In this embodiment, when processing the sample intelligent customer service dialogue data, the server first evaluates the training value of each dialogue data. The training value can be determined based on multiple factors, such as the complexity of the dialogue, the diversity of intent contained in the dialogue, the novelty of the dialogue data, etc.
[0221] For example, the server can evaluate the complexity of the conversation by analyzing indicators such as the length of the conversation text, the number of keywords contained, the number of product categories involved, etc. For complex conversations that contain multiple intents or involve multiple product categories, the server can assign a higher training value.
[0222] In addition, the server can also consider the novelty of the conversation data. If a question or intention involved in a conversation rarely appears in previous conversation data, the server can consider this conversation to have higher training value because it helps improve the model's ability to identify unknown or rare situations.
[0223] When performing knowledge learning of the taught dialogue semantic recognition network, the server may select taught sample intelligent customer service dialogue data from the sample intelligent customer service dialogue data in descending order of training value.
[0224] Specifically, the server can first sort all the conversation data according to their training value, and then select the conversation data with the highest training value as the teaching sample. By prioritizing the conversation data with high training value, the server can more effectively improve the performance of the model because these data usually contain richer information or more difficult to identify situations.
[0225] Similarly, in the process of teaching knowledge learning, the server will also select teaching sample intelligent customer service dialogue data from the sample intelligent customer service dialogue data according to the descending order of training value.
[0226] The teaching sample intelligent customer service conversation data is used to guide the learning process of the taught conversation semantic recognition network. By selecting teaching samples with high training value, the server can ensure that the teaching conversation semantic recognition network can provide accurate and challenging guidance, thereby helping the taught conversation semantic recognition network to better learn and optimize.
[0227] Suppose that when the server is processing an intelligent customer service conversation dataset of an e-commerce platform, it finds that there is a conversation data involving a user asking for detailed specifications and functions of a new smart watch. Since this smart watch is a new product, there is little related content in the previous conversation data, so the server believes that this conversation has high training value.
[0228] When learning the knowledge of the taught conversation semantic recognition network, the server can first select this conversation as a taught example. By learning this conversation, the model can better understand the user's query intention for new products and improve the ability to recognize similar questions.
[0229] At the same time, the server will also select this dialogue as a teaching example to guide the learning process of the taught dialogue semantic recognition network. Through the accurate recognition and guidance of this dialogue by the teaching dialogue semantic recognition network, the taught dialogue semantic recognition network can better learn effective methods to deal with new product query problems.
[0230] In this way, the server can fully utilize the training value of the sample intelligent customer service conversation data and effectively improve the performance of the conversation semantic recognition network.
[0231] Figure 2 The hardware structure of the intelligent customer service platform system 100 provided in the embodiment of the present application for implementing the above-mentioned AI dialogue semantic recognition method for intelligent customer service is shown as follows: Figure 2 As shown, the intelligent customer service platform system 100 may include a processor 110 , a machine-readable storage medium 120 , a bus 130 , and a communication unit 140 .
[0232] In an alternative embodiment, the intelligent customer service platform system 100 can be a single server or a server group. The server group can be centralized or distributed (for example, the intelligent customer service platform system 100 can be a distributed system). In an alternative embodiment, the intelligent customer service platform system 100 can be local or remote. For example, the intelligent customer service platform system 100 can access information and / or data stored in a machine-readable storage medium 120 via a network. For another example, the intelligent customer service platform system 100 can be directly connected to the machine-readable storage medium 120 to access the stored information and / or data. In an alternative embodiment, the intelligent customer service platform system 100 can be implemented on a cloud platform. By way of example only, the cloud platform can include a private cloud, a public cloud, an aggregated cloud, a community cloud, a distributed cloud, an internal cloud, a multi-layer cloud, etc. or any integration thereof.
[0233] The machine-readable storage medium 120 can store data and / or instructions. In an alternative embodiment, the machine-readable storage medium 120 can store data obtained from an external terminal. In an alternative embodiment, the machine-readable storage medium 120 can store data and / or instructions used by the intelligent customer service platform system 100 to execute or use to complete the exemplary method described in this application. In an alternative embodiment, the machine-readable storage medium 120 may include a large-capacity memory, a removable memory, a volatile read-write memory, a read-only memory, etc. or any integration thereof. Exemplary large-capacity memory may include a disk, an optical disk, a solid-state disk, etc. Exemplary removable memory may include a flash drive, a floppy disk, an optical disk, a memory card, a compressed disk, a tape, etc.
[0234] During the specific implementation process, multiple processors 110 execute computer executable instructions stored in the machine-readable storage medium 120, so that the processor 110 can execute the AI dialogue semantic recognition method for intelligent customer service in the above method embodiment. The processor 110, the machine-readable storage medium 120 and the communication unit 140 are connected through the bus 130, and the processor 110 can be used to describe the sending and receiving actions of the communication unit 140.
[0235] The specific implementation process of the processor 110 can be found in the various method embodiments executed by the above-mentioned intelligent customer service platform system 100. The implementation principles and technical effects are similar and will not be repeated in this embodiment.
[0236] In addition, an embodiment of the present application also provides a readable storage medium, in which computer executable instructions are pre-installed. When the processor executes the computer executable instructions, the above-mentioned AI dialogue semantic recognition method for intelligent customer service is implemented.
[0237] Similarly, it should be noted that in order to simplify the description disclosed in the present application and thereby facilitate the understanding of one or more embodiments of the invention, in the foregoing description of the embodiments of the present application, multiple features are sometimes grouped into one embodiment, drawing or description thereof.
Claims
1. An AI conversation semantic recognition method for intelligent customer service, characterized in that: The method comprises: Obtain sample intelligent customer service conversation data and obtain the taught conversation semantic recognition network and the teaching conversation semantic recognition network optimized by the previous round of iterative turn-based knowledge learning, each of the sample intelligent customer service conversation data including a user conversation text record and corresponding user page behavior path data; Based on the semantic recognition data generated by performing conversation semantic recognition on the candidate sample intelligent customer service conversation data obtained from the sample intelligent customer service conversation data respectively by the taught conversation semantic recognition network and the teaching conversation semantic recognition network, a candidate taught training error parameter is determined, and the taught conversation semantic recognition network is optimized according to the candidate taught training error parameter to obtain a candidate taught conversation semantic recognition network; Determine a taught response training error parameter based on semantic recognition data generated by performing conversation semantic recognition on test sample conversation data obtained from the sample intelligent customer service conversation data by the candidate taught conversation semantic recognition network and conversation intention annotation data of the test sample conversation data, and determine a teaching training error parameter based on semantic recognition data generated by performing conversation semantic recognition on teaching sample intelligent customer service conversation data obtained from the sample intelligent customer service conversation data by the teaching conversation semantic recognition network and conversation intention annotation data of the teaching sample intelligent customer service conversation data; Based on the taught response training error parameter and the teaching training error parameter, a teaching dialogue semantic recognition network optimized by the current round of iterative turn knowledge learning is obtained; and according to the teaching dialogue semantic recognition network optimized by the current round of iterative turn knowledge learning and the sample intelligent customer service dialogue data, knowledge learning is performed on the taught dialogue semantic recognition network optimized by the previous round of iterative turn knowledge learning to generate a taught dialogue semantic recognition network optimized by the current round of iterative turn knowledge learning; According to the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network optimized by the current round of iterative turn-based knowledge learning, return to the step of obtaining the taught dialogue semantic recognition network and the teaching dialogue semantic recognition network optimized by the previous round of iterative turn-based knowledge learning to continue the turn-based knowledge learning, and generate a target dialogue semantic recognition network based on the taught dialogue semantic recognition network optimized when the network converges, and the target dialogue semantic recognition network is used to perform dialogue semantic recognition on any input intelligent customer service dialogue data; The step of teaching the conversation semantics recognition network to perform conversation semantics recognition on the sample intelligent customer service conversation data includes: Loading the sample intelligent customer service dialogue data into the teaching dialogue semantic recognition network; Using the text intention prediction unit in the teaching dialogue semantic recognition network, the user dialogue text record in the sample intelligent customer service dialogue data is recognized to generate a first dialogue intention prediction result; Using the behavior intention prediction unit in the teaching dialogue semantic recognition network, the user page behavior path data in the sample intelligent customer service dialogue data is identified to generate a second dialogue intention prediction result; Using the fusion intention prediction unit in the teaching dialogue semantic recognition network, a fusion semantic feature is generated based on the semantic mapping feature generated by the text intention prediction unit based on the user dialogue text record and the graph convolution feature generated by the behavior intention prediction unit based on the user page behavior path data, and a third dialogue intention prediction result is generated based on the fusion semantic feature, wherein the graph convolution feature reflects the user's behavior pattern and preference on the page; When the taught dialogue semantic recognition network is used for local node dialogue semantic recognition, the fusion intention prediction unit in the teaching dialogue semantic recognition network is used to generate a fusion semantic feature based on the semantic mapping feature generated by the text intention prediction unit based on the user dialogue text record and the graph convolution feature generated by the behavior intention prediction unit based on the user page behavior path data, and a third dialogue intention prediction result is generated based on the fusion semantic feature, including: Loading the semantic mapping features and the graph convolution features into a fusion intention prediction unit of a teaching dialogue semantic recognition network; Using the fusion unit of the fusion intention prediction unit, the semantic mapping feature is fused with the graph convolution feature to generate a fused semantic feature, and using the classification unit of the fusion intention prediction unit, based on the fused semantic feature, a third dialogue intention prediction result is generated; And, when the taught dialogue semantic recognition network is used for global dialogue semantic recognition, the fusion intention prediction unit in the teaching dialogue semantic recognition network is used to generate a fusion semantic feature based on the semantic mapping feature generated by the text intention prediction unit based on the user dialogue text record and the graph convolution feature generated by the behavior intention prediction unit based on the user page behavior path data, and a third dialogue intention prediction result is generated based on the fusion semantic feature, including: Determine contextual semantic data of the pre-predicted intent, where the contextual semantic data refers to semantic information of the pre-predicted intent, including intent recognition results of one or more previous conversation rounds or summary data of the user's historical conversations; Loading the contextual semantic data of the pre-predicted intention, the semantic mapping features generated by the text intention prediction unit based on the user conversation text record, and the graph convolution features generated by the behavior intention prediction unit based on the user page behavior path data into the fusion intention prediction unit of the teaching conversation semantic recognition network; Utilizing the cross-feature focusing processing branch of the fusion intention prediction unit, a text focusing feature and a behavior focusing feature are obtained based on the contextual semantic data, the semantic mapping feature and the graph convolution feature; Using the fusion unit of the fusion intention prediction unit, the text focus feature and the behavior focus feature are fused to generate a fusion semantic feature, and using the classification unit of the fusion intention prediction unit, based on the fusion semantic feature, a third dialogue intention prediction result is generated; Among them, the step of using the cross-feature focusing processing branch of the fusion intention prediction unit to obtain text focusing features and behavior focusing features based on the context semantic data, the semantic mapping features and the graph convolution features includes: Encoding the contextual semantic data based on a pre-trained word embedding model or a context encoder to convert the contextual semantic data into a contextual semantic vector of fixed length; Performing an outer product operation on the semantic mapping feature and the graph convolution feature to generate a corresponding cross feature matrix, wherein the cross feature matrix captures the interaction information between the semantic mapping feature and the graph convolution feature; Concatenating the encoded context semantic vector with the cross-feature matrix or broadcasting the context semantic vector on a predefined feature dimension so as to integrate the context semantic vector into the cross-features of the cross-feature matrix; Use the attention mechanism to focus the cross-feature matrix fused with the context semantic vector, and output the corresponding focus weight vector, which represents the importance of the interaction between different features; The weight vector is multiplied by the cross-feature matrix to obtain a weighted cross-feature matrix, wherein the weighted cross-feature matrix includes text-focused features and behavior-focused features.
2. The AI dialogue semantic recognition method for intelligent customer service according to claim 1 is characterized in that: The step of performing dialogue semantic recognition on the sample intelligent customer service dialogue data by the taught dialogue semantic recognition network includes: Loading the user dialogue text records in the sample intelligent customer service dialogue data into the taught dialogue semantic recognition network; Extracting a semantic encoding vector corresponding to the user conversation text record using an encoder of the taught conversation semantic recognition network; Using a semantic mapping unit of the taught conversation semantic recognition network, obtaining a semantic mapping feature based on the semantic encoding vector, wherein the semantic mapping feature captures key information and semantic structure in the user conversation text record; The classification unit of the taught dialogue semantic recognition network is used to obtain a dialogue intention prediction result based on the semantic mapping feature.
3. The AI dialogue semantic recognition method for intelligent customer service according to claim 1 is characterized in that: The method of using the text intention prediction unit in the teaching dialogue semantic recognition network to recognize the user dialogue text record in the sample intelligent customer service dialogue data and generate a first dialogue intention prediction result includes: Loading the user dialogue text records in the sample intelligent customer service dialogue data into the text intention prediction unit of the teaching dialogue semantic recognition network; Using the encoder of the text intention prediction unit, extract the semantic encoding vector corresponding to the user dialogue text record, using the semantic mapping unit of the text intention prediction unit, generate the semantic mapping feature based on the semantic encoding vector, and using the classification unit of the text intention prediction unit, obtain a first dialogue intention prediction result based on the semantic mapping feature; The step of using the behavior intention prediction unit in the teaching dialogue semantic recognition network to identify the user page behavior path data in the sample intelligent customer service dialogue data and generate a second dialogue intention prediction result includes: Loading the user page behavior path data in the sample intelligent customer service dialogue data into the behavior intention prediction unit of the teaching dialogue semantic recognition network; Utilizing the graph autoencoder of the behavior intention prediction unit, extract the graph autoencoder vector sequence corresponding to the user page behavior path data; utilizing the semantic mapping unit of the behavior intention prediction unit, obtain graph convolution features based on the graph autoencoder vector sequence; utilizing the classification unit of the behavior intention prediction unit, obtain the second dialogue intention prediction result based on the graph convolution features.
4. The AI dialogue semantic recognition method for intelligent customer service according to claim 1 is characterized in that: The determining of candidate taught training error parameters based on semantic recognition data generated by performing conversation semantic recognition on candidate sample intelligent customer service conversation data obtained from the sample intelligent customer service conversation data respectively based on the taught conversation semantic recognition network and the teaching conversation semantic recognition network includes: Using the taught conversation semantic recognition network to perform conversation semantic recognition on user conversation text records in the candidate sample intelligent customer service conversation data, generating candidate taught conversation intention recognition data, and constructing conversation intention prediction error parameters based on the candidate taught conversation intention recognition data and conversation intention annotation data of the candidate sample intelligent customer service conversation data; After generating semantic mapping features corresponding to user dialogue text records in the candidate sample intelligent customer service dialogue data by using the initialized text guidance model, the semantic mapping features are converted into text tendency factors; After generating graph convolution features corresponding to the user page behavior path data in the candidate sample intelligent customer service dialogue data by using the initialized behavior guidance model, the graph convolution features are converted into behavior tendency factors; Determine a first focus point error parameter based on the candidate taught dialogue intention recognition data and the first dialogue intention prediction result, determine a second focus point error parameter based on the candidate taught dialogue intention recognition data and the second dialogue intention prediction result, and determine a third focus point error parameter based on the candidate taught dialogue intention recognition data and the third dialogue intention prediction result; After weighting the first focus point error parameter based on the text tendency factor and weighting the second focus point error parameter based on the behavior tendency factor, the weighted parameters are merged with the third focus point error parameter to generate a cross-mode matching error parameter; Determining a candidate taught training error parameter based on the dialogue intention prediction error parameter and the cross-modal matching error parameter; The step of using the initialized text guidance model to generate semantic mapping features corresponding to the user dialogue text records in the candidate sample intelligent customer service dialogue data and then converting the semantic mapping features into text tendency factors includes: Using the initialized text-guided model, the user conversation text record is converted into a high-dimensional vector representation, and the high-dimensional vector representation is mapped to a semantic space through a semantic mapping layer to form a semantic mapping feature, wherein the semantic mapping layer is a fully connected layer; The principal component analysis is used to reduce the dimension of the semantic mapping features. The feature vector after the dimension reduction is the text tendency factor, which reflects the weight information of the key semantic direction and emotional tendency in the user dialogue text; The step of using the initialized behavior guidance model to generate graph convolution features corresponding to the user page behavior path data in the candidate sample intelligent customer service dialogue data and then converting the graph convolution features into behavior tendency factors includes: Converting the user page behavior path data into graph structure data, wherein nodes in the graph structure data represent pages, and edges represent user jump behaviors between different pages; Assigning corresponding features to each node and edge of the graph structure data, wherein the features include page dwell time and jump frequency; The graph structure data is processed using an initialized behavior guidance model, and graph convolution features of the user's page behavior path are extracted through a graph convolution operation, wherein the graph convolution features integrate the user's jump behavior between pages and the attribute information of the page itself; After pooling and normalization operations are performed on the graph convolution features, feature mapping is performed to generate a behavior tendency factor, which represents the weight information of the user's behavior pattern and preference.
5. The AI dialogue semantic recognition method for intelligent customer service according to claim 1 is characterized in that: The step of determining a taught response training error parameter based on the semantic recognition data generated by performing dialogue semantic recognition on the test sample dialogue data obtained from the sample intelligent customer service dialogue data by the candidate taught dialogue semantic recognition network and the dialogue intention annotation data of the test sample dialogue data comprises: Loading the user dialogue text records in the test sample dialogue data into the taught dialogue semantic recognition network; Extracting a semantic encoding vector corresponding to the user conversation text record using an encoder of the taught conversation semantic recognition network; Using the semantic mapping unit of the taught dialogue semantic recognition network, obtaining semantic mapping features based on the semantic encoding vector; Using the classification unit of the taught dialogue semantic recognition network, obtaining a dialogue intention prediction result based on the semantic mapping feature; A dialogue intention prediction error parameter is constructed based on the dialogue intention prediction result and the dialogue intention annotation data of the test sample dialogue data as a taught response training error parameter.
6. The AI dialogue semantic recognition method for intelligent customer service according to claim 1 is characterized in that: The method of determining the teaching training error parameter based on the semantic recognition data generated by performing dialogue semantic recognition on the teaching sample intelligent customer service dialogue data obtained from the sample intelligent customer service dialogue data by the teaching dialogue semantic recognition network and the dialogue intention annotation data of the teaching sample intelligent customer service dialogue data comprises: Loading the teaching sample intelligent customer service dialogue data into the teaching dialogue semantic recognition network to generate corresponding first dialogue intention prediction results, second dialogue intention prediction results, and third dialogue intention prediction results; A first dialogue intention prediction error parameter is determined based on the dialogue intention annotation data of the teaching sample intelligent customer service dialogue data and the first dialogue intention prediction result; a second dialogue intention prediction error parameter is determined based on the dialogue intention annotation data of the teaching sample intelligent customer service dialogue data and the second dialogue intention prediction result; a third dialogue intention prediction error parameter is determined based on the dialogue intention annotation data of the teaching sample intelligent customer service dialogue data and the third dialogue intention prediction result; the first dialogue intention prediction error parameter, the second dialogue intention prediction error parameter and the third dialogue intention prediction error parameter are integrated to generate a teaching training error parameter.
7. The AI dialogue semantic recognition method for intelligent customer service according to claim 1 is characterized in that: The method of performing knowledge learning on the taught dialogue semantic recognition network optimized by the previous round of iterative turn-based knowledge learning based on the teaching dialogue semantic recognition network optimized by the current round of iterative turn-based knowledge learning and the sample intelligent customer service dialogue data to generate the taught dialogue semantic recognition network optimized by the current round of iterative turn-based knowledge learning includes: Acquire teachable sample intelligent customer service dialogue data from the sample intelligent customer service dialogue data; Using the taught conversation semantic recognition network optimized by the previous round of iterative turn-based knowledge learning, the user conversation text records in the taught sample intelligent customer service conversation data are subjected to conversation semantic recognition to generate taught conversation intention recognition data, and based on the taught conversation intention recognition data and the conversation intention annotation data of the taught sample intelligent customer service conversation data, a conversation intention prediction error parameter is constructed; Determine a cross-mode matching error parameter based on the taught conversation intention recognition data and the teaching conversation semantic recognition network optimized by the iterative turn-based knowledge learning in this round to generate a first conversation intention prediction result, a second conversation intention prediction result, and a third conversation intention prediction result by performing conversation semantic recognition on the taught sample intelligent customer service conversation data; Determining a taught training error parameter based on the dialogue intention prediction error parameter and the cross-modal matching error parameter; After optimizing the taught dialogue semantic recognition network optimized by the previous round of iterative turn-based knowledge learning based on the taught training error parameter, a taught dialogue semantic recognition network optimized by the current round of iterative turn-based knowledge learning is generated; Wherein, the method further comprises: Determine the training value corresponding to each sample intelligent customer service dialogue data in the sample intelligent customer service dialogue data; In the process of learning the taught dialogue semantic recognition network and the teaching knowledge, based on the descending order of the training value, the taught sample intelligent customer service dialogue data and the teaching sample intelligent customer service dialogue data required for the turn-based knowledge learning are selected from the sample intelligent customer service dialogue data respectively.
8. An intelligent customer service platform system, characterized in that: The intelligent customer service platform system includes a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions, and the machine-executable instructions are loaded and executed by the processor to implement the AI dialogue semantic recognition method for intelligent customer service as described in any one of claims 1-7.
Citation Information
Patent Citations
Multimodal intelligent customer service dialogue method and system based on semantic configurability
CN116306679A
Intention recognition method, electronic equipment and storage medium
CN116628202A
Intelligent dialogue scene analysis method adopting AI model recognition and AI dialogue system
CN116662511A
Semantic analysis method and system for dialogue scene
CN117332789A
Man-machine dialogue method, dialogue network model training method and apparatus
WO2024088039A1
