An intelligent customer service management method and system for smart government affairs

By combining the basic learning neural network and the basic guidance neural network, and using iterative optimization of densely extracted text and sparsely extracted text, the problem of one-way knowledge transfer and the impact of text information density in neural network model training in intelligent customer service scenarios is solved, and the model is improved generalization ability and detection accuracy.

CN118674456BActive Publication Date: 2024-10-29成都市数字城市运营管理有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411155943.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-10-29
Estimated Expiration
2044-08-22

AI Technical Summary

Technical Problem

In the existing technology, in the intelligent customer service scenario, the knowledge transfer is one-way and static during the training process of the neural network model, and the impact of different text information densities on performance is ignored, resulting in insufficient accuracy and generalization ability of the neural network.

Method used

Using a combined model of basic learning neural network and basic guidance neural network, through iterative optimization of densely extracted text and sparsely extracted text, combined with prior emotional polarity marking and implicit representation, the network configuration variables are adjusted to improve the model's generalization ability and robustness.

Benefits of technology

It improves the training stability and universality of the neural network, enhances the detection accuracy of texts with different text information densities, reduces training costs, and improves the emotional polarity analysis capabilities of the intelligent customer service system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674456B_ABST
    Figure CN118674456B_ABST
Patent Text Reader

Abstract

The present application provides an intelligent customer service management method and system for smart government affairs, which adjusts the network configuration variables of the basic guiding neural network based on the network configuration variables of the adjusted basic learning neural network in the past iteration cycle, so that the stability of the basic guiding neural network in the training stage is improved, and the learning neural network can acquire more knowledge of the guiding neural network. The iteration link of the basic guiding neural network takes into account the network configuration variables of the adjusted basic learning neural network in the past iteration cycle, so that the basic guiding neural network can capture more knowledge acquired by the adjusted basic learning neural network in the training stage, so that the universality of the basic guiding neural network is improved, and then the universality of the adjusted basic learning neural network is adaptively improved. The basic guiding neural network is trained in the training stage of the basic learning neural network, and there is no need to introduce a supplementary guiding neural network, which reduces the training cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and more specifically, to an intelligent customer service management method and system for smart government affairs. Background Art

[0002] With the rapid development of artificial intelligence technology, neural network models are increasingly used in various fields, such as smart government affairs and smart customer service. However, the performance of neural network models is highly dependent on the quality of their training process and data. In practical applications, how to effectively train and optimize neural network models to improve their generalization ability and accuracy has become an urgent problem to be solved. In the scenario of smart customer service, detecting the user's emotional polarity through the user's conversation text is a key link to improve the quality of customer service. In practical applications, a complex large model can be calibrated first, which is good at detecting emotions for texts with clear and detailed emotions, and then use its detection results as a priori guidance to calibrate a sophisticated small model for emotion detection for texts with less clear emotions. However, the current tuning method of this master-apprentice model has certain limitations. For example, the knowledge transfer of the guidance model is often one-way and static, which limits the learning model from further absorbing and utilizing the new knowledge obtained by the guidance model in the subsequent training process. In addition, the existing methods ignore the impact of different text information densities on the performance of neural networks, resulting in insufficient accuracy and generalization ability of neural networks. Summary of the invention

[0003] In view of this, the present application provides an intelligent customer service management method and system for smart government affairs.

[0004] According to one aspect of an embodiment of the present application, there is provided an intelligent customer service management method for smart government affairs, comprising: obtaining densely extracted text and sparsely extracted text corresponding to a government affairs customer service conversation text template, and a priori emotional polarity markers for indicating emotional information text in the government affairs customer service conversation text template; the text information density of the densely extracted text is greater than the text information density of the sparsely extracted text; based on a basic learning neural network, performing emotional polarity analysis on the government affairs customer service conversation text template to obtain a first inferred emotional polarity label, based on a basic guidance neural network, processing the densely extracted text to obtain a second inferred emotional polarity label and a first text implicit representation, based on the basic learning neural network, processing the sparsely extracted text to obtain a third inferred emotional polarity label and a second text implicit representation; combining the first text implicit representation, the second text implicit representation, the first inferred emotional polarity label, the second inferred emotional polarity label, the The third inference emotion polarity label and the prior emotion polarity mark are used to adjust the network configuration variables of the basic learning neural network; based on the network configuration variables of the adjusted basic learning neural network in the past iteration cycle, the network configuration variables of the basic guidance neural network are adjusted; for the adjusted basic guidance neural network and the adjusted basic learning neural network, return to the step of obtaining the densely extracted text and the sparsely extracted text corresponding to the government customer service conversation text template, and the prior emotion polarity mark used to indicate the emotion information text in the government customer service conversation text template, and iterate until the preset iteration stop condition is reached, and the iterated basic learning neural network is obtained, and the iterated adjusted basic learning neural network is used as the target learning neural network; the target learning neural network is used to perform emotion polarity analysis on the acquired target government customer service conversation text to be detected, and obtain the emotion polarity label of the emotion information text in the target government customer service conversation text.

[0005] According to an example of an embodiment of the present application, the combination of the first text implicit representation, the second text implicit representation, the first inferred emotion polarity label, the second inferred emotion polarity label, the third inferred emotion polarity label and the prior emotion polarity label is used to adjust the network configuration variables of the basic learning neural network, including: determining the detection error value of the basic learning neural network in combination with the first inferred emotion polarity label and the prior emotion polarity label; determining the intrinsic refinement error value of the basic learning neural network in combination with the first text implicit representation, the second text implicit representation, the second inferred emotion polarity label and the third inferred emotion polarity label; and adjusting the network configuration variables of the basic learning neural network in combination with the detection error value and the intrinsic refinement error value.

[0006] According to an example of an embodiment of the present application, the combining of the first text implicit representation, the second text implicit representation, the second inferred emotion polarity label and the third inferred emotion polarity label to determine the intrinsic refined error value of the basic learning neural network includes: combining the first text implicit representation and the second text implicit representation to determine the text paragraph focusing error of the basic learning neural network; combining the first text implicit representation and the second text implicit representation to determine the text dimension focusing error of the basic learning neural network; combining the second inferred emotion polarity label and the third inferred emotion polarity label to determine the emotion polarity inference error value of the basic learning neural network; using the text paragraph focusing error, the text dimension focusing error and the emotion polarity inference error value as the intrinsic refined error value of the basic learning neural network; combining the detection error value and the intrinsic refined error value to adjust the network configuration variables of the basic learning neural network includes: fusing the text paragraph focusing error, the text dimension focusing error and the emotion polarity inference error value contained in the intrinsic refined error value to obtain the intrinsic refined fusion error value of the basic learning neural network; fusing the intrinsic refined fusion error value and The detection error values ​​are added to obtain a combined error value of the basic learning neural network; the network configuration variables of the basic learning neural network are adjusted by the combined error value; the first text implicit representation includes the numerical representations corresponding to the x text characters in the densely extracted text under i feature representations, and the second text implicit representation includes the numerical representations corresponding to the x text characters in the sparsely extracted text under i feature representations, and x and i are both positive integers not less than 2; the combination of the first text implicit representation and the second text implicit representation to determine the text paragraph focusing error of the basic learning neural network includes: performing mean solution on the numerical representations corresponding to each text character in the densely extracted text under the i feature representations to obtain the weight parameters of the corresponding text characters in the densely extracted text; performing mean solution on the numerical representations corresponding to each text character in the sparsely extracted text under the i feature representations to obtain the weight parameters of the corresponding text characters in the densely extracted text; combining the weight parameters corresponding to the x text characters in the densely extracted text and the weight parameters corresponding to the x text characters in the sparsely extracted text to determine the text paragraph focusing error of the basic learning neural network.

[0007] According to an example of an embodiment of the present application, the weight parameters corresponding to each of the x text characters in the densely extracted text and the weight parameters corresponding to each of the x text characters in the sparsely extracted text are combined to determine the text paragraph focusing error of the basic learning neural network, including: subtracting the weight parameter of the ath text character in the densely extracted text from the weight parameter of the ath text character in the sparsely extracted text to obtain the weight parameter difference corresponding to the ath text character in the sparsely extracted text; wherein 1≤a≤x; squaring the weight parameter differences of the x text characters in the sparsely extracted text and then adding them to obtain the text paragraph focusing error of the basic learning neural network.

[0008] According to an example of an embodiment of the present application, the first implicit text representation includes the numerical representations corresponding to the x text characters in the densely extracted text under i feature representations, and the second implicit text representation includes the numerical representations corresponding to the x text characters in the sparsely extracted text under i feature representations, and x and i are both positive integers not less than 2; the combination of the first implicit text representation and the second implicit text representation to determine the text dimension focusing error of the basic learning neural network includes: performing mean solution on the numerical representations of the x text characters in the densely extracted text under each feature representation to obtain the weight parameters of the corresponding feature representation in the densely extracted text; performing mean solution on the numerical representations of the x text characters in the sparsely extracted text under each feature representation to obtain the weight parameters of the corresponding feature representation in the sparsely extracted text; combining the weight parameters corresponding to the i feature representations in the densely extracted text and the weight parameters corresponding to the i feature representations in the sparsely extracted text to determine the text dimension focusing error of the basic learning neural network.

[0009] According to an example of an embodiment of the present application, the text dimension focusing error of the basic learning neural network is determined by combining the weight parameters corresponding to each of the i feature representations in the densely extracted text and the weight parameters corresponding to each of the i feature representations in the sparsely extracted text, including: subtracting the weight parameter of the bth feature representation in the densely extracted text from the weight parameter of the bth feature representation in the sparsely extracted text to obtain the weight parameter difference of the bth feature representation of the sparsely extracted text; 1≤b≤i; squaring the weight parameter differences corresponding to each of the i feature representations in the sparsely extracted text and then adding them to obtain the text dimension focusing error of the basic learning neural network.

[0010] According to an example of an embodiment of the present application, the network configuration variables of the basic guiding neural network are adjusted based on the adjusted network configuration variables of the basic learning neural network in the past iteration cycle, including: performing variable stabilization processing on the network configuration variables of the adjusted basic learning neural network in the past iteration cycle to obtain stabilized network configuration variables; based on the stabilized network configuration variables, adjusting the network configuration variables of the basic guiding neural network.

[0011] According to an example of an embodiment of the present application, the variable stabilization processing is performed on the network configuration variables of the adjusted basic learning neural network in the past iteration cycle to obtain the stabilized network configuration variables, including: after the basic learning neural network is iteratively adjusted s times, the network configuration variables of the adjusted basic learning neural network after the s-th iteration adjustment are obtained, and the network configuration variables of the adjusted basic learning neural network after the r-th iteration adjustment are Laplace transformed; 1≤r<s, r=s-1; based on the Laplace transformation parameters, the network configuration variables after the s-th iteration adjustment and the Laplace transformation values ​​after the r-th iteration adjustment are variable stabilized to obtain the network configuration variables of the adjusted basic learning neural network after the s-th iteration adjustment after Laplace transformation; and the network configuration variables after the s-th iteration adjustment are Laplace transformed as the processed network configuration variables.

[0012] According to an example of an embodiment of the present application, the obtaining of densely extracted text and sparsely extracted text corresponding to a government affairs customer service conversation text template includes: using dense extraction parameters to perform text extraction on the government affairs customer service conversation text template to obtain densely extracted text, and using sparse extraction parameters to perform text extraction on the government affairs customer service conversation text template to obtain sparsely extracted text, wherein the dense extraction parameters are smaller than the sparse extraction parameters.

[0013] According to another aspect of an embodiment of the present application, a computer system is provided, including: a processor; and a memory, wherein the memory stores a computer-readable code, and when the computer-readable code is executed by the processor, the processor executes the method described above.

[0014] Beneficial effects of the present application: The present application adjusts the network configuration variables of the basic guiding neural network based on the network configuration variables of the adjusted basic learning neural network in the past iteration cycle, so that the stability of the basic guiding neural network in the training stage is improved, and the learning neural network can obtain more knowledge of the guiding neural network. In addition, the iteration link of the basic guiding neural network takes into account the network configuration variables of the adjusted basic learning neural network in the past iteration cycle, so that the basic guiding neural network can capture more knowledge acquired by the adjusted basic learning neural network in the training stage, then the universality of the basic guiding neural network is improved, and then the universality of the adjusted basic learning neural network is adapted and improved, and the effect is better. Further, the basic guiding neural network is trained in the training stage of the basic learning neural network, and there is no need to introduce a supplementary guiding neural network, which reduces the training cost. At the same time, when the basic learning neural network is trained based on the first text implicit representation and the second text implicit representation, the first text implicit representation and the second text implicit representation are extracted based on different text information densities, and the information error of texts with different text information densities is taken into consideration. The trained neural network has higher accuracy, and the target learning neural network detects texts with different text information densities more accurately. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 It is a schematic diagram of the architecture of an application scenario provided by this application;

[0017] Figure 2 It is a flowchart of an intelligent customer service management method for smart government affairs provided by this application;

[0018] Figure 3 It is a structural diagram of a computer system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0020] In order to facilitate a clearer understanding of this application, the application scenarios of the intelligent customer service management method for smart government affairs of this application are first introduced, such as Figure 1 As shown, in the application environment, a computer system 1000 and a terminal cluster are included. The terminal cluster may include one or more terminals, and the number of terminals is not limited here. Figure 1 As shown, the terminal cluster may specifically include terminal 1, terminal 2, ..., terminal n; it can be understood that terminal 1, terminal 2, terminal 3, ..., terminal n can all be connected to the computer system 1000 through a network, so that each terminal can exchange data with the computer system 1000 through the network connection.

[0021] It is understandable that the computer system 1000 may refer to a device that executes the intelligent customer service management method for smart government affairs provided in this application. Among them, the computer system 1000 may be a server, for example, the server may be an independent physical server, or a server cluster or distributed system composed of at least two physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms. The terminal may specifically refer to a device for a user to conduct a government affairs customer service session, such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart watch, etc., but is not limited thereto. Each terminal and computer system may be directly or indirectly connected by wired or wireless communication. At the same time, the number of terminals and computer systems may be one or at least two, and this application does not limit this.

[0022] For further information, see Figure 2 , is a flow chart of an intelligent customer service management method for smart government affairs provided in an embodiment of the present application. Figure 2 As shown, this method can be Figure 1 The computer system 1000 is used to perform the intelligent customer service management method for smart government affairs, wherein the intelligent customer service management method for smart government affairs may include the following steps:

[0023] Step S10: Obtain densely extracted text and sparsely extracted text corresponding to the government customer service conversation text template, as well as a priori emotional polarity markers used to indicate emotional information text in the government customer service conversation text template; the text information density of the densely extracted text is greater than the text information density of the sparsely extracted text.

[0024] In an embodiment of the present application, a computer system obtains a large amount of government customer service conversation texts as raw data from the historical records of government customer service conversations or preset conversation templates. These conversation texts may contain a variety of content such as citizen consultation policies, feedback issues, complaints and suggestions, covering many aspects of smart government services. Then, the computer system performs information extraction of different densities on these original conversation texts, that is, generates densely extracted texts and sparsely extracted texts. Here, densely extracted text refers to a text paragraph containing relatively complete conversation content, which retains most of the details in the conversation and has a high information density. For example, a complete conversation record of a citizen consultation on tax policy adjustments, including the raising of questions, specific inquiries about policies, and possible follow-up questions, can be used as densely extracted text.

[0025] In contrast, sparsely extracted text is the key information or summary extracted from the complete conversation, with a lower information density. This can be a short summary automatically generated by natural language processing technology (such as keyword extraction, summary generation algorithm, etc.), or it can be a collection of key sentences or phrases annotated by humans. For example, in the above conversation about tax policy adjustment, the sparsely extracted text may only contain a few key phrases or sentences such as "tax policy adjustment" and "consult new policy details".

[0026] At the same time, in order to evaluate the accuracy of the neural network's judgment of emotional polarity, the computer system also assigns a prior emotional polarity tag to each conversation text (whether densely extracted or sparsely extracted). This tag is usually manually annotated by experts with domain knowledge based on the content of the conversation, indicating the emotional tendency expressed by the conversation text, such as positive, negative or neutral. For example, for a consultation conversation expressing satisfaction with government services, its prior emotional polarity tag will be set to positive; while for a complaint conversation expressing dissatisfaction with a certain policy, it will be set to negative.

[0027] Step S10 prepares rich and diverse training data for subsequent neural network training by combining automated extraction and manual labeling, including densely extracted text, sparsely extracted text, and corresponding prior sentiment polarity labels, thereby ensuring that the intelligent customer service system can learn the ability to judge sentiment polarity under different information densities and improve its accuracy and robustness in practical applications.

[0028] Step S20: Based on the basic learning neural network, the government customer service conversation text template is subjected to sentiment polarity analysis to obtain a first inferred sentiment polarity label; based on the basic guidance neural network, the densely extracted text is processed to obtain a second inferred sentiment polarity label and a first text implicit representation; based on the basic learning neural network, the sparsely extracted text is processed to obtain a third inferred sentiment polarity label and a second text implicit representation.

[0029] In the embodiment of the present application, step S20 utilizes the master-apprentice relationship between the basic learning neural network and the basic guiding neural network to perform a detailed emotional polarity analysis on the government customer service conversation text.

[0030] The computer system uses the learning neural network to be adjusted (i.e., the basic learning neural network) to perform a preliminary emotional polarity analysis on the complete government customer service conversation text template. The basic learning neural network is, for example, a complex recurrent neural network (RNN) or a long short-term memory network (LSTM), or it may be a BERT model based on the Transformer structure, which has shown strong capabilities in processing natural language text. By inputting the government customer service conversation text template, the basic learning neural network can capture the semantic information and emotional tendency in the text, and output a preliminary emotional polarity label, i.e., the first inference emotional polarity label, which may be a discrete value (such as positive, negative, neutral) or a continuous probability distribution. Next, the computer system turns to the basic guidance neural network (i.e., the guidance neural network to be adjusted) to perform more in-depth processing on the densely extracted text. The densely extracted text contains more abundant conversation details, which provides more contextual information for the basic guidance neural network. The basic guidance neural network is a model with a more complex structure and better performance than the basic learning neural network, which can use these detailed information to generate more accurate emotional polarity judgments. During the processing, the basic guidance neural network not only outputs the second inference emotional polarity label, but also generates the first text implicit representation. This implicit representation can be a high-dimensional vector, in which each dimension corresponds to a certain aspect of the sentiment feature or semantic information in the text. For example, one dimension in the vector may represent the frequency of occurrence of positive sentiment words in the text, and another dimension may represent the intensity of negative sentiment. Finally, the computer system uses the basic learning neural network to process the sparsely extracted text again. Although the sparsely extracted text has a low information density, it can still obtain an emotional polarity judgment, that is, the third inference emotional polarity label, and generate the second text implicit representation through the reasoning of the basic learning neural network. This process helps to verify the generalization ability of the basic learning neural network on texts with different information densities and provide feedback for its subsequent training. During the entire reasoning process, the basic learning neural network and the basic guidance neural network realize the path of sentiment analysis from general to specific through text inputs of different densities. The basic learning neural network first establishes basic sentiment judgment capabilities through complete conversation texts, and then, under the guidance of the basic guidance neural network, further improves the accuracy through learning densely extracted texts, and finally verifies its generalization ability by processing sparsely extracted texts. The design of this master-apprentice model aims to improve the accuracy and robustness of the entire intelligent customer service system in analyzing the sentiment polarity of government customer service conversation texts through knowledge transfer and sharing.

[0031] Step S30: adjusting the network configuration variables of the basic learning neural network in combination with the first text implicit representation, the second text implicit representation, the first inferred emotion polarity label, the second inferred emotion polarity label, the third inferred emotion polarity label and the prior emotion polarity label.

[0032] In the embodiment of the present application, step S30 fine-tunes the network configuration variables of the basic learning neural network to improve the accuracy of the model in analyzing the emotional polarity of the government customer service conversation text. In this step, the computer system will make full use of multiple reasoning results and prior knowledge to work together in the optimization process of the neural network.

[0033] Specifically, the computer system collects multiple key information sources, including the first implicit text representation and the second implicit text representation (high-dimensional vector representations obtained by processing the densely extracted text by the base guidance neural network and the sparsely extracted text by the base learning neural network, respectively. The elements in each vector may represent different aspects of the sentiment or semantic features in the text), the first inferred sentiment polarity label (the preliminary judgment of the base learning neural network on the complete conversation text template), the second inferred sentiment polarity label (the judgment of the base guidance neural network on the densely extracted text), the third inferred sentiment polarity label (the judgment of the base learning neural network on the sparsely extracted text) and the prior sentiment polarity label (the true sentiment tendency of the conversation text annotated by experts).

[0034] The computer system then uses a multi-source information fusion strategy to combine this information to guide the optimization of the underlying learning neural network. The optimization process usually involves adjusting the configuration variables such as the weights and biases of the neural network to minimize a predetermined loss function. In this scenario, the design of the loss function may take into account multiple aspects, such as the consistency between the inference label and the prior label, the consistency between different inference results, and the effective use of features in the implicit representation. For example, the loss function can be defined as:

[0035] L = λ1·L pred (y pred ,y true )+λ2·L cons (y1,y2,y3)+λ3·L repr (h1,h2);

[0036] Among them, L pred Represents the prediction loss, measuring the inference label y pred (which can be some fusion of the first, second, and third inference emotion polarity labels) and the prior emotion polarity label y true The difference between them is usually calculated using the cross entropy loss function; L consrepresents the consistency loss, which is used to ensure the consistency between different inference results (y1, y2, y3); L repr represents the implicit representation loss, which is used to evaluate the quality and effectiveness of the first text implicit representation h1 and the second text implicit representation h2; λ1, λ2, λ3 are hyperparameters used to balance the importance of each loss.

[0037] In actual operation, the computer system uses the backpropagation algorithm to update the weights and biases of the basic learning neural network to minimize the above loss function. Through multiple iterations of training, the model can gradually learn how to better extract emotional information from the text and generate accurate emotional polarity judgments. This process not only improves the accuracy of the basic learning neural network in analyzing the emotional polarity of government customer service conversation texts, but also enhances the generalization and robustness of the model by introducing the basic guidance neural network and the supervision of multiple reasoning results. Ultimately, the optimized basic learning neural network can more accurately serve the intelligent customer service management of smart government affairs, and improve the efficiency and quality of user experience and government services.

[0038] Step S40: adjusting the network configuration variables of the basic guiding neural network based on the adjusted network configuration variables of the basic learning neural network in the past iteration cycle.

[0039] In the embodiment of the present application, step S40 is a key knowledge transfer and sharing link in the neural network training process. In this step, the computer system uses the knowledge and experience accumulated by the adjusted basic learning neural network in the past iteration cycle to optimize the network configuration variables of the basic guidance neural network, thereby achieving co-evolution and performance improvement between the two. Specifically, the computer system reviews and records the changes in the network configuration variables of the adjusted basic learning neural network in each iteration training. These variables include the weights and biases of the neural network, which together define how the network processes input data and generates outputs. As the iteration proceeds, these variables are updated according to the feedback of the training data and the preset loss function to minimize the prediction error and improve the model performance. After obtaining the network configuration variables of the adjusted basic learning neural network in the past iteration cycle, the computer system then uses this information to adjust the network configuration variables of the basic guidance neural network. This process is not a simple copy and paste, but is based on a strategic adjustment, which aims to pass the essence obtained by the learning neural network during the training process to the guidance neural network, while maintaining the uniqueness and advantages of the guidance neural network itself. To achieve this goal, computer systems can use a variety of technical means, such as knowledge distillation, model compression or parameter transfer. Taking knowledge distillation as an example, it allows the soft target (i.e., the probability distribution after processing by the softmax function) of a complex model (such as a regulated basic learning neural network) to be used as a training signal to guide the learning of a simplified model (i.e., the basic guidance neural network). In this way, even if the capacity of the simplified model is small, the effective representation and decision logic of the complex model on a specific task can be learned.

[0040] Specifically in the implementation method, the computer system can adjust the output probability distribution of the complex model through some form of temperature scaling to make it contain more soft information. These soft labels are then used together with the true labels (if any) to train the simplified model, and the parameters of the simplified model are optimized by minimizing the cross-entropy loss between the true labels and the simplified model predictions, and some form of distillation loss between the simplified model predictions and the soft labels of the complex model. In the framework of knowledge distillation, the distillation loss can take a form similar to the cross-entropy loss, but the adjustment of weights and temperature will make the loss function more focused on the high-confidence predictions of the complex model. For example, the distillation loss function can be expressed as:

[0041] ;

[0042] Among them, p i is the probability of the i-th category of the soft label generated by the complex model at temperature T, q i is the predicted probability of the i-th category of the same input by the simplified model at the same temperature T. By adjusting the temperature T and the weight of the loss function, the computer system can control the efficiency and quality of knowledge transfer from the complex model to the simplified model. Step S40 optimizes the configuration variables of the basic guidance neural network by utilizing the knowledge of the adjusted basic learning neural network, which not only promotes the performance complementarity and common improvement between the two, but also provides a more robust and efficient sentiment polarity analysis capability for the intelligent customer service management system.

[0043] Step S50: For the adjusted basic guidance neural network and the adjusted basic learning neural network, return to the step S10, obtain the densely extracted text and the sparsely extracted text corresponding to the government customer service conversation text template, and the step of indicating the prior emotion polarity mark of the emotion information text in the government customer service conversation text template, iterate steps S10 to S40 until the preset iteration stop condition is reached, and obtain the iterated basic learning neural network, and use the iterated adjusted basic learning neural network as the target learning neural network; wherein the target learning neural network is used to perform emotion polarity analysis on the acquired target government customer service conversation text to be detected, and obtain the emotion polarity label of the emotion information text in the target government customer service conversation text.

[0044] Specifically, when the computer system completes the current round of adjustments to the basic learning neural network and the basic guidance neural network (i.e., after step S40 is completed), it will not stop training immediately, but will choose to return to the starting point of the training process - step S10. The computer system obtains the government customer service conversation text template again, and performs dense extraction and sparse extraction on it to generate corresponding dense extraction text and sparse extraction text. At the same time, these text templates are also accompanied by prior emotional polarity tags, which are pre-labeled by experts based on the text content to guide the learning direction of the neural network. Subsequently, the computer system executes steps S20 to S40 in sequence according to the established process. In S20, the current version of the basic learning neural network and the basic guidance neural network are used to perform emotional polarity analysis on the government customer service conversation text template, dense extraction text, and sparse extraction text, respectively, to obtain the corresponding inference emotional polarity labels and text implicit representations. These inference results and implicit representations will be used as training signals to guide the optimization of the neural network in subsequent steps.

[0045] In S30 and S40, the computer system adjusts the network configuration variables of the basic learning neural network and the basic guidance neural network by combining multiple inference results, implicit representations, and prior emotion polarity labels. This adjustment process is intended to minimize the difference between the model prediction and the true label while ensuring consistency between different inference results, thereby improving the generalization ability and accuracy of the model.

[0046] After a complete round of iterations, the computer system evaluates whether the preset iteration stop conditions have been met. These conditions may include the improvement in model performance being lower than a certain threshold, the training loss being stable within a certain range and no longer decreasing significantly, or the preset maximum number of iterations being reached. If the stop conditions are not met, the next round of iterations will continue; otherwise, the training will be stopped, and the basic learning neural network after the current iteration will be saved as the target learning neural network.

[0047] The final target learning neural network is the product of multiple iterations of optimization. It has a high ability to analyze emotional polarity and can accurately identify emotional tendencies in government customer service conversation texts. In practical applications, the computer system can deploy the model into the intelligent customer service system, perform emotional polarity analysis on the target government customer service conversation texts to be detected in real time, and quickly generate corresponding emotional polarity labels. These labels help customer service personnel better understand user needs and emotional states, thereby providing a more intimate and personalized service experience.

[0048] As an implementation manner, the step S30, combining the first text implicit representation, the second text implicit representation, the first inference emotion polarity label, the second inference emotion polarity label, the third inference emotion polarity label and the prior emotion polarity label, adjusts the network configuration variables of the basic learning neural network, which may specifically include:

[0049] Step S31: Determine the detection error value of the basic learning neural network by combining the first inferred emotion polarity label and the prior emotion polarity mark;

[0050] Step S32: Determine an intrinsic refinement error value of the basic learning neural network by combining the first text implicit representation, the second text implicit representation, the second inferred emotion polarity label, and the third inferred emotion polarity label;

[0051] Step S33: combining the detection error value and the intrinsic refinement error value, adjusting the network configuration variables of the basic learning neural network.

[0052] In step S31, the core task of the computer system is to compare the preliminary emotional polarity judgment of the basic learning neural network on the government customer service conversation text template (i.e., the first inference emotional polarity label) with the real emotional tendency annotated by the expert (i.e., the prior emotional polarity label), so as to calculate the detection error value. This error value reflects the gap between the current prediction ability of the model and the actual situation, and is an important basis for subsequent optimization of the model.

[0053] In order to quantify the detection error, the computer system can use the cross-entropy loss function, which is an effective way to measure the difference between two probability distributions. In this example, the one-hot encoding of the prior sentiment polarity mark positive is [1, 0] (positive is 1, negative is 0), and the output probability distribution of the basic learning neural network is [0.9, 0.1]. The cross-entropy loss can be calculated as:

[0054] ;

[0055] where M is the total number of classes (2 in this case, positive and negative), is the value of the cth category in the true label, is the value of the cth category in the model's predicted probability distribution. This loss value It is the detection error value determined in step S31, which directly reflects the difference between the model prediction and the actual emotional tendency.

[0056] In step S32, the computer system not only considers the reasoning results of the model on texts with different information densities (first text implicit representation, second text implicit representation, first inference sentiment polarity label, third inference sentiment polarity label), but also introduces the judgment of the basic guidance neural network (second inference sentiment polarity label) to calculate a more comprehensive error value - the intrinsic refinement error value, which is intended to evaluate the stability and consistency of the model under different conditions and promote further improvement of model performance.

[0057] Continuing with the previous conversation text template as an example, we have both densely extracted text (such as complete text) and sparsely extracted text (such as key phrases or sentences) of the text. After the basic learning neural network processes these two types of text respectively, it outputs the first inference sentiment polarity label (for complete text) and the third inference sentiment polarity label (for sparse text). At the same time, the basic guidance neural network processes the densely extracted text and outputs the second inference sentiment polarity label and the first text implicit representation. The calculation of the intrinsic refinement error value usually involves the weighted sum of multiple sub-error terms, which may include text paragraph focus error, text dimension focus error, sentiment polarity reasoning error, etc.

[0058] The following is a simplified calculation framework: 1. Text paragraph focus error: evaluates the model's ability to capture key information when processing texts with different information densities. It can be calculated by comparing the similarity of the implicit representation of the first text and the implicit representation of the second text on certain key features. For example, cosine similarity can be used to measure the distance between two implicit representation vectors. 2. Text dimension focus error: evaluates the model's representation ability in the feature space. It can be determined whether the model is overly dependent on certain features and ignores other important information by checking the activity of each dimension in the implicit representation vector (such as the absolute value). 3. Emotion polarity reasoning error: directly compare the differences between different reasoning results. This includes the difference between the first reasoning emotion polarity label and the prior emotion polarity label (calculated in step S31), and the difference between the second reasoning emotion polarity label and the third reasoning emotion polarity label (reflecting the consistency between the guiding neural network and the learning neural network when processing texts with the same content but different information density). Since the calculation of the intrinsic refinement error value involves multiple complex factors, and the specific implementation method may vary depending on the model structure and task requirements, the specific mathematical formula is not given here. However, it is understandable that the computer system combines the above sub-error terms to obtain the final intrinsic refined error value through some form of weighted summation or more complex fusion strategy.

[0059] In step S33, the computer system combines the detection error value obtained in step S31 and the intrinsic refinement error value obtained in step S32 to jointly guide the optimization process of the basic learning neural network. Specifically, these two error values ​​will be used as part of the loss function to update the network configuration variables such as the weights and biases of the model through the backpropagation algorithm. Going back to the previous conversation text template example, the computer system now has two key error values: the detection error value L and the intrinsic refinement error value L. pred and the intrinsic refining error L intrinsic In order to optimize the basic learning neural network, the computer system combines these two error values ​​into a total loss function L according to a certain weight ratio. total :

[0060] L total =αL pred +βL intrinsic ;

[0061] Among them, α and β are hyperparameters used to balance the impact of detection error and intrinsic refinement error on model optimization. After determining the total loss function, the computer system starts the back propagation algorithm. The algorithm first calculates the gradient of the loss function with respect to the model output (i.e., the partial derivative of the loss function with respect to each weight and bias), and then updates the values ​​of the weights and biases in the opposite direction of the gradient to minimize the loss function. This process is repeated many times (i.e., multiple iterations of training) until the loss function converges to a relatively stable value, or reaches other stop conditions such as the preset number of iterations, time limit, etc. Through continuous iterative optimization, the basic learning neural network can gradually learn how to better capture the emotional information in the government customer service conversation text and improve the accuracy of emotional polarity analysis. At the same time, due to the introduction of the intrinsic refinement error value, the consistency and stability of the model when processing texts with different information densities have also been improved. This enables the trained model to be more robust and reliable in dealing with various complex government customer service scenarios in practical applications.

[0062] As an implementation manner, the step S32, combining the first text implicit representation, the second text implicit representation, the second inferred emotion polarity label, and the third inferred emotion polarity label, to determine the intrinsic refinement error value of the basic learning neural network may specifically include:

[0063] Step S321: Determine a text paragraph focus error of the basic learning neural network by combining the first text implicit representation and the second text implicit representation;

[0064] Step S322: Determine a text dimension focusing error of the basic learning neural network by combining the first text implicit representation and the second text implicit representation;

[0065] Step S323: Determine the emotion polarity reasoning error value of the basic learning neural network by combining the second reasoning emotion polarity label and the third reasoning emotion polarity label;

[0066] Step S324: using the text paragraph focus error, the text dimension focus error and the emotion polarity reasoning error value as the intrinsic refinement error value of the basic learning neural network.

[0067] Step S32 aims to determine an error value that reflects the internal refinement of the model by comprehensively evaluating the performance of the model under different conditions. This internal refinement error value not only takes into account the model's ability to understand the text content (reflected by the text paragraph focus error and the text dimension focus error), but also takes into account the consistency and accuracy of the model in judging the emotional polarity (reflected by the emotional polarity reasoning error value).

[0068] In step S321, the goal of the computer system is to evaluate whether the attention allocation of the basic learning neural network to key information paragraphs (or sentences) is reasonable when processing texts with different information densities. The first implicit text representation and the second implicit text representation respectively represent the internal representations of the model for densely extracted texts (such as complete conversation records) and sparsely extracted texts (such as key phrases or sentences). These representations are usually a series of high-dimensional vectors, and each vector contains information about a specific part of the text. Suppose there is a text template for a government affairs customer service session: "I am very satisfied with the recently launched e-tax service, especially its convenient declaration process and real-time updated policy information." The densely extracted text is this complete conversation record, while the sparsely extracted text may be a key sentence like "very satisfied with the e-tax service". After the basic learning neural network processes these two texts, corresponding first and second implicit text representations will be generated. These representations may consist of multiple vectors, and each vector corresponds to the mapping of a word or phrase in the text in the feature space.

[0069] To determine the text paragraph focusing error, the computer system can adopt relevant methods of the attention mechanism to evaluate the attention degree of the model to different text paragraphs. Specifically, the focusing ability of the model to key information paragraphs can be quantified by calculating the similarity matrix between two sets of implicit representation vectors. However, directly calculating the similarity of high-dimensional vectors is not intuitive, so it is usually necessary to map them to a space that is easier to compare. A common method is to use cosine similarity to measure the angle size between two vectors. The smaller the angle, the more similar the vectors are. But here, more attention is paid to the overall similarity between vector sets, so more complex similarity measurement methods may be adopted, such as weighted average similarity based on attention weights.

[0070] Suppose the first set of implicit text representation vectors is H1 = {h 1,1 , h 1,2 , …, h 1,N}, and the second set of implicit text representation vectors is H2 = {h 2,1 , h 2,2 , …, h 2,M} (where N and M are the sizes of the two vector sets respectively, and usually M < N due to the lower information density of the sparsely extracted text). An attention weight matrix A ∈ R N×M can be defined, where A ij represents the attention weight of the j-th vector in the second vector set to the i-th vector in the first vector set. There are various calculation methods for attention weights. Here, a simplified dot product attention is taken as an example:

[0071] ;

[0072] Where W is a learnable parameter matrix used to map vectors into a common comparison space. With the attention weight matrix, the weighted average similarity can be calculated as part of the text paragraph focus error. But note that the similarity is not directly calculated as the error here, but an error term that reflects the model's focusing ability is constructed based on the similarity. The calculation of the specific error value may involve comparing the difference between the weighted similarity and the similarity distribution under a certain threshold or ideal state. It is conceivable that the text paragraph focus error can quantify whether the model successfully focuses on the key information by comparing the similarity between the representation vector of the key information paragraph (in the sparsely extracted text) and the corresponding part in the complete text (after attention weighting).

[0073] In step S322, the goal of the computer system is to evaluate whether the model's representation ability in the feature space is balanced, that is, whether the model relies too much on certain features and ignores other equally important information. This helps to discover possible "blind spots" or biases in the model and promotes the model to learn more comprehensive and balanced feature representations. Let's continue with the above conversation text template as an example. When processing this text, the basic learning neural network may map different words or phrases in the text to different dimensions in the feature space. For example, "very satisfied" may be mapped to a dimension representing positive emotions, and "electronic tax services" may be mapped to a tax-related business dimension.

[0074] To determine the text dimension focus error, the computer system analyzes the information distribution of each dimension in the first text implicit representation and the second text implicit representation. This usually involves statistical analysis of the activation values ​​(or eigenvalues) of each dimension in the vector set.

[0075] Specifically, statistics such as the mean, variance, maximum, and minimum of the activation values ​​on each dimension can be calculated to evaluate the activity and importance of the dimension. Then, by comparing the statistical differences between different dimensions, the dimensions that the model may rely too much on or ignore can be identified. However, directly comparing dimension statistics is not enough to form a clear error term. Therefore, the computer system may adopt a more indirect method to quantify the text dimension focusing error. For example, an idealized feature distribution can be constructed as a reference (this may need to be set based on domain knowledge or prior assumptions), and then the difference between the feature distribution learned by the model and the ideal distribution is calculated as the error value.

[0076] Another possible approach is to use regularization techniques (such as L1 regularization or L2 regularization) to encourage the model to learn more sparse and balanced feature representations. Although regularization itself is not an error calculation method, it can indirectly affect the model's representation learning ability by introducing additional loss terms during the training process, thereby reducing the text dimension focusing error to a certain extent. In order to more directly reflect the calculation process of the text dimension focusing error, we can imagine a simplified scenario: suppose the model has learned a feature vector f=[f1,f2,…,f D ], where D is the number of dimensions in the feature space. The sum of the absolute values ​​of the activation values ​​on each dimension can be calculated as an indicator of the importance of that dimension. Then, the standard deviation or coefficient of variation of these importance indicators can be calculated to measure the degree of imbalance between dimensions. The larger the standard deviation or the higher the coefficient of variation, the greater the difference in the representation ability of the model on different dimensions, and there may be a text dimension focus error. However, please note that this is just a simplified example and does not represent a general method for how to accurately calculate the text dimension focus error in practice.

[0077] In step S323, the goal of the computer system is to evaluate the consistency and accuracy of the model's emotion polarity judgment when processing texts with different information densities. The second inference emotion polarity label and the third inference emotion polarity label represent the model's emotion polarity judgment results for densely extracted texts (complete conversation records) and sparsely extracted texts (key phrases or sentences), respectively.

[0078] Let's continue with the previous conversation text template as an example. After processing the complete conversation record and key sentences, the basic learning neural network outputs the second inference emotion polarity label (such as the probability of positive emotion is 0.95) and the third inference emotion polarity label (such as the probability of positive emotion is 0.85). These two labels reflect the model's emotion polarity judgment under different information density conditions.

[0079] In order to determine the sentiment polarity inference error value, the computer system usually adopts some form of loss function to quantify the difference between the two inference results. In this scenario, since both inference results are probability distributions (even though they may only contain the probabilities of two categories, positive and negative), the cross-entropy loss function (although there is no real label as a reference here, the two inference results can be regarded as "pseudo-labels" for comparison) or its variants can be used to calculate the error value. However, in practical applications, what is more concerned is the consistency between the two inference results rather than the difference between them and a certain true label. Therefore, the sentiment polarity inference error value may be more calculated by directly comparing the distance between the two probability distributions. A commonly used distance measurement method is the Kullback-Leibler divergence (KL divergence), which measures the degree of difference between two probability distributions. But please note that the KL divergence is not symmetric, that is, . Therefore, in actual calculations, it may be necessary to use a symmetric KL divergence or other symmetric distance measurement methods. In order to simplify the description and be close to the common practices in actual application scenarios, a more intuitive method can be used to calculate the emotion polarity reasoning error value: that is, directly calculate the absolute value or square difference of the difference between the positive emotion probability (or negative emotion probability) in the two reasoning results as the error value. This error value reflects the consistency of the model's emotion polarity judgment when processing texts with different information densities.

[0080] Step S324 combines the previously calculated text paragraph focus error, text dimension focus error, and sentiment polarity reasoning error values ​​to form a single metric, the intrinsic refinement error value. This value reflects the comprehensive performance of the basic learning neural network in terms of text paragraph focus, feature dimension utilization, and sentiment polarity reasoning when processing texts with different information densities. By minimizing this error value, the computer system can optimize the parameters of the neural network and improve its accuracy and robustness in practical applications.

[0081] In the feature space, each dimension may represent a different attribute or feature of the text. For example, one dimension may be specifically used to capture the emotional information in the text (positive, negative, or neutral), while another dimension may be used to distinguish the subject categories of the text (such as government services, complaints and suggestions, etc.). If the neural network relies too much on certain specific dimensions when processing text (such as only focusing on the emotional dimension and ignoring the subject dimension), it may lead to text dimension focusing errors. Computer systems can quantify this error by analyzing statistics such as the distribution and variance of activation values ​​on different dimensions.

[0082] The sentiment polarity inference error value reflects the consistency of the neural network's sentiment polarity judgment when processing texts with different information densities. For example, when processing the above-mentioned government customer service conversation text, the neural network may output two inference sentiment polarity labels: one is the inference result for the complete text (such as "positive sentiment, probability 0.6"), and the other is the inference result for the key information paragraph (such as "neutral sentiment, probability 0.5"). Since there is a difference between these two inference results (although the difference may not be large), the computer will calculate a sentiment polarity inference error value to quantify this difference.

[0083] In step S324, the computer system combines the above three error values ​​to form an intrinsic refined error value. This value can be a simple weighted sum of the three error values, or a weighted sum after some normalization process. To simplify the description, it is assumed that a simple weighted summation method is used to calculate the intrinsic refined error value, and the weight coefficient is set according to the characteristics of the specific task and data set. Assume that the text paragraph focus error is E text_focus , the text dimension focus error is Edim_focus , the emotion polarity inference error value is E emotion , the weight coefficients are α, β, γ (and α+β+γ=1), then the intrinsic refining error value E intrinsic It can be calculated as:

[0084] E intrinsic =αE text_focus +βE dim_focus +γE emotion ;

[0085] The weight coefficients α, β, and γ can be determined based on experience or through experiments according to specific tasks and data sets.

[0086] Through the calculation in step S324, the computer system obtains an intrinsic refined error value that comprehensively reflects the performance of the basic learning neural network. This value not only takes into account the performance of the neural network in terms of text paragraph focusing and feature dimension utilization, but also takes into account its consistency in sentiment polarity reasoning. In the subsequent training process, the computer system will use this error value to guide the parameter optimization of the neural network in order to improve its accuracy and robustness in practical applications.

[0087] As an implementation manner, the step S33, combining the detection error value and the intrinsic refinement error value to adjust the network configuration variables of the basic learning neural network, may specifically include:

[0088] Step S331: performing a fusion operation on the text paragraph focus error, the text dimension focus error and the emotion polarity reasoning error value contained in the intrinsic refined error value to obtain an intrinsic refined fusion error value of the basic learning neural network;

[0089] Step S332: adding the intrinsic refined fusion error value and the detection error value to obtain a combined error value of the basic learning neural network;

[0090] Step S333: adjusting the network configuration variables of the basic learning neural network by using the combined error value.

[0091] In the embodiment of the present application, step S33 is responsible for integrating the detection error value and the intrinsic refinement error value calculated in steps S31 and S32 to guide the optimization of the basic learning neural network. This process not only considers the difference between the model prediction and the true label (detection error value), but also comprehensively considers the performance stability and consistency of the model under different conditions (intrinsic refinement error value), thereby ensuring that the trained model is both accurate and robust.

[0092] In step S331, the computer system effectively fuses the text paragraph focus error, text dimension focus error, and sentiment polarity reasoning error value calculated in step S32 to form a single error value that comprehensively reflects the internal refinement of the model - the internal refinement fusion error value. This fusion process takes into account the relative importance of different error terms and their potential correlation.

[0093] Suppose that in the intelligent customer service management system of smart government affairs, there is a text template for government affairs customer service conversation: "I am very satisfied with the newly launched government affairs service APP, especially its convenient online processing function and real-time progress inquiry service." When the basic learning neural network processes this text, it will generate the corresponding text implicit representation and inference sentiment polarity label. At the same time, the basic guidance neural network will also process the densely extracted text part to generate the second inference sentiment polarity label and the first text implicit representation. By comparing these results with the prior sentiment polarity label, the detection error value, text paragraph focus error, text dimension focus error, and sentiment polarity inference error value can be calculated.

[0094] The specific method of the fusion operation depends on the nature of the error term and the training objective. A common method is to use a weighted summation method, that is, assign a weight to each error term and then sum them up to get the fusion error value. The choice of weights can be determined based on domain knowledge, experimental results, or automatic optimization algorithms.

[0095] Let the text paragraph focus error be E text_focus , the text dimension focusing error is E dim_focus , the emotion polarity inference error is E emotion , then the intrinsic refinement fusion error value E intrinsic_fused It can be expressed as:

[0096] ;

[0097] Among them, w1, w2, w3 are pre-set weight coefficients used to balance the importance of different error terms. These weight coefficients can be determined by optimization methods such as cross-validation and grid search. It should be noted that the dimensions and value ranges of different error terms may be different, so they may need to be normalized before fusion to ensure the rationality and effectiveness of the fusion results.

[0098] After obtaining the intrinsic refined fusion error value, the computer system combines it with the detection error value calculated in step S31 to form a more comprehensive merged error value. This merged error value will simultaneously reflect the accuracy of the model prediction (through the detection error value) and the stability and consistency of the model's performance under different conditions (through the intrinsic refined fusion error value). The merging operation is, for example, directly adding the two error values, and this merged error value will be used to guide the optimization process of the basic learning neural network.

[0099] In step S333, the computer system uses the combined error value calculated in step S332 to guide the optimization of the basic learning neural network. Specifically, the backpropagation algorithm is used to adjust the network's configuration variables such as weights and biases to minimize the combined error value.

[0100] During the training process, the computer will continuously iterate the steps of forward propagation, error calculation, back propagation, and updating configuration variables until the combined error value is reduced to an acceptable level or the preset number of iterations is reached. Through this process, the basic learning neural network can gradually learn how to better process the government customer service conversation text and accurately judge its emotional polarity. At the same time, since the combined error value includes the contribution of the intrinsic refined error term, the optimized model not only has a high prediction accuracy, but also maintains good stability and consistency when processing texts of different information densities and types. This is of great significance to improving the overall performance and user experience of the smart government customer service system.

[0101] As an implementation manner, the first text implicit representation includes numerical representations corresponding to x text characters in the densely extracted text under i feature representations, and the second text implicit representation includes numerical representations corresponding to x text characters in the sparsely extracted text under i feature representations, and both x and i are positive integers not less than 2; the step S321, combining the first text implicit representation and the second text implicit representation, determines the text paragraph focus error of the basic learning neural network, which may specifically include:

[0102] Step S3211: performing mean calculation on the numerical representations corresponding to each text character in the densely extracted text under the i feature representations to obtain weight parameters of the corresponding text characters in the densely extracted text;

[0103] Step S3212: performing mean calculation on the numerical representations corresponding to each text character in the sparsely extracted text under the i feature representations to obtain weight parameters of the corresponding text characters in the densely extracted text;

[0104] Step S3213: Determine the text paragraph focus error of the basic learning neural network by combining the weight parameters corresponding to each of the x text characters in the densely extracted text and the weight parameters corresponding to each of the x text characters in the sparsely extracted text.

[0105] In step S3211, the computer system focuses on densely extracted text, which is a text paragraph containing relatively complete conversation content. After being processed by the basic learning neural network, each text character (such as words, punctuation marks, etc.) in the densely extracted text will be mapped to a high-dimensional feature space to form a numerical representation corresponding to each character under i feature representations. These numerical representations reflect the degree of activation or importance of the character in different feature dimensions. In order to quantify the importance of each text character in the densely extracted text, the computer system performs a mean solution on the numerical representation of each character under i feature representations. The mean solution here can be understood as averaging the activation values ​​of the character in each feature dimension to obtain a comprehensive weight parameter, which reflects the relative importance of the character in the densely extracted text.

[0106] Step S3212 is similar to step S3211, but is performed for sparsely extracted text. Sparsely extracted text is a subset of densely extracted text, usually containing key phrases or sentences, with lower information density but more refined. The computer system also averages the numerical representation of each text character in the sparsely extracted text under i feature representations to obtain their weight parameters in the sparsely extracted text.

[0107] It should be noted that since the sparsely extracted text is a subset of the densely extracted text, the two may contain the same text characters. However, the weight parameters of these characters in the two texts can be different because of the different contexts and the amount of information they carry.

[0108] In step S3213, the computer system compares the weight parameters of the same text characters in the densely extracted text and the sparsely extracted text to evaluate whether the model has successfully focused on the key information paragraphs. If the model can accurately identify the key information in the sparsely extracted text and give this information a higher weight, then it can be considered that the model has a strong ability to focus on text paragraphs; on the contrary, if the model does not pay enough attention to the key information, or gives too high a weight to non-key information, then a text paragraph focusing error will occur.

[0109] In order to quantify this error, computer systems can use a variety of methods. A simple method is to calculate the difference in weight parameters of the same text characters in the two texts (such as absolute difference or square difference), and add up these differences as the text paragraph focus error. Another more complex method is to consider factors such as the position information of the characters in the text, the contextual relationship, etc., to build a more sophisticated error measurement model. However, in practical applications, since the sparsely extracted text is a subset of the densely extracted text, and the text characters in the two may not correspond completely one-to-one (especially when the sparsely extracted text is obtained through keyword extraction or summary generation algorithms), it may not always be feasible to directly compare the weight parameters of the two. A more reasonable approach is to find the most similar or most relevant characters (possibly one or more) in the densely extracted text for each text character that appears in the sparsely extracted text, and then compare their weight parameters.

[0110] Assuming that the weight parameters of each text character in the densely extracted text and the sparsely extracted text have been obtained, in order to calculate the text paragraph focus error, one of the following strategies can be adopted:

[0111] Direct comparison method (applicable to the case where the characters of the two characters completely correspond):

[0112] For each text character c in the sparsely extracted text, find the corresponding character (assuming it is c') in the densely extracted text, and then calculate the difference in weight parameters between the two. The differences of all characters are accumulated to obtain the text paragraph focus error.

[0113] Similar character comparison method (applicable to the case where the characters of the two characters do not completely correspond):

[0114] For each text character c in the sparsely extracted text, find the most similar character set C′ (which may contain multiple characters) in the densely extracted text, then calculate the difference between the weight parameters of each character in c and C′, and select the smallest difference as the contribution of c:

[0115] ;

[0116] in, is the weight parameter of each character in C′, is the weight parameter of text character c.

[0117] Similarly, the differences of all characters are accumulated to obtain the text paragraph focus error.

[0118] Through the above implementation of step S321, the computer system can evaluate the text paragraph focusing ability of the basic learning neural network when processing texts with different information densities, and optimize and adjust the model accordingly to improve its performance.

[0119] As an implementation manner, the step S3213, combining the weight parameters corresponding to each of the x text characters in the densely extracted text and the weight parameters corresponding to each of the x text characters in the sparsely extracted text, determines the text paragraph focus error of the basic learning neural network, which may specifically include:

[0120] Step S32131: subtract the weight parameter of the ath text character in the densely extracted text from the weight parameter of the ath text character in the sparsely extracted text to obtain a weight parameter difference corresponding to the ath text character in the sparsely extracted text; wherein 1≤a≤x;

[0121] Step S32132: square and add the weight parameter differences of the x text characters in the sparsely extracted text to obtain the text paragraph focusing error of the basic learning neural network.

[0122] In step S32131, the computer system specifies which text characters in the densely extracted text and the sparsely extracted text correspond. In practical applications, since the sparsely extracted text is usually a subset or summary of the densely extracted text, the text characters between the two may not completely correspond one to one. Therefore, the correspondence here refers to text characters that have similarities or associations in semantics or functions. To simplify the explanation, it is assumed that in some cases, the text characters in the densely extracted text and the sparsely extracted text can correspond one to one in the order in which they appear in the original text (although this is not common in practical applications). But in more general cases, a more complex matching strategy is needed to find the corresponding text characters.

[0123] Suppose the densely extracted text is: "I am very satisfied with the recent electronic tax service, especially its convenient online processing function and real-time progress query service.", and the sparsely extracted text is: "Very satisfied with the electronic tax service, convenient online processing." In these two texts, it can be considered that "very satisfied", "electronic tax service" and "convenient online processing" are corresponding text characters or phrases.

[0124] For each corresponding text character or phrase, the computer system has calculated their weight parameters in the densely extracted text and the sparsely extracted text through the previous steps (such as S3211 and S3212). Now, the computer system performs a subtraction operation on these weight parameters to evaluate whether the model pays enough attention to these key information when processing the sparsely extracted text.

[0125] Step S32132: After squaring the weight parameter difference, add them up to obtain the text paragraph focus error. After obtaining the weight parameter difference of each corresponding text character, the computer system integrates these differences into a single error value for subsequent model optimization. Squaring and adding is a common integration method, which can amplify the influence of the error term (because the square operation makes all error terms positive) and makes the error value more sensitive to model optimization. This error value reflects the gap between the model's focus on key information and the ideal situation (or expectation) when processing sparsely extracted text. If the model successfully focuses on key information and gives them enough weight, then these weight parameter differences should be relatively small, resulting in a smaller text paragraph focus error. Conversely, if the model does not pay enough attention to key information, or gives too high a weight to non-key information, then the text paragraph focus error will be relatively large. By minimizing this error value, the computer system can adjust the parameters of the basic learning neural network to improve the model's ability to focus on key information when processing sparsely extracted text. This is crucial to improving the performance of intelligent customer service management systems for smart government affairs, as it ensures that the system can accurately capture key information in user feedback and provide more accurate and personalized services based on it.

[0126] Step S3213 provides a quantitative method for evaluating and optimizing the text focusing ability of the basic learning neural network by comparing the weight parameter differences of the corresponding text characters in the densely extracted text and the sparsely extracted text, and calculating the text paragraph focusing error. This method not only helps to improve the accuracy and robustness of the model when processing texts with different information densities, but also provides more accurate and personalized service support for the intelligent customer service system.

[0127] As an implementation mode, the first text implicit representation includes the numerical representations corresponding to the x text characters in the densely extracted text under i feature representations, and the second text implicit representation includes the numerical representations corresponding to the x text characters in the sparsely extracted text under i feature representations, and both x and i are positive integers not less than 2. Based on this, the step S322, combining the first text implicit representation and the second text implicit representation, determines the text dimension focus error of the basic learning neural network, which may specifically include:

[0128] Step S3221: performing mean calculation on the numerical representations of the x text characters in the densely extracted text under each feature representation, to obtain weight parameters of the corresponding feature representations in the densely extracted text;

[0129] Step S3222: performing mean solution on the numerical representations of the x text characters in the sparsely extracted text under each feature representation, to obtain the weight parameters of the corresponding feature representations in the sparsely extracted text;

[0130] Step S3223: Determine the text dimension focusing error of the basic learning neural network by combining the weight parameters corresponding to the i feature representations in the densely extracted text and the weight parameters corresponding to the i feature representations in the sparsely extracted text.

[0131] In the embodiment of the present application, step S322 is intended to evaluate the dimensional focusing ability of the basic learning neural network in the feature space, that is, whether the model can effectively use each feature dimension to capture the key information in the text. By comparing the weight parameters of densely extracted text and sparsely extracted text under the same feature representation, the computer system can identify the dimensional focusing errors that may exist in the model during the processing of texts with different information densities, thereby guiding the optimization of the model.

[0132] In step S3221, the computer system focuses on the densely extracted text, which is a text paragraph containing relatively complete conversation content. Through the processing of the basic learning neural network, each text character (such as a word, punctuation mark, etc.) in the densely extracted text will be mapped to a high-dimensional feature space to form the numerical representation of the character under i feature representations. These numerical representations reflect the activation degree or importance of the character in different feature dimensions.

[0133] In order to quantify the importance of each feature representation in the densely extracted text, the computer system performs mean solution on the numerical representation of all text characters under each feature representation. The mean solution here can be understood as the arithmetic mean calculation of all numerical values ​​under the feature representation to obtain a comprehensive weight parameter, which reflects the overall importance of the feature representation in the densely extracted text processing process.

[0134] Assume that the densely extracted text is: "I am very satisfied with the recent electronic tax service.", which contains multiple text characters. The basic learning neural network maps the text into a feature space containing i feature dimensions, and for feature representation 1 (assuming it represents the sentiment in the text), each text character will have a corresponding numerical representation. For example, the word "satisfied" may have a numerical value of 0.9 under feature representation 1, indicating that the word has a high activation value in sentiment.

[0135] For feature representation 1, the computer system calculates the mean of the numerical representations of all text characters under this feature representation to obtain the weight parameter of this feature representation in the densely extracted text. Assume that all numerical representations of the densely extracted text under feature representation 1 are represented by the set Vdense,1 ={v 1,1 ,v 1,2 ,…,v 1,x}, then the feature represents the weight parameter w of 1 dense,1 It can be calculated as:

[0136] ;

[0137] Similarly, the mean can be calculated for feature representations 2 to i to obtain the weight parameter set W for densely extracted text under all feature representations: dense ={w dense,1 ,w dense,2 ,…,w dense,i}.

[0138] Step S3222 is similar to step S3221, but this step is performed for sparsely extracted text. Sparsely extracted text is a subset of densely extracted text, usually containing key phrases or sentences, with lower information density but more refined. The computer system will also perform mean solution on the numerical representation of each text character in the sparsely extracted text under i feature representations to obtain the weight parameters of these feature representations in the sparsely extracted text processing. Since the sparsely extracted text is a subset of the densely extracted text, the text characters in the two may not correspond completely one to one. Therefore, when solving the mean, the focus is on the feature representation itself, not the specific text characters. That is, for each feature representation, all text characters with numerical representations under the feature representation will be found in the sparsely extracted text, and their numerical values ​​will be averaged.

[0139] Continuing with the previous example, assume that the sparsely extracted text is: "Very satisfied with the electronic tax service". For feature representation 1 (sentiment tendency), the relevant text characters in the sparsely extracted text will also have corresponding numerical representations. Assume that these numerical representations are set V sparse,1 ={v 1,1′ ,v 1,2′ ,…,v 1,y′} (where y may be smaller than x because there are fewer text characters in the sparsely extracted text), then the weight parameter w of the feature representation 1 in the sparsely extracted text sparse,1 It can be calculated as:

[0140] ;

[0141] Similarly, the mean of feature representations 2 to i can be calculated to obtain the weight parameter set W of the sparsely extracted text under all feature representations: sparse ={w sparse,1 ,w sparse,2 ,…,w sparse,i}.

[0142] In step S3223, the computer system compares the weight parameter differences between densely extracted text and sparsely extracted text under the same feature representation to evaluate the model's dimensional focusing ability in the feature space. If the model can accurately identify the key information in the sparsely extracted text and give a higher weight to the corresponding feature representation, then it can be considered that the model has a strong dimensional focusing ability; conversely, if the model's weight distribution on the feature dimension is unreasonable, or it relies too much on certain non-critical features, then text dimension focusing errors will occur.

[0143] In order to quantify this error, computer systems can use a variety of methods. A simple method is to calculate the absolute difference or square difference in the weight parameters of two texts under the same feature representation, and add up these differences as the text dimension focusing error. However, this method may be too simple and cannot fully reflect the overall performance of the model in the feature space. A more reasonable method is to consider the relative importance between feature representations and their contribution to the model output. For example, indicators such as information gain and Gini impurity can be used to evaluate the importance of each feature representation, and the weight parameter difference can be combined to construct a measurement model for the text dimension focusing error. However, in order to simplify the description and maintain relevance to the actual application scenario, a simplified error calculation method can be used. Specifically, the relative difference in the weight parameters of densely extracted text and sparsely extracted text under each feature representation can be calculated, and these relative differences can be weighted summed or squared summed to obtain the text dimension focusing error.

[0144] Assuming that the sum of squares is used as the basis for error calculation, the text dimension focusing error E dim_focus It can be expressed as:

[0145] ;

[0146] Among them, max(W dense ∪W sparse ) represents the maximum value of the weight parameters of densely extracted text and sparsely extracted text under all feature representations, which is used to normalize the difference in weight parameters so that the error values ​​are comparable between different feature representations.

[0147] Through the implementation of step S322, the computer system can quantify the dimensional focusing error of the basic learning neural network in the feature space, and optimize the model accordingly to improve its performance. This is of great significance for improving the accuracy and robustness of the intelligent customer service management system for smart government affairs. At the same time, by comparing the differences in weight parameters in feature representation between densely extracted text and sparsely extracted text, the computer system can also deeply understand the behavior patterns and potential problems of the model when processing texts with different information densities, and provide valuable reference information for subsequent model improvements.

[0148] As an implementation mode, the step S3223, combining the weight parameters corresponding to the i feature representations in the densely extracted text and the weight parameters corresponding to the i feature representations in the sparsely extracted text, determines the text dimension focusing error of the basic learning neural network, including:

[0149] Step S32231: subtract the weight parameter of the bth feature representation in the densely extracted text from the weight parameter of the bth feature representation in the sparsely extracted text to obtain the weight parameter difference of the bth feature representation of the sparsely extracted text; 1≤b≤i;

[0150] Step S32232: Square the weight parameter differences corresponding to the i feature representations in the sparsely extracted text and add them up to obtain the text dimension focusing error of the basic learning neural network.

[0151] In step S32231, the computer system focuses on the difference in weight parameters between densely extracted text and sparsely extracted text under the same feature representation. Since both have been mapped to the same feature space, and each feature representation corresponds to a set of weight parameters, the model's dimensional focusing ability in the process of processing texts with different information densities can be evaluated by directly comparing these weight parameters.

[0152] For the bth feature representation in the densely extracted text (where 1≤b≤i, i is the total number of feature representations), the computer system has calculated its corresponding weight parameter through the previous steps (such as S3221), denoted as w dense,b Similarly, for the bth feature representation in the sparsely extracted text, the corresponding weight parameter has been calculated, denoted as w sparse,b Now, the computer system performs a subtraction operation on these two sets of weight parameters to obtain the weight parameter difference of the sparsely extracted text on the bth feature representation, denoted as Δw b This difference reflects the change in the weight distribution of the model on the bth feature representation when processing sparsely extracted text relative to densely extracted text. The calculation formula is as follows:

[0153] Δw b = w dense,b -w sparse,b .

[0154] Suppose we are processing a conversation text of a government customer service about electronic tax services. The densely extracted text contains the complete conversation content, while the sparsely extracted text is a summary of its key information. In the feature space, each feature representation corresponds to a specific aspect of the text, such as "sentiment tendency", "topic classification", etc. For the feature representation of "sentiment tendency", suppose the weight parameter in the densely extracted text is 0.6 (indicating that the text as a whole expresses a relatively neutral emotion), while the weight parameter in the sparsely extracted text is 0.8 (indicating that the summary part emphasizes more positive emotions). Then, the difference in weight parameters on this feature representation is -0.2. This negative value indicates that when processing sparsely extracted text, the model gives a higher weight to the feature representation of "sentiment tendency", which may be because the sparsely extracted text contains more words or phrases expressing positive emotions.

[0155] After obtaining the weight parameter differences on each feature representation, the computer system integrates these differences to form a single error value - the text dimension focusing error. This error value will reflect whether the model's weight distribution in each dimension of the feature space is reasonable when processing sparsely extracted text, and whether there is an over-reliance on certain non-critical features or neglect of critical features. In order to quantify this error, the computer system usually uses the square and then add method. This method can amplify the impact of the error term (because the squaring operation will make all error terms positive) and make the error value more sensitive to model optimization. The calculation formula is as follows:

[0156] ;

[0157] in, represents the text dimension focusing error, Represents the weight parameter difference on the bth feature representation. The text dimension focusing error serves as one of the bases for subsequent model optimization. By minimizing this error value, the computer system can adjust the parameters of the basic learning neural network so that the model can more reasonably allocate the weights on each feature representation when processing sparsely extracted text, thereby improving the model's dimensional focusing ability and overall performance.

[0158] Step S3223 compares the weight parameter differences between densely extracted text and sparsely extracted text under the same feature representation and calculates the text dimension focusing error, providing a quantitative method for evaluating and optimizing the dimension focusing ability of the basic learning neural network. This method not only helps to improve the accuracy and robustness of the model when processing texts with different information densities, but also provides more accurate and personalized service support for the intelligent customer service system.

[0159] As an implementation manner, the step S40, based on the adjusted network configuration variables of the basic learning neural network in the previous iteration cycle, adjusts the network configuration variables of the basic guiding neural network, which may specifically include:

[0160] Step S41: performing variable stabilization processing on the network configuration variables of the adjusted basic learning neural network in the past iteration cycle to obtain stabilized network configuration variables;

[0161] Step S42: Based on the stabilized network configuration variables, the network configuration variables of the basic guiding neural network are adjusted.

[0162] In the embodiment of the present application, step S40 uses the knowledge and experience accumulated by the basic learning neural network during the iterative training process to optimize the network configuration variables of the basic guiding neural network. This process not only promotes the transfer of knowledge from the basic learning neural network to the basic guiding neural network, but also enhances the co-evolution capability between the two models, thereby improving the performance of the overall system.

[0163] In step S41, the core task of the computer system is to stabilize the network configuration variables obtained after multiple iterations of training of the basic learning neural network. The network configuration variables usually include the weights and biases of the neural network, which determine how the network processes input data and generates outputs. However, during the iterative training process, these variables can show instability due to factors such as overfitting, data noise or random initialization, thereby affecting the generalization ability of the model.

[0164] To solve this problem, computer systems use variable stabilization techniques to smooth these network configuration variables to reduce their fluctuation range and improve the stability of the model. A commonly used stabilization method is Laplace smoothing, but it may not be directly applicable here because Laplace smoothing is usually used in probability estimation to avoid zero probability problems. However, the idea of ​​Laplace smoothing can be borrowed, that is, by introducing a small constant term to reduce the impact of extreme values ​​and make the network configuration variables smoother. In practical applications, regularization techniques (such as L1 regularization, L2 regularization, or their variants) can also be used to achieve variable stabilization, by adding a penalty term related to the weight size to the loss function to limit the fluctuation range of the weight.

[0165] Assume that in the intelligent customer service management system of smart government affairs, after multiple iterations of training, some weight values ​​of the basic learning neural network become abnormally large or abnormally small, which may be caused by overfitting or noise in the data. In order to stabilize these weight values, the computer system can use the following simplified smoothing method:

[0166] Calculate the average change: First, calculate the change of each weight value in the past few iterations and find the average of these changes. This average reflects the degree of fluctuation of the weight value in different iterations.

[0167] Apply smoothing factor: Then, a small positive number is selected as the smoothing factor (similar to the penalty coefficient in regularization), which is combined with the current value of the weight value and the average change to generate a smoothed weight value. Finally, the smoothed weight value is updated to the network configuration variables of the base learning neural network so that these stabilized variables can be used to adjust the network configuration variables of the base guidance neural network in subsequent steps.

[0168] In step S42, the computer system uses the stabilized basic learning neural network configuration variables obtained in step S41 to guide the adjustment of the network configuration variables of the basic guiding neural network. This process reflects the transfer of knowledge from the basic learning neural network to the basic guiding neural network.

[0169] Continuing with the previous example, suppose that after smoothing, some key weight values ​​of the basic learning neural network become more stable and reasonable. Now, the computer system hopes to apply the knowledge contained in these stabilized weight values ​​to the basic guidance neural network to improve its performance. The specific adjustment process may include the following steps:

[0170] Knowledge extraction: First, extract key knowledge from the stabilized basic learning neural network, which may exist in the form of weight values, feature representations, or implicit vectors. In this case, we focus on weight values ​​as the carrier of knowledge.

[0171] Knowledge Mapping: These weight values ​​extracted from the base learning neural network are then mapped to the corresponding positions of the base guiding neural network. Since the structures of the two networks may not be exactly the same (although they usually have similar architectures), appropriate mapping or transformation is required to ensure effective transfer of knowledge.

[0172] Configuration variable adjustment: Finally, the network configuration variables of the base guidance neural network are adjusted according to the mapped weight values. This may involve directly replacing some weight values, fine-tuning based on these weight values, or adopting more complex optimization strategies to integrate the knowledge of the two models.

[0173] In summary, step S40 realizes the co-evolution between the basic learning neural network and the basic guidance neural network through the two sub-steps of variable stabilization processing and knowledge transfer. This process not only improves the stability and generalization ability of the model, but also promotes the sharing of knowledge and the complementary advantages between models. In the embodiment of the present application, this co-evolution mechanism is of great significance for improving the overall performance and user experience of the system.

[0174] As an implementation manner, the step S41, performing variable stabilization processing on the network configuration variables of the adjusted basic learning neural network in the previous iteration cycle to obtain the stabilized network configuration variables, may include:

[0175] Step S411: after the basic learning neural network is iteratively adjusted s times, the network configuration variables of the adjusted basic learning neural network after the s-th iterative adjustment and the network configuration variables of the adjusted basic learning neural network after the r-th iterative adjustment after Laplace transformation are obtained; 1≤r<s, r=s-1;

[0176] Step S412: performing variable stabilization processing on the network configuration variables adjusted at the s-th iteration and the Laplace transform values ​​adjusted at the r-th iteration based on the Laplace transform parameters, to obtain the network configuration variables of the adjusted basic learning neural network after the Laplace transform after the s-th iteration adjustment;

[0177] Step S413: using the network configuration variables after Laplace transformation after the s-th iteration adjustment as processed network configuration variables.

[0178] In step S411, the primary task of the computer system is to collect key information of the basic learning neural network during multiple iterations of training. Specifically, the system needs to obtain network configuration variables at two key time points: one is the current (i.e., after the sth iteration adjustment) network configuration variable, which represents the parameter state of the model in the latest training state; the other is the network configuration variable after Laplace transformation processing a little earlier (e.g., after the rth iteration adjustment, where r=s-1), which provides the parameter state of the model after smoothing in the previous training stage.

[0179] The Laplace transform mentioned here is Laplace Smoothing, which avoids extreme values ​​or zero values ​​by adding a small positive number (similar to λ in Laplace transform), thereby stabilizing the parameters.

[0180] Assume that in the intelligent customer service management system of smart government affairs, the basic learning neural network has completed s iterations of training. After the sth iteration, the network configuration variables (weights and biases) have been updated to the latest state. At the same time, in order to obtain a smoothed reference point, the system also retains the network configuration variables after the s-1th iteration, and assumes that some form of Laplace smoothing has been used to reduce the extreme values ​​of these variables.

[0181] In step S412, the computer system will use the network configuration variables after the sth iteration and the network configuration variables after Laplace transformation after the rth iteration, as well as a smoothing factor (similar to λ in Laplace transformation, but referred to as a smoothing parameter here) to perform variable stabilization. This process aims to combine the latest training state and the previously smoothed state to generate a set of network configuration variables that are more stable and less susceptible to random fluctuations.

[0182] In actual operation, variable stabilization processing can also be achieved by using weighted average, exponential moving average or other more complex strategies.

[0183] In step S413, the stabilized network configuration variables obtained after processing in step S412 will become the input of the subsequent steps (such as step S42). These configuration variables not only reflect the learning results of the model in the latest training state, but also reduce the extreme value problem caused by random fluctuations through smoothing, thereby improving the stability and generalization ability of the model.

[0184] As an implementation method, the step S10, obtaining densely extracted text and sparsely extracted text corresponding to the government customer service conversation text template, includes: using dense extraction parameters to perform text extraction on the government customer service conversation text template to obtain densely extracted text, and using sparse extraction parameters to perform text extraction on the government customer service conversation text template to obtain sparsely extracted text, wherein the dense extraction parameter is smaller than the sparse extraction parameter.

[0185] In step S10, the computer system uses two different parameter sets (dense extraction parameters and sparse extraction parameters) to extract text from the government customer service conversation text template. The two parameter sets differ in the density of the extracted text, which is specifically manifested in that the extraction rules or thresholds they specify are different.

[0186] Dense extraction parameters: These parameters are designed to capture as much text information as possible, thereby generating densely extracted text containing more complete conversation content. They may include lower keyword filtering thresholds, wider semantic range matching rules, etc., to ensure that as many sentences, phrases, and even single words as possible are included in the extraction results.

[0187] Sparse extraction parameters: In contrast, sparse extraction parameters are designed to extract key information from the text and generate sparse extracted text with lower information density but more refined. These parameters may include higher keyword filtering thresholds, precise matching rules for specific topics or sentiment tendencies, etc., to ensure that the extracted text can accurately reflect the core content or emotional expression of the original text.

[0188] The dense extraction parameter is smaller than the sparse extraction parameter. The "smaller" here does not refer to the comparison of the parameter values, but to the difference in the strictness of the extraction rules or thresholds set by the parameters. In fact, the dense extraction parameter may be more relaxed in the extraction rules (that is, allowing more text content to pass), while the sparse extraction parameter is more strict (only allowing text content that meets specific conditions to pass).

[0189] See also Figure 3 , is a schematic diagram of the structure of a computer system provided in an embodiment of the present application. Figure 3As shown, the above-mentioned computer system 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer system 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device away from the aforementioned processor 1001. As Figure 3 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0190] exist Figure 3 In the computer system 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface; and the processor 1001 can be used to call the device control application stored in the memory 1005 to implement the method provided in the above embodiment. It should be understood that the computer system 1000 described in the embodiment of the present application can execute the above Figure 2 The description of the intelligent customer service management method for smart government affairs in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here.

Claims

1. An intelligent customer service management method for smart government affairs, characterized in that: include: Acquire densely extracted text and sparsely extracted text corresponding to a government affairs customer service conversation text template, and a priori emotional polarity marker for indicating emotional information text in the government affairs customer service conversation text template; the text information density of the densely extracted text is greater than the text information density of the sparsely extracted text; Based on the basic learning neural network, the emotion polarity analysis is performed on the government customer service conversation text template to obtain a first inference emotion polarity label, based on the basic guidance neural network, the densely extracted text is processed to obtain a second inference emotion polarity label and a first text implicit representation, and based on the basic learning neural network, the sparsely extracted text is processed to obtain a third inference emotion polarity label and a second text implicit representation; In combination with the first text implicit representation, the second text implicit representation, the first inferred emotion polarity label, the second inferred emotion polarity label, the third inferred emotion polarity label, and the prior emotion polarity label, adjusting the network configuration variables of the basic learning neural network; Adjusting the network configuration variables of the basic guiding neural network based on the adjusted network configuration variables of the basic learning neural network in the past iteration cycle; For the adjusted basic guidance neural network and the adjusted basic learning neural network, return to the step of obtaining the densely extracted text and the sparsely extracted text corresponding to the government customer service conversation text template, and the step of indicating the prior emotion polarity mark of the emotion information text in the government customer service conversation text template, and iterate until the preset iteration stop condition is reached, and the iterated basic learning neural network is obtained, and the iterated adjusted basic learning neural network is used as the target learning neural network; The target learning neural network is used to perform emotional polarity analysis on the acquired target government affairs customer service conversation text to be detected, and obtain the emotional polarity label of the emotional information text in the target government affairs customer service conversation text.

2. The method according to claim 1, characterized in that The adjusting of the network configuration variables of the basic learning neural network by combining the first text implicit representation, the second text implicit representation, the first inferred emotion polarity label, the second inferred emotion polarity label, the third inferred emotion polarity label and the prior emotion polarity label includes: Determining a detection error value of the basic learning neural network in combination with the first inferred emotion polarity label and the prior emotion polarity mark; Determining an intrinsic refinement error value of the base learning neural network in combination with the first text implicit representation, the second text implicit representation, the second inferred sentiment polarity label, and the third inferred sentiment polarity label; The network configuration variables of the base learning neural network are adjusted in combination with the detection error value and the intrinsic refinement error value.

3. The method according to claim 2, characterized in that The combining the first text implicit representation, the second text implicit representation, the second inferred emotion polarity label, and the third inferred emotion polarity label to determine the intrinsic refinement error value of the basic learning neural network includes: Determining a text paragraph focus error of the base learning neural network by combining the first text implicit representation and the second text implicit representation; Determining a text dimension focusing error of the base learning neural network by combining the first text implicit representation and the second text implicit representation; Determining an emotion polarity reasoning error value of the basic learning neural network by combining the second reasoning emotion polarity label and the third reasoning emotion polarity label; Using the text paragraph focus error, the text dimension focus error and the sentiment polarity reasoning error value as the intrinsic refinement error value of the basic learning neural network; The step of adjusting the network configuration variables of the basic learning neural network by combining the detection error value and the intrinsic refinement error value comprises: Performing a fusion operation on the text paragraph focus error, the text dimension focus error and the emotion polarity reasoning error value contained in the intrinsic refined error value to obtain an intrinsic refined fusion error value of the basic learning neural network; Adding the intrinsic refinement fusion error value and the detection error value to obtain a combined error value of the basic learning neural network; Adjusting the network configuration variables of the basic learning neural network by means of the combined error value; The first text implicit representation includes numerical representations corresponding to x text characters in the densely extracted text under i feature representations, and the second text implicit representation includes numerical representations corresponding to x text characters in the sparsely extracted text under i feature representations, where x and i are both positive integers not less than 2; combining the first text implicit representation and the second text implicit representation to determine the text paragraph focus error of the basic learning neural network includes: Performing mean calculation on the numerical representations corresponding to each text character in the densely extracted text under the i feature representations to obtain weight parameters of the corresponding text characters in the densely extracted text; Performing mean calculation on the numerical representations corresponding to each text character in the sparsely extracted text under the i feature representations to obtain a weight parameter of the corresponding text character in the densely extracted text; The text paragraph focus error of the basic learning neural network is determined by combining the weight parameters corresponding to each of the x text characters in the densely extracted text and the weight parameters corresponding to each of the x text characters in the sparsely extracted text.

4. The method according to claim 3, characterized in that The step of combining the weight parameters corresponding to the x text characters in the densely extracted text and the weight parameters corresponding to the x text characters in the sparsely extracted text to determine the text paragraph focus error of the basic learning neural network includes: Subtracting the weight parameter of the ath text character in the densely extracted text from the weight parameter of the ath text character in the sparsely extracted text to obtain a weight parameter difference corresponding to the ath text character in the sparsely extracted text; wherein 1≤a≤x; The weight parameter differences of the x text characters in the sparsely extracted text are squared and then added to obtain the text paragraph focusing error of the basic learning neural network.

5. The method according to claim 3, characterized in that: The step of combining the first text implicit representation and the second text implicit representation to determine the text dimension focusing error of the basic learning neural network includes: The x text characters in the densely extracted text are respectively averaged for the numerical representations under each feature representation to obtain the weight parameters of the corresponding feature representations in the densely extracted text; The x text characters in the sparsely extracted text are respectively averaged for the numerical representations under each feature representation to obtain the weight parameters of the corresponding feature representations in the sparsely extracted text; The text dimension focusing error of the basic learning neural network is determined by combining the weight parameters corresponding to the i feature representations in the densely extracted text and the weight parameters corresponding to the i feature representations in the sparsely extracted text.

6. The method according to claim 5, characterized in that The step of combining the weight parameters corresponding to the i feature representations in the densely extracted text and the weight parameters corresponding to the i feature representations in the sparsely extracted text to determine the text dimension focusing error of the basic learning neural network includes: Subtracting the weight parameter of the bth feature representation in the densely extracted text from the weight parameter of the bth feature representation in the sparsely extracted text to obtain a weight parameter difference of the bth feature representation in the sparsely extracted text; 1≤b≤i; The weight parameter differences corresponding to the i feature representations in the sparsely extracted text are squared and then added to obtain the text dimension focusing error of the basic learning neural network.

7. The method according to claim 1, characterized in that The adjusting of the network configuration variables of the basic guiding neural network based on the adjusted network configuration variables of the basic learning neural network in the previous iteration cycle includes: Perform variable stabilization processing on the network configuration variables of the adjusted basic learning neural network in the past iteration cycle to obtain stabilized network configuration variables; Based on the stabilized network configuration variables, the network configuration variables of the basic guiding neural network are adjusted.

8. The method according to claim 7, characterized in that The variable stabilization processing is performed on the network configuration variables of the adjusted basic learning neural network in the previous iteration cycle to obtain the stabilized network configuration variables, including: After the basic learning neural network is adjusted for s times, a network configuration variable of the adjusted basic learning neural network after the sth iterative adjustment and a network configuration variable of the adjusted basic learning neural network after the rth iterative adjustment after Laplace transformation are obtained; 1≤r<s, r=s-1; Performing variable stabilization processing on the network configuration variables after the s-th iteration adjustment and the Laplace transform values ​​after the r-th iteration adjustment based on the Laplace transform parameters, to obtain the network configuration variables of the adjusted basic learning neural network after the s-th iteration adjustment after Laplace transform; The network configuration variables after Laplace transformation after the s-th iteration adjustment are used as processed network configuration variables.

9. The method according to claim 1, characterized in that: The step of obtaining densely extracted text and sparsely extracted text corresponding to the government affairs customer service conversation text template includes: Dense extraction parameters are used to extract text from the government customer service conversation text template to obtain dense extracted text, and sparse extraction parameters are used to extract text from the government customer service conversation text template to obtain sparse extracted text, wherein the dense extraction parameters are smaller than the sparse extraction parameters.

10. A computer system, characterized in that: include: processor; and a memory, wherein the memory stores a computer-readable code, and when the computer-readable code is executed by the processor, the processor executes the method as claimed in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Text irony identification method fusing multiple emotional polarities

    CN118313385A

  • Method and system for cold start video recommendation

    US20180075353A1