Data processing method, device, electronic device and storage medium

By performing word segmentation and word vector conversion processing on the customer service work order of the service order, and using the recurrent neural network model to predict the risk coefficient, the problems of limited customer service personnel and low judgment efficiency in the existing technology are solved, and more efficient and accurate safety judgments are achieved. .

CN111861610BActive Publication Date: 2024-10-25BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910367655.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-30
Publication Date
2024-10-25
Estimated Expiration
2040-04-25

AI Technical Summary

Technical Problem

The existing service order security judgment method has problems such as limited customer service personnel and low judgment efficiency, resulting in inaccurate judgment results.

Method used

By performing word segmentation and word vector conversion processing on the customer service work order, the text data is converted into a numerical vector that can be recognized by the recurrent neural network model, and is input into the trained recurrent neural network model in sequence according to word order to predict the risk factor of the service order. , reducing the time cost and subjectivity of manual judgment.

Benefits of technology

It improves the efficiency and accuracy of service order judgment, reduces the subjectivity of manual judgment, and ensures that customer service personnel can handle dangerous events in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111861610B_ABST
    Figure CN111861610B_ABST
Patent Text Reader

Abstract

The present application discloses a data processing method, device, electronic device and storage medium, which belongs to the field of data processing technology. The data processing method includes: obtaining a customer service work order for a service order; performing word segmentation on the text recorded in the customer service work order to obtain a word segmentation array; using a preset vector conversion model to map the word segmentation array to a corresponding word vector sequence; inputting each vector in the word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text for processing, and obtaining the risk coefficient of the service order. In an embodiment of the present application, by performing word segmentation and word vector conversion processing on the customer service work order to be processed, and inputting each obtained vector into a pre-trained recurrent neural network model in sequence according to the word order in the text for processing, the risk coefficient of the service order is predicted, the time cost of manual customer service is reduced, the judgment efficiency is improved, and the subjectivity of manual judgment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and specifically relates to a data processing method, device, electronic device and storage medium. Background Art

[0002] With the advancement of technology and the complexity of social networks, many service platforms have emerged that are responsible for providing convenience to users (such as online car-hailing platforms and food delivery platforms). As a link between service requesters and service providers, the service platform not only needs to provide convenient services to multiple users, but also shoulders the important responsibility of protecting the interests of users. Complex social relationships and unpredictable emergencies have brought huge difficulties to platform services and user management. Therefore, service platforms almost all have customer service personnel responsible for handling various complaint orders. Customer service is an important link connecting the platform, service requesters, and service providers. As a transit station for information between the three parties, it is particularly important to solve security problems from the customer service node.

[0003] Currently, service order security issues are mainly handled through manual customer service upgrades and client-side Q&A. For example, customer service manually determines whether it needs to be upgraded to a security issue based on the user's call content. However, there are the following problems: 1) Customer service personnel are limited and cannot handle it in a timely manner; 2) The backlog of events to be judged is inversely proportional to the response speed. When there is a backlog of events to be judged, its efficiency will also be reduced. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a data processing method, device, electronic device and storage medium to improve the problems of low judgment efficiency and inaccurate judgment results caused by subjectivity in existing judgment methods.

[0005] The embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a data processing method, including: obtaining a customer service work order for a service order; performing word segmentation on the text recorded in the customer service work order to obtain a word segmentation array; using a pre-trained vector conversion model to map the word segmentation array into a corresponding word vector sequence; inputting each vector in the word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text for processing to obtain a risk coefficient of the service order.

[0007] In an embodiment of the present application, the customer service work order to be processed is processed through word segmentation and word vector conversion, so that it is converted into a digital vector recognizable by a recurrent neural network model, and the obtained vectors are sequentially input into a pre-trained recurrent neural network model according to the word order in the text for processing, thereby realizing the prediction of the risk factor of the service order, reducing the time cost of manual customer service, improving judgment efficiency, and reducing the subjectivity of manual judgment.

[0008] In combination with the first aspect embodiment, in a possible implementation, the text recorded in the customer service work order is segmented to obtain a segmentation array, including: preprocessing the text recorded in the customer service work order, the preprocessing includes at least one of the following: deleting duplicate records, deleting customer service words, standardizing punctuation, and deleting redundant information; segmenting the preprocessed text to obtain a segmentation array. In the embodiment of the present application, when segmenting the text recorded in the customer service work order, the text is first preprocessed, such as deleting duplicate records, deleting customer service words, standardizing punctuation, and deleting redundant information, and then the preprocessed text is segmented to reduce the interference of useless information and improve the accuracy of the prediction results. At the same time, since useless information is deleted, the processing efficiency can also be improved.

[0009] In combination with the first aspect embodiment, in a possible implementation, after obtaining the risk coefficient of the service order, the method further includes: determining whether the risk coefficient is greater than a preset risk threshold; when the risk coefficient is greater than the preset risk threshold, sending the risk coefficient and the text to a terminal corresponding to the customer service group responsible for handling dangerous events, so that the customer service personnel can process the customer service work order. In the embodiment of the present application, after obtaining the risk coefficient, it is compared with the preset risk threshold, and when the risk coefficient is greater than the preset risk threshold, the risk coefficient and the text of the drinking are sent to a terminal corresponding to the customer service group responsible for handling dangerous events, so that the customer service personnel can process the customer service work order in a timely manner to improve the efficiency of processing.

[0010] In combination with the first aspect embodiment, in a possible implementation, the method further includes: obtaining the number of customer service personnel who can handle dangerous events at the current moment; and updating the preset danger threshold according to the number of customer service personnel. In the embodiment of the present application, the preset danger threshold is changed by obtaining the number of customer service personnel who can handle dangerous events at the current moment to coordinate the balance between the customer service personnel responsible for handling dangerous events and the dangerous events to be handled.

[0011] In combination with the first aspect embodiment, in a possible implementation, each vector in the word vector sequence is sequentially input into a pre-trained recurrent neural network model according to the word order in the text for processing to obtain the risk coefficient of the service order, including: each vector in the word vector sequence is sequentially input into a pre-trained recurrent neural network model according to the word order in the text; the recurrent neural network model is used to calculate the similarity between the input word vector sequence and the trained vector parameters, and the risk coefficient of the service order is obtained based on the similarity. In the embodiment of the present application, a recurrent neural network model is used to calculate the similarity between the input word vector sequence and the trained vector parameters, so that the risk coefficient of the service order can be obtained quickly and accurately.

[0012] Combined with the first aspect embodiment, in a possible implementation, each vector in the word vector sequence is sequentially input into a pre-trained recurrent neural network model according to the word order in the text for processing to obtain the risk coefficient of the service order, including: calculating the cosine similarity between the word vector sequence and the word vector corresponding to the preset business keyword; inserting the cosine similarity at the first position of the word vector sequence to obtain an updated word vector sequence; each vector in the updated word vector sequence is sequentially input into a pre-trained recurrent neural network model according to the word order in the text; calculating the similarity between the input word vector sequence and the trained vector parameters through the recurrent neural network model, and obtaining the risk coefficient of the service order according to the similarity. In the embodiment of the present application, the updated word vector sequence is obtained by inserting the cosine similarity between the calculated word vector sequence and the word vector corresponding to the preset business keyword at the first position of the word vector sequence, and then using the recurrent neural network model to calculate the similarity between the input word vector sequence and the trained vector parameters, thereby further improving the accuracy of the predicted risk coefficient of the service order.

[0013] In combination with the first aspect embodiment, in a possible implementation, before obtaining a customer service work order for a service order, the method also includes: obtaining historical customer service work orders for historical service orders within a first preset time period before the service order; performing word segmentation on the text recorded in each of the historical customer service work orders to obtain a word segmentation array; and training an initial vector conversion model using the word segmentation array corresponding to each of the historical customer service work orders to obtain the trained vector conversion model.

[0014] In combination with the first aspect embodiment, in a possible implementation, before obtaining a customer service work order for a service order, the method also includes: obtaining historical customer service work orders for historical service orders within a second preset time period before the service order; performing word segmentation and word vector conversion processing on the text recorded in each of the historical customer service work orders in turn to obtain a word vector sequence corresponding to each of the historical customer service work orders; and using the word vector sequence corresponding to each of the historical customer service work orders to train an initial recurrent neural network model to obtain the trained recurrent neural network model.

[0015] In combination with the first aspect embodiment, in a possible implementation, word segmentation and word vector conversion are performed on the text recorded in each of the historical customer service work orders, including: preprocessing the text recorded in each of the historical customer service work orders, the preprocessing including at least one of the following: deleting duplicate records, deleting customer service language, standardizing punctuation, and deleting redundant information; and word segmentation and word vector conversion are performed on the preprocessed text recorded in each of the historical customer service work orders.

[0016] In the second aspect, an embodiment of the present application also provides a data processing device, including: a first acquisition module, a word segmentation module, a conversion module and a processing module; the first acquisition module is used to obtain a customer service work order for a service order; the word segmentation module is used to segment the text recorded in the customer service work order to obtain a word segmentation array; the conversion module is used to map the word segmentation array into a corresponding word vector sequence using a pre-trained vector conversion model; the processing module is used to input each vector in the word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text for processing to obtain the risk coefficient of the service order.

[0017] In combination with the second aspect embodiment, in a possible implementation, the word segmentation module is used to: preprocess the text recorded in the customer service work order, and the preprocessing includes at least one of the following: deleting duplicate records, deleting customer service words, standardizing punctuation, and deleting redundant information; and segmenting the preprocessed text to obtain a word segmentation array.

[0018] In combination with the second aspect embodiment, in a possible implementation manner, the device also includes: a judgment module and a sending module; the judgment module is used to judge whether the risk factor is greater than a preset risk threshold; the sending module is used to send the risk factor and the text to the terminal corresponding to the customer service group responsible for handling the dangerous incident when the risk factor is greater than the preset risk threshold, so that the customer service personnel can process the customer service work order.

[0019] In combination with the second aspect embodiment, in a possible implementation, the device also includes: a second acquisition module and an update module, the second acquisition module is used to obtain the number of customer service personnel who can handle dangerous events at the current moment; the update module is used to update the preset danger threshold according to the number of customer service personnel.

[0020] In combination with the second aspect embodiment, in a possible implementation, the processing module is used to: input each vector in the word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text; calculate the similarity between the input vector sequence and the trained vector parameters through the recurrent neural network model, and obtain the risk coefficient of the service order based on the similarity.

[0021] In combination with the second aspect embodiment, in a possible implementation, the processing module is also used to: calculate the cosine similarity between the word vector sequence and the word vector corresponding to the preset business keyword; insert the cosine similarity at the first position of the word vector sequence to obtain an updated word vector sequence; input each vector in the updated word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text; calculate the similarity between the input word vector sequence and the trained vector parameters through the recurrent neural network model, and obtain the risk coefficient of the service order based on the similarity.

[0022] In combination with the second aspect embodiment, in a possible implementation, the device also includes: a first training module, the first acquisition module, which is also used to obtain historical customer service work orders of historical service orders within a first preset time period before the service order; the word segmentation module is also used to segment the text recorded in each of the historical customer service work orders to obtain a word segmentation array; the first training module is used to train the initial vector conversion model using the word segmentation array corresponding to each of the historical customer service work orders to obtain the trained vector conversion model.

[0023] In combination with the second aspect embodiment, in a possible implementation, the device further includes: a second training module, the first acquisition module is further used to acquire historical customer service work orders of historical service orders within a second preset time period before the service order; the word segmentation module is further used to perform word segmentation on the text recorded in each of the historical customer service work orders; the conversion module is further used to perform word vector conversion processing on the text recorded in each of the historical customer service work orders after word segmentation using a pre-trained vector conversion model to obtain a word vector sequence corresponding to each of the historical customer service work orders;

[0024] The second training module is used to train the initial recurrent neural network model using the word vector sequence and the corresponding label corresponding to each of the historical customer service work orders to obtain the trained recurrent neural network model.

[0025] In combination with the second aspect embodiment, in a possible implementation, the word segmentation module is also used to: pre-process the text recorded in each of the historical customer service work orders, and the pre-processing includes at least one of the following: deleting duplicate records, deleting customer service language, standardizing punctuation, and deleting redundant information; and performing word segmentation processing on the pre-processed text recorded in each of the historical customer service work orders.

[0026] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are connected; the memory is used to store programs; and the processor is used to call the programs stored in the memory to execute the method provided in the above-mentioned first aspect embodiment and / or in combination with any possible implementation method of the first aspect embodiment.

[0027] In a fourth aspect, an embodiment of the present application further provides a storage medium on which a computer program is stored, and the computer program is executed by a computer to execute the method provided in the above-mentioned first aspect embodiment and / or any possible implementation method in combination with the first aspect embodiment.

[0028] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by implementing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] 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 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 also be obtained based on these drawings without creative work. As shown in the drawings, the above and other purposes, features and advantages of the present application will be clearer. The same reference numerals indicate the same parts in all the drawings. The drawings are not deliberately scaled to the actual size, and the focus is on showing the main purpose of the present application.

[0030] Figure 1 A flow chart of a data processing method provided in an embodiment of the present application is shown.

[0031] Figure 2A schematic diagram of predicting the risk factor of a service order based on a recurrent neural network model provided in an embodiment of the present application is shown.

[0032] Figure 3 A schematic diagram of another method for predicting the risk factor of a service order based on a recurrent neural network model provided in an embodiment of the present application is shown.

[0033] Figure 4 A flow chart of another data processing method provided in an embodiment of the present application is shown.

[0034] Figure 5 A functional module schematic diagram of a data processing device provided in an embodiment of the present application is shown.

[0035] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0036] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0037] It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it is not necessary to further define and explain it in the subsequent drawings. At the same time, in the description of this application, relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not clearly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements limited by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.

[0038] Furthermore, the term "and / or" in this application is merely a term used to describe the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone.

[0039] See also Figure 1 , is a data processing method applied to an electronic device provided in an embodiment of the present application, and will be described below in conjunction with Figure 1 Describe the steps involved.

[0040] Step S101: Obtain a customer service work order for a service order.

[0041] Get the customer service work order for the service order to be processed. The customer service work order can be generated by the customer service staff according to the content record of the user's call, that is, the customer service staff records and saves the events described by the caller to obtain the customer service work order. In addition, the customer service work order can also be obtained based on the content filled in by the user on the client. For example, taking online shopping as an example, the customer service work order can be obtained based on the user's comments on the purchased goods; for another example, taking online taxi-hailing as an example, the customer service work order can be obtained based on the comments of the service order corresponding to the passenger or driver; for another example, taking takeout as an example, the customer service work order can be obtained based on the comments of the person who ordered the takeout.

[0042] Step S102: Segment the text recorded in the customer service ticket to obtain a segmentation array.

[0043] After obtaining the customer service work order to be processed, the text recorded in the customer service work order is segmented based on the word segmentation algorithm or word segmentation tool to obtain a word segmentation array. For example, the text recorded in the customer service work order can be segmented based on word segmentation tools such as jieba, SnowNLP, THULAC, NLPIR, etc. It can also be based on the currently commonly used mainstream word segmentation method (i.e., a word segmentation method based on string matching, a word segmentation method based on understanding, or a word segmentation method based on statistics) to segment the text recorded in the customer service work order. This part of the content is well known to those skilled in the art, and for the sake of brevity of the specification, it will not be repeated here.

[0044] Considering that different users may call in for the same service order, causing different manual customer service staff to record and describe the event more than once, therefore, as another implementation method, the text recorded in the customer service ticket can be segmented by: first preprocessing the text recorded in the customer service ticket, and then segmenting the preprocessed text. Among them, the above-mentioned preprocessing includes at least one of the following: deleting duplicate records, deleting customer service words, standardizing punctuation, and deleting redundant information. In other words, under this implementation method, the text recorded in the customer service ticket is no longer directly segmented, but the preprocessed text is segmented.

[0045] Step S103: Map the word segmentation array into a corresponding word vector sequence using a pre-trained vector conversion model.

[0046] After obtaining the word segmentation array, the pre-trained vector conversion model is used to map the obtained word segmentation array to the corresponding word vector sequence X = (x1, x2, x3, ..., xn), that is, the trained vector conversion model is used to convert the text data into a digital vector that can be recognized by the recurrent neural network model, so as to predict whether the service order needs to be upgraded to a dangerous event through the recurrent neural network model, so as to reduce the time cost of manual customer service, improve judgment efficiency, and reduce the subjectivity of manual judgment. Among them, the word vector sequence X can be 256-dimensional, that is, n is 256.

[0047] The above-mentioned vector conversion model can be a trained word2vec model, Fasttext model or GloVe model. That is, before obtaining the customer service ticket for the service order, a large amount of historical customer service ticket data can be used to train the word2vec model, Fasttext model or GloVe model, in preparation for the subsequent conversion of text into a digital vector that can be recognized by the recurrent neural network model learning model.

[0048] Wherein, when training the above-mentioned vector conversion model, obtain the historical customer service work orders of the historical service orders within the first preset time period before the service order; perform word segmentation on the text recorded in each of the historical customer service work orders to obtain a word segmentation array; use the word segmentation array corresponding to each of the historical customer service work orders to train the initial vector conversion model, and obtain the trained vector conversion model. In addition, considering that different users may come in for the same service order, causing different manual customer service to record and describe the event more than once, therefore, after obtaining the historical customer service work orders of the historical service orders within the first preset time period before the service order, they can be preprocessed, and then the text recorded in each preprocessed historical customer service work order is segmented. Wherein, the preprocessing includes at least one of the following: deleting duplicate records, deleting customer service words, standardizing punctuation, and deleting redundant information. That is to say, when segmenting the text recorded in each historical customer service work order, it can be directly segmented based on the text recorded in each historical customer service work order in sequence, or it can be segmented for the text recorded in each preprocessed historical customer service work order.

[0049] The length of the first preset time period can be determined according to the average daily volume of customer service tickets processed, for example, it can be a time period of 1 month, 2 months, 3 months, etc. If the average daily volume of customer service tickets processed is large, the time period can be relatively short; if the average daily volume of customer service tickets processed is small, the time period should be relatively long to ensure that sufficient training data is obtained.

[0050] Through the above training process, the initial vector conversion model can learn the vectors of each word in the business field involved in the service order. Therefore, when used in step S103, the trained vector conversion model can convert the word array obtained in step S102 into the digital vector (word vector) corresponding to each word.

[0051] Optionally, the obtained digital vectors can be spliced ​​into an ordered word vector sequence according to the word order of the word segmentation in the text, so that the word vectors can be directly processed in the order of the word vector sequence in the subsequent process, such as the process in step S104. Of course, in actual application, the digital vectors of the word segmentation can also be not spliced ​​in order, but when executing step S104, the digital vectors are input into the pre-trained recurrent neural network model one by one according to the word order of the word segmentation in the text.

[0052] Specifically, step S104: input each vector in the word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text for processing, so as to obtain the risk coefficient of the service order.

[0053] After the text data is converted into a word vector sequence, each vector in the word vector sequence is sequentially input into a pre-trained recurrent neural network model for processing according to the word order in the text, and the risk coefficient of the service order can be obtained. That is, the data vectors obtained from the text data are sequentially input into a pre-trained recurrent neural network model for processing according to the chronological order, and the risk coefficient of the service order can be obtained.

[0054] As an implementation method, each vector in the word vector sequence is sequentially input into a pre-trained recurrent neural network model according to the word order in the text for processing, and the process of obtaining the risk coefficient of the service order can be: each vector in the word vector sequence is sequentially input into a pre-trained recurrent neural network model according to the word order in the text; the recurrent neural network model calculates the similarity between the input word vector sequence and the trained vector parameters, and obtains the risk coefficient of the service order based on the similarity. For ease of understanding, you can combine Figure 2 The schematic diagram shown illustrates the process. Figure 2As shown in the figure, each vector in the word vector sequence X is input into the pre-trained recurrent neural network model (RNN) in sequence according to the word order in the text, that is, each vector is input into the RNN in the order of x1, x2, x3...xn. The RNN calculates the similarity between the input word vector sequence X and the trained vector parameters, and outputs the similarity y, which is the risk coefficient of the service order.

[0055] As another implementation, each vector in the word vector sequence is sequentially input into a pre-trained recurrent neural network model according to the word order in the text for processing, and the process of obtaining the risk coefficient of the service order may be: calculating the cosine similarity between the word vector sequence and the word vector corresponding to the preset business keyword; inserting the cosine similarity at the first position of the word vector sequence to obtain an updated word vector sequence; each vector in the updated word vector sequence is sequentially input into a pre-trained recurrent neural network model according to the word order in the text; calculating the similarity between the input word vector sequence and the trained vector parameters through the recurrent neural network model, and obtaining the risk coefficient of the service order based on the similarity. For ease of understanding, it can be combined with Figure 3 The schematic diagram shown illustrates the process. Figure 3 As shown, each vector in the vector sequence X' is input into the pre-trained RNN in sequence according to the word order in the text, that is, each vector is input into the RNN in the order of s1, x1, x2, x3...xn, and the similarity between the input word vector sequence X' and the trained vector parameters is calculated by RNN, and the similarity y is output, which is the risk coefficient of the service order. Among them, s1 is the cosine similarity between the word vector sequence X = (x1, x2, x3,..., xn) and the word vector corresponding to the preset business keyword. That is, after calculating the cosine similarity s1 between the word vector sequence and the word vector corresponding to the preset business keyword, the cosine similarity s1 is inserted at the first position of the word vector sequence X to obtain the updated word vector sequence X'.

[0056] The above-mentioned recurrent neural network model is a type of recurrent neural network that takes sequence data as input, performs recursion in the direction of sequence evolution, and all nodes (recurrent units) are connected in a chain. Specifically, the recurrent neural network that can be used in this embodiment can be, for example, a long short-term memory (LSTM) network, a gated recurrent unit (GRU) network, and a deformation network of these two networks.

[0057] Among them, the preset business keywords mentioned above are high-frequency words that appear in specific application fields, such as "safety", "accident", "sexual harassment", "robbery" and so on in the field of online car-hailing travel. Among them, the corresponding business keywords are different in different application fields. The word vector corresponding to the business keyword can be obtained by converting the preset business keyword into a word vector using a pre-trained vector conversion model, that is, using a pre-trained vector conversion model to map the business keyword to a corresponding word vector.

[0058] Before obtaining the customer service ticket for the service order, the initial recurrent neural network model can be trained using historical customer service ticket data to prepare for the subsequent prediction of the risk factor of the service order.

[0059] Wherein, when training the initial recurrent neural network model, obtain the historical customer service work orders of the historical service orders within the second preset time period before the service order; perform word segmentation and word vector conversion processing on the text recorded in each of the historical customer service work orders in turn, and obtain the word vector sequence corresponding to each of the historical customer service work orders; use the word vector sequence and the corresponding label corresponding to each of the historical customer service work orders to train the initial recurrent neural network model to obtain the trained recurrent neural network model. In addition, considering that different users may come in for the same service order, causing different manual customer service to record and describe the event more than once, therefore, after obtaining the historical customer service work orders of the historical service orders within the second preset time period before the service order, they can be preprocessed, and then the text recorded in each of the preprocessed historical customer service work orders is sequentially processed by word segmentation and word vector conversion. Wherein, the preprocessing includes at least one of the following: deleting duplicate records, deleting customer service words, standardizing punctuation, and deleting redundant information. That is to say, when the text recorded in each historical customer service ticket is processed by word segmentation and word vector conversion, the word segmentation and word vector conversion can be directly performed based on the text recorded in each historical customer service ticket, or the word segmentation and word vector conversion can be performed on the text recorded in each historical customer service ticket after preprocessing. Among them, the label is used to indicate whether the event corresponding to the historical customer service ticket is a dangerous event.

[0060] Among them, when training the recurrent neural network model, the word vector sequences corresponding to multiple historical customer service tickets can be divided into training sets, cross-validation sets and test sets according to a certain ratio (such as 4:2:1), and then the initial recurrent neural network model is trained so that the recurrent neural network can selectively memorize the input content, so that the model can learn the word vectors corresponding to the business keywords for specific application fields (such as online car-hailing travel or food delivery). In other words, the process of training the recurrent neural network model is the process of learning and memorizing high-frequency words that appear in specific application fields. Among them, the cross-validation validation set, as the name suggests, is repeated use of data, the obtained sample data is divided and combined into different training sets and test sets, the training set is used to train the model, and the test set is used to evaluate the quality of the model prediction. On this basis, multiple different training sets and test sets can be obtained. A sample in a training set may become a sample in the test set next time, which is the so-called "crossover".

[0061] The length of the second preset time period can be determined according to the average daily volume of customer service tickets processed, for example, it can be a time period of 1 month, 2 months, 3 months, etc. If the average daily volume of customer service tickets processed is large, then the time period can be relatively short. If the average daily volume of customer service tickets processed is small, then the time period should be relatively long to ensure that sufficient training data is obtained. In addition, as an embodiment, the second preset time period can be smaller than the first preset time period, so that the data required for training the vector conversion model is more than the data required for training the recurrent neural network model, so as to learn enough business vocabulary for this business scenario environment.

[0062] See also Figure 4 , which is another data processing method applied to an electronic device provided in an embodiment of the present application, will be described below in conjunction with Figure 4 Describe the steps involved.

[0063] Step S201: Obtain a customer service work order for a service order.

[0064] This step is the same as the above-mentioned step S101 . For details, please refer to the above-mentioned step S101 .

[0065] Step S202: Segment the text recorded in the customer service ticket to obtain a segmentation array.

[0066] This step is the same as the above-mentioned step S102. For details, please refer to the above-mentioned step S102.

[0067] Step S203: Map the word segmentation array into a corresponding word vector sequence using a pre-trained vector conversion model.

[0068] This step is the same as the above-mentioned step S103 . For details, please refer to the above-mentioned step S103 .

[0069] Step S204: input each vector in the word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text for processing, so as to obtain the risk coefficient of the service order.

[0070] This step is the same as the above-mentioned step S104 . For details, please refer to the above-mentioned step S104 .

[0071] Step S205: Determine whether the risk factor is greater than a preset risk threshold.

[0072] After obtaining the risk coefficient of the service order, determine whether the risk coefficient is greater than the preset risk threshold. When the risk coefficient is greater than the preset risk threshold, execute step S206. When the risk coefficient is less than or equal to the preset risk threshold, no further processing is performed.

[0073] Step S206: Send the risk factor and the text to a terminal corresponding to the customer service group responsible for handling the risk event, so that the customer service personnel can process the customer service work order.

[0074] When the risk factor is greater than the preset risk threshold, it means that the situation is urgent and needs to be handled immediately. Therefore, the risk factor and the corresponding text will be sent to the terminal corresponding to the customer service group responsible for handling dangerous events, so that the customer service personnel can further process the customer service work order.

[0075] Among them, the above-mentioned preset danger threshold is set in advance according to needs. For example, taking the 1-point system as an example, the preset danger threshold can be set to values ​​such as 0.6, 0.65, 0.7, and 0.8 according to actual needs. Considering that the customer service personnel of the customer service group responsible for handling dangerous events sometimes handle dangerous events that are not fixed, sometimes more, and sometimes less. Therefore, as an implementation method, the preset danger threshold can be unfixed. For example, it can be obtained by obtaining the number of customer service personnel who can handle dangerous events at the current moment; and the preset danger threshold is updated according to the number of customer service personnel. That is, it can be set by the customer service personnel of the customer service group responsible for handling dangerous events. That is, when the customer service personnel are relatively sufficient, that is, when there are fewer dangerous events to be handled, the danger threshold can be relatively small. When the customer service personnel are relatively small, that is, when there are more dangerous events to be handled, the danger threshold can be relatively large. For example, the original preset danger threshold is 0.8. If there are a large number of customer service personnel who can handle dangerous incidents at the current moment, the danger threshold can be set to a smaller value, such as updated to 0.7; if there are a small number of customer service personnel who can handle dangerous incidents at the current moment, the danger threshold can be set to a larger value, such as updated to 0.85.

[0076] like Figure 5 As shown, the embodiment of the present application further provides a data processing device 200 , which includes: a first acquisition module 210 , a word segmentation module 220 , a conversion module 230 , and a processing module 240 .

[0077] The first acquisition module 210 is used to acquire a customer service work order for a service order.

[0078] The word segmentation module 220 is used to segment the text recorded in the customer service ticket to obtain a word segmentation array. Optionally, the word segmentation module 220 is used to: pre-process the text recorded in the customer service ticket, wherein the pre-processing includes at least one of the following: deleting duplicate records, deleting customer service words, standardizing punctuation, and deleting redundant information; and segment the pre-processed text to obtain a word segmentation array.

[0079] The conversion module 230 is used to map the word segmentation array into a corresponding word vector sequence using a pre-trained vector conversion model.

[0080] The processing module 240 is used to input each vector in the word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text for processing, so as to obtain the risk coefficient of the service order. Optionally, the processing module 240 is used to: input each vector in the word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text; calculate the similarity between the input vector sequence and the vector parameters obtained by training through the recurrent neural network model, and obtain the risk coefficient of the service order according to the similarity. Optionally, the processing module 240 is used to: calculate the cosine similarity between the word vector sequence and the word vector corresponding to the preset business keyword; insert the cosine similarity at the first position of the word vector sequence to obtain an updated word vector sequence; input each vector in the updated word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text; calculate the similarity between the input word vector sequence and the vector parameters obtained by training through the recurrent neural network model, and obtain the risk coefficient of the service order according to the similarity.

[0081] Optionally, the data processing device 200 further includes: a first training module. In this case, the first acquisition module is also used to acquire historical customer service work orders of historical service orders within a first preset time period before the service order. The word segmentation module is also used to segment the text recorded in each of the historical customer service work orders to obtain a word segmentation array. The first training module is used to train the initial vector conversion model using the word segmentation array corresponding to each of the historical customer service work orders to obtain the trained vector conversion model.

[0082] Optionally, the data processing device 200 also includes: a second training module. At this time, the first acquisition module is also used to obtain historical customer service work orders of historical service orders within a second preset time period before the service order. The word segmentation module is also used to segment the text recorded in each of the historical customer service work orders. Optionally, the word segmentation module is also used to: pre-process the text recorded in each of the historical customer service work orders, and the pre-processing includes at least one of the following: deleting duplicate records, deleting customer service words, standardizing punctuation, and deleting redundant information; performing word segmentation on the text recorded in each of the historical customer service work orders after pre-processing. The conversion module is also used to use a pre-trained vector conversion model to perform word vector conversion processing on the text recorded in each of the historical customer service work orders after word segmentation to obtain a word vector sequence corresponding to each of the historical customer service work orders.

[0083] The second training module is used to train the initial recurrent neural network model using the word vector sequence and the corresponding label corresponding to each of the historical customer service tickets to obtain the trained recurrent neural network model. As an implementation method, the data processing device 200 also includes: a judgment module and a sending module.

[0084] Among them, the judgment module is used to judge whether the risk factor is greater than a preset risk threshold.

[0085] The sending module is used to send the risk factor and the text to the terminal corresponding to the customer service group responsible for handling the dangerous event when the risk factor is greater than the preset risk threshold, so that the customer service personnel can process the customer service work order.

[0086] As an implementation manner, the data processing device 200 further includes: a second acquisition module and an update module.

[0087] The second acquisition module is used to obtain the number of customer service personnel who can handle dangerous events at the current moment;

[0088] An updating module is used to update the preset danger threshold according to the number of customer service personnel.

[0089] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0090] The data processing device 110 provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0091] like Figure 6 As shown, Figure 6 The structure block diagram of an electronic device 100 that can execute the data processing method provided by an embodiment of the present invention is shown. The electronic device 100 includes: at least one transceiver 110, at least one processor 120, at least one memory 130 and at least one communication bus 140. The communication bus 140 is used to realize direct connection and communication between these components. The transceiver 110 is used to receive and send data. The memory 130 can be a high-speed random access memory (Random Access Memory, RAM) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 130 stores computer-readable instructions, such as storing Figure 5 The software function module shown in is the data processing device 200. The data processing device 200 includes at least one software function module that can be stored in the memory 130 in the form of software or firmware or solidified in the operating system (OS) of the electronic device 110. The processor 120 is used to execute the executable module stored in the memory 130, such as the software function module or computer program included in the data processing device 200. For example, the processor 120 is used to obtain a customer service work order for a service order; the processor 120 is also used to segment the text recorded in the customer service work order to obtain a segmentation array; the processor 120 is also used to map the segmentation array to a corresponding word vector sequence using a pre-trained vector conversion model; the processor 120 is also used to input each vector in the word vector sequence into a pre-trained recurrent neural network model in sequence according to the word order in the text for processing to obtain the risk coefficient of the service order.

[0092] Among them, the above-mentioned processor 140 may be an integrated circuit chip with signal processing capabilities. The processor 140 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention can be implemented or executed. A general-purpose processor may be a microprocessor or the processor 140 may also be any conventional processor, etc.

[0093] in, Figure 5 The components and structures of the electronic device 100 shown are merely exemplary and non-limiting. The electronic device 100 may also have other components and structures as required.

[0094] In the embodiment of the present invention, the electronic device 100 may be, but is not limited to, a network server, a database server, a cloud server, etc.

[0095] The present application also provides a non-volatile computer-readable storage medium (hereinafter referred to as storage medium), on which a computer program is stored, and the computer program is executed by a computer when it is run. Figure 1 or Figure 4 The steps of the data processing method described above can be specifically implemented by referring to the method embodiment, which will not be described in detail here.

[0096] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the program code on the storage medium is executed, the data processing method shown in the above embodiment can be executed.

[0097] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0098] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0099] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a laptop, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0100] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method, characterized in that: include: Obtain historical customer service work orders of historical service orders within a second preset time period before the service order, where the length of the second preset time period is determined based on the average daily volume of customer service work orders processed; Perform word segmentation on the text recorded in each of the historical customer service work orders to obtain a word segmentation array corresponding to each of the historical customer service work orders; Using a pre-trained vector conversion model, the word segmentation array corresponding to each of the historical customer service work orders after word segmentation is processed by word vector conversion to obtain a word vector sequence corresponding to each of the historical customer service work orders; Using the word vector sequence and the corresponding label corresponding to each of the historical customer service tickets, the initial recurrent neural network model is trained to obtain a trained recurrent neural network model; Obtain a customer service ticket for the service order; Segment the text recorded in the customer service ticket based on a segmentation algorithm or a segmentation tool to obtain a segmentation array; Mapping the word segmentation array into a corresponding word vector sequence using a pre-trained vector conversion model; Calculate the cosine similarity between the word vector sequence and the word vector corresponding to the preset business keyword; Insert the cosine similarity into the first position of the word vector sequence to obtain an updated word vector sequence; Inputting each vector in the updated word vector sequence into the trained recurrent neural network model in sequence according to the word order in the text; Calculating the similarity between the input word vector sequence and the trained vector parameters through the trained recurrent neural network model, and obtaining the risk coefficient of the service order according to the similarity; Determining whether the risk factor is greater than a preset risk threshold; When the risk factor is greater than the preset risk threshold, the risk factor and the text are sent to a terminal corresponding to a customer service group responsible for handling dangerous events, so that customer service personnel can process the customer service work order.

2. The method according to claim 1, characterized in that The word segmentation algorithm or word segmentation tool is used to segment the text recorded in the customer service ticket to obtain a word segmentation array, including: Preprocessing the text recorded in the customer service ticket, wherein the preprocessing includes at least one of the following: deleting duplicate records, deleting customer service words, standardizing punctuation, and deleting redundant information; The preprocessed text is segmented based on the word segmentation algorithm or the word segmentation tool to obtain a word segmentation array.

3. The method according to claim 1, characterized in that The method further comprises: Get the number of customer service personnel who can handle dangerous events at the current moment; The preset danger threshold is updated according to the number of customer service personnel.

4. The method according to any one of claims 1 to 3, characterized in that Before obtaining a customer service work order for the service order, the method further includes: Obtain historical customer service work orders of historical service orders within a first preset time period before the service order; Segment the text recorded in each of the historical customer service tickets to obtain a segmentation array; The initial vector conversion model is trained using the word segmentation array corresponding to each of the historical customer service work orders to obtain the trained vector conversion model.

5. A data processing device, characterized in that: include: A first acquisition module is used to acquire a customer service work order for a service order and historical customer service work orders of historical service orders within a second preset time period before the service order, wherein the length of the second preset time period is determined based on an average daily volume of customer service work orders processed; A word segmentation module, used to segment the text recorded in the customer service work order based on a word segmentation algorithm or a word segmentation tool to obtain a word segmentation array, and to segment the text recorded in each of the historical customer service work orders to obtain a word segmentation array corresponding to each of the historical customer service work orders; A conversion module, used to map the word segmentation array into a corresponding word vector sequence using a pre-trained vector conversion model, and to perform word vector conversion processing on the word segmentation array corresponding to each of the historical customer service work orders after word segmentation using the pre-trained vector conversion model to obtain a word vector sequence corresponding to each of the historical customer service work orders; The second training module is used to train the initial recurrent neural network model using the word vector sequence and the corresponding label corresponding to each of the historical customer service work orders to obtain a trained recurrent neural network model; A processing module, used to calculate the cosine similarity between the word vector sequence and the word vector corresponding to the preset business keyword; Insert the cosine similarity at the first position of the word vector sequence to obtain an updated word vector sequence; input each vector in the updated word vector sequence into the trained recurrent neural network model in sequence according to the word order in the text; calculate the similarity between the input word vector sequence and the trained vector parameters through the trained recurrent neural network model, and obtain the risk coefficient of the service order according to the similarity; A judgment module, used to judge whether the risk factor is greater than a preset risk threshold; The sending module sends the risk coefficient and the text to a terminal corresponding to a customer service group responsible for handling dangerous events when the risk coefficient is greater than the preset risk threshold, so that the customer service personnel can process the customer service work order.

6. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are connected; The memory is used to store programs; The processor is used to call the program stored in the memory to execute the method according to any one of claims 1 to 4.

7. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, the method according to any one of claims 1 to 4 is executed.