Response knowledge base updating method and device

By periodically acquiring and filtering the popularity of service requests, and updating the response knowledge base, the problem of poor timeliness of the response knowledge base is solved, the customer service robot's ability to respond to users' real-time demands is improved, and better services are provided.

CN118626607APending Publication Date: 2024-09-10CHINA GRIDCOM
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410635205.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing response knowledge base has poor timeliness, resulting in customer service robots being unable to respond to users' service requests in a timely manner and unable to meet user needs.

Method used

By periodically obtaining multiple service demands within a historical period, the popularity of each service demand is determined, and target service demands whose popularity meets the preset conditions are selected, and the response knowledge base is updated to these target service demands to improve knowledge. The timeliness of the library.

Benefits of technology

The automatic update of the response knowledge base is realized, so that the stored service demands are those that have received higher attention recently, thereby improving the customer service robot's ability to respond to users' real-time demands and providing better services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626607A
    Figure CN118626607A
Patent Text Reader

Abstract

The invention discloses a response knowledge base updating method and device, and relates to the technical field of computers. According to the method, the popularity of the multiple service appeals in the historical time period can be periodically determined, the target service appeals with the popularity meeting the preset conditions are screened out from the multiple service appeals, and then the service appeals in the response knowledge base are updated to be the target service appeals. According to the method, the response knowledge base can be periodically and automatically updated, so that the timeliness of the response knowledge base can be improved, and the service appeal stored in the updated response knowledge base is the service appeal with relatively high recent attention degree. Therefore, the service appeal displayed by the customer service robot can hit the demand of the user to a large extent, it is ensured that the customer robot can respond to the real-time appeal of the user to a large extent, and high-quality service is provided for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for updating a response knowledge base. Background Art

[0002] As the number of electricity users increases, the power customer service cannot respond to user inquiries and questions in a timely manner, and cannot meet the service needs of the majority of electricity users. To this end, the power service system introduces a customer service robot, which can display the service requests stored in the answer knowledge base to the user, and respond to the user's answer acquisition instruction for a certain service request, obtain the answer to the service request, and then feed the answer back to the user.

[0003] However, the current response knowledge base has poor timeliness, which results in the customer service robot being unable to provide better services to users. Summary of the invention

[0004] The present application provides a method and device for updating a response knowledge base, which can solve the problem of poor timeliness of the current response knowledge base. The technical solution is as follows:

[0005] In one aspect, a method for updating a response knowledge base is provided, the method comprising:

[0006] Periodically obtain multiple service requests within a historical period;

[0007] Determine the popularity of each service claim;

[0008] Filtering out a target service demand whose popularity meets a preset condition from the multiple service demands, wherein the attention degree of the target service demand is greater than a degree threshold;

[0009] The service demands stored in the response knowledge base are updated to the target service demands.

[0010] Optionally, determining the popularity of each of the service requests includes:

[0011] Determine the target subject of the service request;

[0012] Obtain the number of occurrences and the degree of distribution of the target topic in the historical period, and obtain the degree of urgency of handling the target topic, wherein the degree of distribution of the target topic is positively correlated with the number of regions in which service requests with the target topic as the subject are distributed in the historical period;

[0013] The heat of the service request is determined based on the number of occurrences, the widespread distribution, and the processing urgency.

[0014] Optionally, determining the popularity of the service request based on the number of occurrences, the degree of distribution, and the degree of urgency of processing includes:

[0015] Determining a first ranking of the number of occurrences of the target topic among the number of occurrences of a plurality of topics, a second ranking of the widespread distribution of the target topic among the widespread distribution of the plurality of topics, and a third ranking of the urgency of processing the target topic among the urgency of processing the plurality of topics;

[0016] Taking a weighted sum of the first ranking, the second ranking, and the third ranking to obtain the popularity of the service demand;

[0017] The multiple topics include the target topic, and the multiple topics are obtained based on topic statistics of each service request in the multiple service requests.

[0018] Optionally, the order of the number of occurrences of the multiple topics, the order of the degree of distribution of the multiple topics, and the order of the degree of urgency of processing the multiple topics are all in ascending order;

[0019] The preset condition is greater than a first heat threshold;

[0020] Alternatively, the order of the number of occurrences of the multiple topics, the order of the degree of distribution of the multiple topics, and the order of the degree of urgency of processing the multiple topics are all in descending order;

[0021] The preset condition is that the temperature is less than a second heat threshold.

[0022] Optionally, obtaining the processing urgency of the target topic includes:

[0023] In the correspondence between topics and urgency levels, the urgency level corresponding to the target topic is determined as the processing urgency level of the target topic.

[0024] Optionally, determine the target theme of the service request, including:

[0025] The service demand is input into a topic identification model to obtain a target topic of the service demand output by the topic identification model.

[0026] Optionally, the service request is in a voice format; before determining the target subject of the service request, the method further includes:

[0027] The service request is formatted so as to convert the service request from the voice format to a text format.

[0028] Optionally, updating the service demand stored in the response knowledge base to the target service demand includes:

[0029] Deleting the service request stored in the response knowledge base;

[0030] The target service demand and the answer to the target service demand are added to the response knowledge base.

[0031] On the other hand, a device for updating a response knowledge base is provided, the device comprising:

[0032] The acquisition module is used to obtain multiple service requests within a historical period;

[0033] A determination module, used to determine the popularity of each of the service demands;

[0034] A screening module, configured to screen out target service demands whose popularity meets a preset condition from the plurality of service demands, wherein the degree of attention received by the target service demands is greater than a degree threshold;

[0035] The updating module is used to add the target service demand and the answer to the target service demand to the response knowledge base to update the response knowledge base.

[0036] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for updating the response knowledge base as described in the above aspects is implemented.

[0037] The beneficial effects brought about by the technical solution provided by this application include at least:

[0038] The present application provides a method and device for updating a response knowledge base, which can periodically determine the popularity of multiple service requests within a historical period, and screen out target service requests whose popularity meets preset conditions from multiple service requests, and then update the service requests in the response knowledge base to the target service requests. That is, the method can automatically update the response knowledge base periodically, thereby improving the timeliness of the response knowledge base, so that the service requests stored in the updated response knowledge base are service requests that have received a high degree of attention recently. As a result, the service requests displayed by the customer service robot can hit the user's needs to a greater extent, ensuring that the customer robot can provide users with relatively high-quality services.

[0039] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1It is a flow chart of a method for updating a response knowledge base provided in an embodiment of the present application;

[0041] Figure 2 is a flowchart of another method for updating a response knowledge base provided in an embodiment of the present application;

[0042] Figure 3 is a flow chart of a method for determining the popularity of a service request provided in an embodiment of the present application;

[0043] Figure 4 is a schematic diagram of a training process of a topic identification model provided in an embodiment of the present application;

[0044] Figure 5 It is a schematic diagram of a device for updating a response knowledge base provided in an embodiment of the present application;

[0045] Figure 6 is a schematic diagram of another device for updating a response knowledge base provided in an embodiment of the present application;

[0046] Figure 7 It is a structural diagram of an updating device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0048] An embodiment of the present application provides a method for updating a response knowledge base, which is applied to a knowledge base updating device (hereinafter referred to as the updating device). Optionally, the updating device may be a customer service robot or a server. The server may be a single server, or a server cluster consisting of several servers, or a cloud computing service center. If the updating device is a server, after the updating device completes the updating of the response knowledge base, the updated response knowledge base may be shared with the customer service robot so that the customer service robot can display the latest service requests based on the response knowledge base. See Figure 1 , the method comprising:

[0049] Step 101: Periodically obtain multiple service requests within a historical period.

[0050] The historical period may be a period of a specified length of time before the acquisition time of the service request. For example, the target duration may be 7 days, 15 days, or 30 days. For example, if the target duration is 7 days, the historical period may be the 7 days closest to the acquisition time.

[0051] The acquisition cycle of multiple service requests in the historical period can be pre-stored by the updating device, for example, 7 days or 30 days. That is, the updating device can obtain multiple service requests in the recent period every 7 days or 30 days, and update the response knowledge base based on the multiple service requests. In this way, the timeliness of updating the response knowledge base is improved.

[0052] It is understandable that the user can make a service request through a chat page or email. Accordingly, the format of each service request can be a text format. Alternatively, the user can make a service request through a phone call, and accordingly, the format of each service request can be a voice format.

[0053] Step 102: Determine the popularity of each service request.

[0054] Among them, the heat can represent the degree of user attention to service demands.

[0055] In the embodiment of the present application, the update device can determine the target topic of the service request, and then obtain the number of occurrences and the degree of distribution of the target topic in the historical period, as well as the urgency of processing the target topic. Then, the update device can determine the popularity of the service request based on the number of occurrences, the degree of distribution, and the urgency of processing.

[0056] Alternatively, the updating device may pre-store a heat determination model, and the updating device may input the service demand into the heat determination model to obtain the heat of the service demand output by the heat determination model.

[0057] In an embodiment of the present application, the updating device may obtain a plurality of sample data, each of which includes a sample demand and the popularity of the sample demand. Then, the updating device may perform model training on the plurality of sample data to obtain the popularity determination model.

[0058] Step 103: Filter out target service demands whose popularity meets preset conditions from multiple service demands.

[0059] Among them, the degree of attention paid to the target service demand is greater than the degree threshold, that is, users pay more attention to the target service demand.

[0060] Step 104: Update the service demand stored in the response knowledge base to the target service demand.

[0061] Optionally, the updating device may delete the service demands stored in the response knowledge base, and add the determined target service demands to the response knowledge base, so as to update the service demands stored in the response knowledge base to the target service demands.

[0062] Optionally, after the update device obtains the target service demand, it can also obtain the answer to the target service demand and add the answer to the target service demand to the answer knowledge base. In this way, the efficiency of the customer service robot in feeding back the answer to the target service demand to the user can be improved.

[0063] In summary, the embodiment of the present application provides a method for updating a response knowledge base, which can periodically determine the popularity of multiple service demands within a historical period, and screen out target service demands whose popularity meets preset conditions from the multiple service demands, and then update the service demands in the response knowledge base to the target service demands. That is, the method can automatically update the response knowledge base periodically, thereby improving the timeliness of the response knowledge base, so that the service demands stored in the updated response knowledge base are service demands that have received a high degree of attention in the recent period. Thereby, the service demands displayed by the customer service robot can hit the user's needs to a greater extent, ensuring that the customer robot can respond to the user's real-time demands to a greater extent and provide users with better quality services.

[0064] Taking the service request obtained in voice format as an example, the updating method of the response knowledge base provided in the embodiment of the present application is exemplarily described, and the method can be applied to updating the device. Figure 2 , the method may include:

[0065] Step 201: Periodically obtain multiple service requests within a historical period.

[0066] The historical period may be a period of a specified length of time before the acquisition time of the service request. For example, the target duration may be 7 days, 15 days, or 30 days. For example, if the target duration is 7 days, the historical period may be the 7 days closest to the acquisition time.

[0067] The acquisition cycle of multiple service requests in the historical period can be pre-stored by the updating device, for example, 7 days or 30 days. That is, the updating device can obtain multiple service requests in the recent period every 7 days or 30 days, and update the response knowledge base based on the multiple service requests. In this way, the timeliness of updating the response knowledge base is improved.

[0068] In an embodiment of the present application, when a user makes his or her service request to the answering end through a call application, the answering end can record the service request and store the service request obtained from the recording in a database. At this time, the format of the service request is a voice format. When the update device needs to obtain a service request, it can send a request acquisition request to the database, and the request acquisition request can carry the specified time length mentioned above. Accordingly, after receiving the request acquisition request, the database can respond to the request acquisition request and send a plurality of service requests within the specified time length before the reception time of the request acquisition request to the update device. Since the interval between the reception time and the acquisition time is short, it can be considered that the period of the specified time length before the reception time is the historical period, and the corresponding update device can obtain a plurality of service requests within the historical period.

[0069] Optionally, the database may be a distributed file system (DFS), for example, a distributed file system under Hadoop (Hadoop distributed file system, HDFS).

[0070] Optionally, when the database sends multiple service requests within a historical period to the update device, the database may also send the location of each service request to the update device. The location may be a city or county in province X.

[0071] Step 202: Convert the format of each service request.

[0072] For each service request in the historical period, the updating device may perform format conversion on the service request, so as to convert the format of the service request from a voice format to a text format, thereby facilitating the updating device to determine the popularity of the service request.

[0073] Step 203: Determine the popularity of each service demand.

[0074] Among them, the popularity of service demands can represent the degree of users' attention to service demands.

[0075] Optional, see Figure 3 For each of the multiple service requests, the update device may determine the popularity of the service request by the following steps:

[0076] Step 2031: Determine the target theme of the service request.

[0077] Among them, the target theme is used to indicate the core focus of the service request.

[0078] In an embodiment of the present application, the updating device may pre-store a topic identification model. The updating device may input the service demand into the topic determination model, thereby obtaining the target topic of the service demand output by the topic identification model.

[0079] Step 2032: Obtain the number of occurrences and the degree of distribution of the target topic in the historical period, and obtain the urgency of processing the target topic.

[0080] Among them, the processing urgency is used to indicate whether the target topic needs urgent processing. The distribution breadth is used to indicate whether the target topic is widely distributed in the historical period, and the distribution breadth is positively correlated with the number of regions where the service demands with the theme of the target topic are distributed in the historical period. That is, the more regions where the service demands with the theme of the target topic are distributed, the higher the distribution breadth of the target topic. The distribution breadth can be represented by a score.

[0081] In an embodiment of the present application, after the update device obtains the subject of each service request in the multiple service requests through step 2031, it can count the total number of service requests with the subject of the target subject, and determine the total number as the number of occurrences of the target subject in the historical period.

[0082] Furthermore, the updating device may count the locations of service requests with the target theme as the subject, and determine the number of at least one area where the target theme is distributed based on multiple different locations, and then determine the degree of distribution of the target theme in the historical period based on the number of at least one area.

[0083] It is understandable that each region may be a place of attribution, in which case the number of at least one region may be equal to the number of multiple different places of attribution. Alternatively, the location range of each region may include the location ranges of multiple places of attribution. For example, the place of attribution is a city-level region, and the region is a provincial-level region.

[0084] In an embodiment of the present application, the process of the update device obtaining the processing urgency of the target topic may include: the update device determines the urgency corresponding to the target topic in the correspondence between the topic and the urgency as the processing urgency of the target topic. The correspondence may be pre-stored by the update device. And the processing urgency may be represented by a score.

[0085] Step 2032: Determine the popularity of the service request based on the number of occurrences, the breadth of distribution, and the urgency of processing.

[0086] The number of occurrences of the target topic may differ greatly from the magnitude of its widespread distribution and urgency of processing. If the number of occurrences, widespread distribution and urgency of processing are directly used to determine the popularity of the service request, the number of occurrences with a larger magnitude will occupy too large a proportion of the popularity, while the widespread distribution and urgency of processing with a smaller magnitude will be almost ignored, resulting in the determined popularity being unable to truly reflect the actual contribution of each parameter (i.e., number of occurrences, widespread distribution and urgency of processing) to the popularity. Based on this, the update device provided in the embodiment of the present application can determine the popularity of the service request in the following manner to improve the reliability of the determined popularity.

[0087] In an optional implementation, the update device may determine a first ranking of the number of occurrences of the target topic among the number of occurrences of the multiple topics, a second ranking of the distribution breadth of the target topic among the distribution breadths of the multiple topics, and a third ranking of the processing urgency of the target topic among the processing urgency of the multiple topics. Then, the update device may perform a weighted sum of the first ranking, the second ranking, and the third ranking to obtain the popularity of the service request.

[0088] Among them, the weights of the number of occurrences, the degree of distribution and the degree of urgency of processing can all be pre-stored by the update device. The first ranking is the position of the number of occurrences of the target topic in the number of occurrences of the sorted multiple topics. The second ranking is the position of the degree of distribution of the target topic in the degree of distribution of the sorted multiple topics. The third ranking is the position of the degree of urgency of processing the target topic in the degree of urgency of processing the sorted multiple topics. The multiple topics include the target topic, and the multiple topics are obtained based on the topic statistics of each service demand within the target time period.

[0089] That is, the heat H can satisfy: H = W1 × P1 + W2 × P2 + W3 × P3. Among them, W1 is the weight of the number of occurrences, and P1 is the first ranking of the number of occurrences. W2 is the weight of the degree of distribution, and P2 is the second ranking of the degree of distribution. W3 is the weight of the urgency of processing, and P3 is the third ranking of the urgency of processing.

[0090] It is understandable that the order of the number of occurrences of multiple topics, the order of the degree of distribution of multiple topics, and the order of the urgency of handling multiple topics are all the same. The ordering can be in ascending order or descending order.

[0091] In the embodiment of the present application, if the sorting method is in ascending order, the greater the distribution, the smaller the first ranking. Similarly, the greater the distribution, the greater the second ranking, and the greater the urgency of processing, the greater the third ranking. At this time, the popularity of the service request can be positively correlated with the number of occurrences, the degree of distribution, and the urgency of processing.

[0092] If the sorting method is in descending order, the greater the distribution, the smaller the first ranking. Similarly, the greater the distribution, the smaller the second ranking, and the greater the urgency of handling, the smaller the third ranking. At this time, the popularity of the service request can be negatively correlated with the number of occurrences, the distribution, and the urgency of handling.

[0093] In another optional implementation, the update device may normalize the number of occurrences of the target topic, the degree of distribution of the target topic, and the degree of urgency of processing the target topic. Then, the update device may determine the heat of the service request based on the normalized number of occurrences, the normalized degree of distribution, and the normalized degree of urgency of processing. The heat is positively correlated with the normalized number of occurrences, the normalized degree of distribution, and the normalized degree of urgency of processing.

[0094] For example, the updating device may perform a weighted summation of the normalized number of occurrences, the normalized distribution breadth, and the normalized processing urgency to obtain the popularity of the service request.

[0095] It is understandable that the update device can normalize the number of occurrences of the target topic based on the maximum and minimum values ​​of the number of occurrences of multiple topics. The process of normalizing the distribution of the target topic and the urgency of processing the target topic can refer to the process of normalizing the number of occurrences, and the embodiments of the present application will not be repeated here.

[0096] For example, assuming that the weight of the number of occurrences is 0.5, the weight of the degree of distribution is 0.2, the weight of the degree of urgency is 0.3, and the first ranking of the number of occurrences of the target topic of a service demand is 10, the second ranking of the degree of distribution is 3, and the third ranking of the degree of urgency is 12. Then, the popularity of the service demand is: 10×0.5+3×0.2+12×0.3=9.2.

[0097] Step 204: Filter out target service demands whose popularity meets preset conditions from the multiple service demands.

[0098] Among them, the degree of attention received by the target service demand is greater than the degree threshold, that is, the degree of attention received by the target service demand is relatively high.

[0099] In the embodiment of the present application, if the update device determines the popularity of the service request based on the normalized number of occurrences of the target topic, the normalized distribution breadth, and the normalized processing urgency; or determines the popularity based on the first ranking of the number of occurrences of the target topic, the second ranking of the distribution breadth, and the third ranking of the processing urgency, and the first ranking to the third ranking are all rankings in ascending order, then the preset condition can be greater than the first popularity threshold. In this way, the update device can filter out service requests with higher attention from multiple service requests.

[0100] If the update device determines the heat based on the first ranking of the number of occurrences of the target topic, the second ranking of the degree of widespread distribution, and the third ranking of the degree of urgency of handling, and the first to third rankings are all rankings in descending order, then the preset condition may be less than the second heat threshold. In this way, the update device can filter out service demands with higher levels of attention from multiple service demands.

[0101] Among them, the second heat threshold and the first heat threshold may be the same or different. Both the first heat threshold and the second heat threshold may be pre-stored by the update device, or may be predetermined by the update device. For example, the update device may obtain multiple different heats based on the heat statistics of multiple service requests. For the rankings in ascending order from the first to the third rankings, and the method of determining the heat based on the normalized parameters, the update device may sort the multiple heats in descending order, and determine the Mth heat after sorting as the first heat threshold. That is, at this time, the update device may determine the service requests ranked M-1 before the heat ranking as the target service request. M is an integer greater than or equal to 2, for example, 10.

[0102] For the rankings in descending order from the first ranking to the third ranking, the update device may sort the multiple heats in ascending order and determine the Nth heat after sorting as the second heat threshold. That is, at this time, the update device may determine the service requests N-1 before the heat ranking as the target service request. N is an integer greater than or equal to 2, for example, 10.

[0103] Step 205: Update the service demand stored in the response knowledge base to the target service demand.

[0104] In an embodiment of the present application, the updating device may delete the service demands stored in the response knowledge base, and add the determined target service demands to the response knowledge base, so as to update the service demands stored in the response knowledge base to the target service demands.

[0105] Alternatively, after obtaining the target service demand, the update device may detect whether the service demand stored in the response knowledge base is the same as the target service demand. If the update device determines that a service demand stored in the response knowledge base is the same as the target service demand, the service demand may continue to be retained. If the update device determines that a service demand stored in the response knowledge base is different from the target service demand, the service demand may be deleted. Furthermore, if the update device determines that the response knowledge base does not store the target service demand, the target service demand may be added to the response knowledge base.

[0106] In the embodiment of the present application, assuming that the updating device is a customer service robot, after the service demands stored in the response knowledge base are updated to the target service demands, if the customer service robot receives a display request for the service demands, the latest target service demands can be displayed to the user. For example, the target service demands can be broadcast to the user.

[0107] Optionally, after the update device obtains the target service demand, it can also obtain the answer to the target service demand and add the answer to the target service demand to the answer knowledge base. In this way, the efficiency of the customer service robot in feeding back the answer to the target service demand to the user can be improved.

[0108] It is understandable that after the update device obtains the target service demand, it can display the target service demand for the staff to view. Then, the staff inputs the answer to the target service demand into the update device, and accordingly, the update device can obtain the answer to the target service demand.

[0109] Optionally, before inputting the service demand into the topic identification model to obtain the target topic of the service demand, the updating device may first train the topic identification model. The following is an exemplary description of the process of training the topic identification model by the updating device:

[0110] The update device can obtain a large number of sample demands, then convert the format of each sample demand from voice format to text format, and preprocess the sample demands after format conversion. For each sample demand after preprocessing, the staff can read the sample demand and mark the subject of the sample demand. Correspondingly, the update device can obtain the subject of the sample demand in response to the staff's marking operation on the sample demand. That is, the subject of the sample demand is obtained by manual marking. The number of sample demands for each subject is large, which can meet the construction requirements of the subject recognition model. Multiple labeled sample demands are divided into training sets and test sets.

[0111] Then, the update device can use deep learning algorithms to build a topic recognition model. For example, the update device can use a bidirectional long short-term memory network (BiLSTM) algorithm and a convolutional neural network (CNN) algorithm, and combine it with an attention mechanism (such as Transformer) to train a multi-layer neural network of the topic recognition model. Among them, Transformer consists of a complete encoder-decoder structure.

[0112] Specifically, see Figure 4 In the process of training the topic recognition model, the update device can first perform data training and then sentence feature extraction training. Data training includes: demand data training and word vector training. Demand data training refers to: using sample complaints with labeled topics for model training so that the algorithm can learn and understand sample demands of different topics. Word vector training refers to: converting the words in the sample demands into vector representations so that the algorithm can better understand and process the sample demands. Through data training, the model can extract useful information from the sample demands, laying the foundation for subsequent sentence feature training.

[0113] Sentence feature extraction training is the core part of model training, which mainly includes semantic acquisition training, semantic computing training and demand semantic acquisition training. Semantic acquisition training is to convert sentences representing sample demands into semantic representations through deep learning and other technologies, and then capture the semantic information of sentences. Semantic computing training can determine whether sample demands of different topics belong to the same topic by calculating the semantic similarity between words and sentences. Demand semantic acquisition training can train the model to identify the topic of the input service demand.

[0114] It is understandable that during the training process, the update device can put the training set (i.e., multiple sample demands labeled with topics) into the data reading class based on the pre-set learning rate of the model, so as to read the training set in batches during the training process. In addition, the update device can randomly extract a batch of data from the data reading class and send it to the model for training, and then shuffle the training set and extract another batch for training until the number of extractions reaches the total amount of data in the training set. That is, the update device can perform multiple rounds of training based on the training set.

[0115] After each round of training, the update device can use the test set to test the accuracy of the trained model to focus on locating sample demands and their topics with low recognition accuracy. After that, the update device can increase the number of sample demands of the topic and continue model training until the recognition accuracy of the topics of sample demands of various topics is high, thereby obtaining a usable topic recognition model.

[0116] In an embodiment of the present application, the process of preprocessing the sample demands by the updating device may include: analyzing and checking the text quality of the sample demands in text format to determine whether the sample demands meet the modeling data distribution and accuracy requirements, and removing sample demands that do not meet the requirements.

[0117] It is understandable that the staff can update the training set every period of time (such as 30 days) based on new topics and new sample demands that have recently appeared. The updating device can then retrain the model based on the updated training set to update the topic recognition model. In this way, the timeliness of the updated response knowledge base can be further ensured.

[0118] It can also be understood that the method provided in the embodiment of the present application can be applicable to the scenario of power customer service. That is, the service demand can be a service demand for the power system.

[0119] As the number of electricity users increases, power customer service cannot respond to users' inquiries and questions in a timely manner, and cannot meet the service needs of the majority of electricity users. In order to respond to users' inquiries in a timely manner, the power system can respond to customers' demands by adding lines and power customer service. However, this depends on the number of power customer service personnel, and the power customer service personnel must have certain experience and strong subjective adaptability, which leads to high labor costs for response. In addition, power customer service personnel will be idle during off-peak hours, with low flexibility, which further increases the labor costs for response.

[0120] To this end, the power system introduces a customer service robot to replace the power customer service to respond. The customer service robot supports the access and automatic response of multiple concurrent lines. Specifically, the customer service robot can display the service demands stored in the answer knowledge base, and respond to the user's answer acquisition instruction for a certain service demand, obtain the answer to the service demand, and then feed the answer back to the user.

[0121] The use of customer service robots can reduce the number of hotline lines and the labor cost of response to a certain extent, and it is more flexible than manual methods. However, the timeliness of the current response knowledge base is poor, resulting in the customer service robots being unable to respond to users' real-time demands and unable to provide users with better services.

[0122] The method provided in the embodiment of the present application can periodically determine the popularity of multiple service demands within a historical period, and select the target service demands whose popularity meets the preset conditions from the multiple service demands, and then update the service demands in the response knowledge base to the target service demands. That is, the method can automatically update the response knowledge base periodically to achieve rolling updates of the response knowledge base, thereby improving the timeliness of the response knowledge base, so that the service demands stored in the updated response knowledge base are the service demands that have received a high degree of attention in the recent period. As a result, the customer robot can respond to the user's real-time demands to a greater extent and provide users with better services.

[0123] It is understandable that the sequence of the steps of the updating method of the response knowledge base provided in the embodiment of the present application can be appropriately adjusted, and the steps can also be increased or decreased accordingly according to the situation. For example, step 202 can also be deleted according to the situation. Any technician familiar with the technical field can easily think of the method of variation within the technical scope disclosed in this application, which should be included in the protection scope of this application, so it will not be repeated.

[0124] In summary, the embodiment of the present application provides a method for updating a response knowledge base, which can periodically determine the popularity of multiple service demands within a historical period, and screen out target service demands whose popularity meets preset conditions from the multiple service demands, and then update the service demands in the response knowledge base to the target service demands. That is, the method can automatically update the response knowledge base periodically, thereby improving the timeliness of the response knowledge base, so that the service demands stored in the updated response knowledge base are service demands that have received a high degree of attention in the recent period. Thereby, the service demands displayed by the customer service robot can hit the user's needs to a greater extent, ensuring that the customer robot can respond to the user's real-time demands to a greater extent and provide users with better quality services.

[0125] The present application embodiment provides a device for updating a response knowledge base, which can execute the method for updating the response knowledge base provided in the above method embodiment. Figure 5 , the device comprises:

[0126] An acquisition module 301 is used to acquire multiple service requests within a historical period;

[0127] A determination module 302 is used to determine the popularity of each service demand;

[0128] A screening module 303 is used to screen out target service demands whose popularity meets a preset condition from multiple service demands, and the attention degree of the target service demands is greater than a degree threshold;

[0129] The updating module 304 is used to update the service demand stored in the response knowledge base to the target service demand.

[0130] Optionally, the determination module 302 may be used to:

[0131] Determine the target theme of the service request;

[0132] Obtain the number of occurrences and the degree of distribution of the target topic in the historical period, and obtain the urgency of handling the target topic, where the degree of distribution of the target topic is positively correlated with the number of regions where the service demands with the target topic are distributed in the historical period;

[0133] Determine the popularity of service requests based on the number of occurrences, widespread distribution, and urgency of handling.

[0134] Optionally, the determination module 302 may be used to:

[0135] Determining a first ranking of the number of occurrences of a target topic among the number of occurrences of the multiple topics, a second ranking of the widespread distribution of the target topic among the widespread distribution of the multiple topics, and a third ranking of the urgency of processing the target topic among the urgency of processing the multiple topics;

[0136] Take the weighted sum of the first, second and third rankings to get the popularity of the service demand;

[0137] The multiple topics include a target topic, and the multiple topics are obtained based on topic statistics of each service request in the multiple service requests.

[0138] Optionally, the order of the number of occurrences of multiple topics, the order of the widespread distribution of multiple topics, and the order of the urgency of handling multiple topics are all in ascending order;

[0139] The preset condition is that the temperature is greater than the first heat threshold;

[0140] Alternatively, the order of the number of occurrences of multiple topics, the order of the widespread distribution of individual topics, and the order of the urgency of handling multiple topics are all in descending order;

[0141] The preset condition is that the temperature is less than the second heat threshold.

[0142] Optionally, the process of the determination module 302 acquiring the processing urgency of the target topic may include:

[0143] In the correspondence between the topic and the urgency, the urgency corresponding to the target topic is determined as the processing urgency of the target topic.

[0144] Optionally, the process of determining the target subject of the service demand by the determination module 302 may include:

[0145] The service demand is input into the topic identification model to obtain the target topic of the service demand output by the topic identification model.

[0146] Optionally, the service request is in voice format. Figure 6 , the apparatus 300 may further include:

[0147] The conversion module 305 is used to convert the format of the service request, so as to convert the format of the service request from a voice format to a text format.

[0148] Optionally, the update module 304 may be used to:

[0149] Delete the service requests stored in the answer knowledge base;

[0150] Add the target service request and the answer to the target service request to the response knowledge base.

[0151] In summary, the embodiment of the present application provides a device for updating a response knowledge base, which can periodically determine the popularity of multiple service demands within a historical period, and screen out target service demands whose popularity meets preset conditions from the multiple service demands, and then update the service demands in the response knowledge base to the target service demands. That is, the device can automatically update the response knowledge base periodically, thereby improving the timeliness of the response knowledge base, so that the service demands stored in the updated response knowledge base are service demands that have received a high degree of attention in the recent period. Thereby, the service demands displayed by the customer service robot can hit the user's needs to a greater extent, ensuring that the customer robot can respond to the user's real-time demands to a greater extent and provide users with better quality services.

[0152] The present application also provides an update device, see Figure 7 , the update device 400 includes: a processor 401 and a memory 403. The processor 401 and the memory 403 are connected, such as through a bus 402. Optionally, the update device 400 may also include a transceiver 404. It should be noted that in actual applications, the transceiver 404 is not limited to one, and the structure of the update device 400 does not constitute a limitation on the embodiments of the present application.

[0153] Processor 401 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 401 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0154] The bus 402 may include a path to transmit information between the above components. The bus 402 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 402 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0155] The memory 403 is used to store a computer program corresponding to the updating method of the response knowledge base of the above embodiment of the present application, and the computer program is controlled and executed by the processor 401. The processor 401 is used to execute the computer program stored in the memory 403 to implement the content shown in the above method embodiment.

[0156] Figure 7 The updating device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0157] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the updating method of the response knowledge base provided in the above method embodiment is implemented. For example, Figure 1 or Figure 2 The method shown.

[0158] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0159] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0160] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0161] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0162] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0163] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for updating a response knowledge base, characterized in that: The method comprises: Periodically obtain multiple service requests within a historical period; Determine the popularity of each service claim; Filtering out a target service demand whose popularity meets a preset condition from the multiple service demands, wherein the attention degree of the target service demand is greater than a degree threshold; The service demands stored in the response knowledge base are updated to the target service demands.

2. The method according to claim 1, characterized in that Determine the popularity of each service request, including: Determine the target subject of the service request; Obtain the number of occurrences and the degree of distribution of the target topic in the historical period, and obtain the urgency of handling the target topic, wherein the degree of distribution of the target topic is positively correlated with the number of regions in which the service demands with the subject of the target topic are distributed in the historical period; The heat of the service request is determined based on the number of occurrences, the widespread distribution, and the processing urgency.

3. The method according to claim 2, characterized in that Determining the popularity of the service request based on the number of occurrences, the widespread distribution, and the urgency of processing includes: Determining a first ranking of the number of occurrences of the target topic among the number of occurrences of a plurality of topics, a second ranking of the widespread distribution of the target topic among the widespread distribution of the plurality of topics, and a third ranking of the urgency of processing the target topic among the urgency of processing the plurality of topics; Taking a weighted sum of the first ranking, the second ranking, and the third ranking to obtain the popularity of the service demand; The multiple topics include the target topic, and the multiple topics are obtained based on topic statistics of each service request in the multiple service requests.

4. The method according to claim 3, characterized in that The order of the number of occurrences of the multiple topics, the order of the degree of distribution of the multiple topics, and the order of the degree of urgency of handling the multiple topics are all in ascending order; The preset condition is greater than a first heat threshold; Alternatively, the order of the number of occurrences of the multiple topics, the order of the degree of distribution of the multiple topics, and the order of the degree of urgency of processing the multiple topics are all in descending order; The preset condition is that the temperature is less than a second heat threshold.

5. The method according to claim 2, characterized in that: Obtaining the urgency of processing the target topic, including: In the correspondence between topics and urgency levels, the urgency level corresponding to the target topic is determined as the processing urgency level of the target topic.

6. The method according to any one of claims 2 to 5, characterized in that: Identify the target topics for the service request, including: The service demand is input into a topic identification model to obtain a target topic of the service demand output by the topic identification model.

7. The method according to claim 6, characterized in that The format of the service request is a voice format; before determining the target subject of the service request, the method further includes: The service request is formatted so as to convert the service request from the voice format to a text format.

8. The method according to any one of claims 1 to 5, characterized in that: Updating the service demands stored in the response knowledge base to the target service demands includes: Deleting the service request stored in the response knowledge base; The target service demand and the answer to the target service demand are added to the response knowledge base.

9. A device for updating a response knowledge base, characterized in that: The device comprises: The acquisition module is used to obtain multiple service requests within a historical period; A determination module, used to determine the popularity of each of the service demands; A screening module, configured to screen out target service demands whose popularity meets a preset condition from the plurality of service demands, wherein the degree of attention received by the target service demands is greater than a degree threshold; The updating module is used to update the service demand stored in the response knowledge base to the target service demand.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Method for improving customer service quality based on 95598 work order

    CN110955777A

  • Answer text processing method and device and key text determining method

    CN111737443A

  • Intelligent question and answer knowledge base construction method and system, terminal and storage medium

    CN113010658A

  • Hotspot acquisition method and device, equipment and readable storage medium

    CN113486168A

  • Cross-Domain Topic Expansion

    US20150006460A1