Business work order generation method and system, computer equipment and storage medium
Using deep learning technology to build a multi-level business classification model and automatically generate business work orders, it solves the problems of high maintenance costs and unstable service quality under the traditional manual generation method, and achieves rapid and efficient generation of business work orders and improved accuracy.
Patent Information
- Application Number
- CN202410852707.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-15
AI Technical Summary
The traditional method of manually generating business work orders results in high maintenance costs and uneven customer service quality, and cannot meet the growing business needs.
Deep learning technology is used to build a multi-level business classification model. By vectorizing user appeal text, primary and secondary business categories are identified, and combined with the slot selection model to automatically generate business work orders.
It realizes the rapid generation of business work orders, improves processing accuracy and efficiency, and improves customer service quality and efficiency.
Smart Images

Figure CN118780260A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information technology, and specifically relates to a business work order generation method, system, computer equipment and storage medium. Background Art
[0002] Traditional business work order generation generally requires customer service specialists to record customer personal information and customer demands while answering customer calls. After determining the business type of the customer's demands, they manually select the corresponding work order template and edit its content to form a business work order. With the expansion of enterprise scale and the growth of business, the data of business work order templates has expanded rapidly, up to hundreds, which puts very high demands on the business proficiency of customer service specialists. The customer service industry is an industry with a high turnover cycle of personnel. A large number of new customer service specialists continue to pour in, making it difficult to maintain a mature and reliable customer service team. Frequent training of new employees is required, and the maintenance costs of enterprises remain high, and the quality of customer service varies. Against this background, the traditional manual work order generation method can no longer meet the growing business needs. Enterprises need a more efficient and automated work order generation system to improve service efficiency. Summary of the invention
[0003] Purpose of the invention: In order to solve the problems of high maintenance cost and uneven customer service quality in the traditional manual work order generation method, the present invention proposes a business work order generation method, system, computer equipment and storage medium.
[0004] Technical solution: A method for generating a business work order, comprising the following steps:
[0005] Vectorize the user demand text to obtain the vectorized text;
[0006] A primary business classification model is used to identify the primary business category based on the vectorized text to obtain the major business category to which the user's demand text belongs;
[0007] Based on the business category to which the user demand text belongs obtained by the primary business classification model, a corresponding secondary business classification model is selected, and the secondary business category is identified based on the vectorized text using the secondary business classification model to determine the business subcategory corresponding to the user demand text;
[0008] Based on the business categories and business subcategories, obtain the corresponding business work order template from the database, and extract the slot name from the corresponding business work order template;
[0009] Select the corresponding slot selection model based on the business category, business subcategory and slot name, classify the vectorized text, and obtain one or more slot candidate values;
[0010] The obtained slot candidate value is filled into the obtained business work order template to form the final business work order.
[0011] Furthermore, the first-level business classification model is composed of a single CNN classification model, which takes the vectorized text as input and the number of the business category as output; the number of the first-level classification models is N L1 =1.
[0012] Furthermore, the secondary business classification model is composed of multiple CNN classification models, and each major business category has a separate CNN classification model; each secondary business classification model takes the vectorized text as input and the business subcategory number as output;
[0013] The number of secondary classification models is:
[0014]
[0015] Among them, N L1.i represents the number of business subcategories under the ith business category, and K represents the number of business categories.
[0016] Furthermore, a business ticket template has 0 or more slots, each slot corresponds to a slot selection model; each slot selection model is a single CNN classification model, which takes the vectorized text as input and the slot candidate value as output;
[0017] The number of slot selection models is:
[0018]
[0019] in, Indicates the number of slots for the jth business subcategory under the i-th business category.
[0020] Furthermore, each CNN model consists of a multi-channel convolutional layer, a global maximum pooling layer, and a fully connected layer;
[0021] The multi-channel convolution layer is responsible for extracting features from the vectorized text to form multiple one-dimensional vector features of different sizes;
[0022] The global maximum pooling layer is responsible for converting one-dimensional vector features of different sizes into fixed-length vector features;
[0023] The fully connected layer is responsible for concatenating all fixed-length vector features to form a one-dimensional vector feature, converting the one-dimensional vector feature into a feature vector of dimension c through dense connection, and converting it into a probability distribution through the softmax function, and outputting the classification with the highest probability.
[0024] Furthermore, the multi-channel convolution layer is composed of four convolution kernels with k being 2, 3, 5, and 7 respectively, the convolution kernel size is k×v, the number of feature maps corresponding to each convolution kernel is m, and v is the embedding dimension of each token.
[0025] The present invention discloses a business work order generation system, comprising:
[0026] A vectorization module is used to vectorize the user's request text to obtain the vectorized text;
[0027] A multi-level business classification module is used to obtain, based on the vectorized text, a slot candidate value of a business subclass under a business category to which the vectorized text belongs;
[0028] The business work order generation module is used to fill the obtained slot candidate value into the business work order template to form a final business work order; the business work order template is obtained from the database based on the business category and business subcategory.
[0029] Furthermore, the multi-level service classification module is composed of N L1 One-level classification model, N L2 Two-level classification models and N L3 Slots to select model composition;
[0030] N L1 =1;
[0031]
[0032] Among them, N L1.i represents the number of business subcategories under the ith business category, K represents the number of business categories, Indicates the number of slots for the jth business subcategory under the i-th business category.
[0033] Furthermore, the primary business classification model is composed of a single CNN classification model, which takes vectorized text as input and the number of the major business category as output.
[0034] Furthermore, the secondary business classification model is composed of multiple CNN classification models, and each major business category has a separate CNN classification model; each secondary business classification model takes vectorized text as input and takes the number of the business subcategory as output.
[0035] Furthermore, a business ticket template has 0 or more slots, each slot corresponds to a slot selection model; each slot selection model is a single CNN classification model, which takes the vectorized text as input and outputs the slot candidate value.
[0036] Furthermore, each CNN model consists of a multi-channel convolutional layer, a global maximum pooling layer, and a fully connected layer;
[0037] The multi-channel convolution layer is responsible for extracting features from the vectorized text to form multiple one-dimensional vector features of different sizes;
[0038] The global maximum pooling layer is responsible for converting one-dimensional vector features of different sizes into fixed-length vector features;
[0039] The fully connected layer is responsible for concatenating all fixed-length vector features to form a one-dimensional vector feature, converting the one-dimensional vector feature into a feature vector of dimension c through dense connection, and converting it into a probability distribution through the softmax function, and outputting the classification with the highest probability.
[0040] Furthermore, the multi-channel convolution layer is composed of four convolution kernels with k being 2, 3, 5, and 7 respectively, the convolution kernel size is k×v, the number of feature maps corresponding to each convolution kernel is m, and v is the embedding dimension of each token.
[0041] The present invention discloses a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, steps of a method for generating a business work order are implemented.
[0042] The invention discloses a storage medium, wherein the storage medium stores a business work order generation program, and when the business work order generation program is executed by at least one processor, the steps of a business work order generation method are implemented.
[0043] Beneficial effects: Compared with the existing technology, the method / system of the present invention builds a multi-level business classification model based on deep learning technology, making the generation of business work orders more intelligent, realizing the rapid generation of large quantities of business work orders, and greatly improving the accuracy and efficiency of business work order processing, thereby improving the quality and efficiency of customer service. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a structural diagram of a multi-level business classification model;
[0045] Figure 2 This is a schematic diagram of the structure of a single CNN model;
[0046] Figure 3 The present invention is a flowchart of a method for generating a business work order. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of the present invention clearer, the business work order generation method, system, device and storage medium of the present invention will be further described below in conjunction with the accompanying drawings in the present invention.
[0048] Embodiment 1:
[0049] This embodiment proposes a method for generating a business work order, aiming to realize the rapid generation of a large number of business work orders and improve the quality and efficiency of customer service. This embodiment realizes the automatic and efficient generation of business work orders through a multi-level business classification model, such as Figure 1 As shown, the entire multi-level business classification model is composed of three layers of small models.
[0050] Now combined Figure 1 The three-layer small model is further explained.
[0051] The first layer is a primary classification model, which consists of a single CNN classification model and is mainly used to complete business category recognition. Its input is vectorized text and its output is a business category number, such as 0, 1, 2, 3, etc. The number of primary classification models is N. L1 =1.
[0052] The second layer is the secondary classification model, which is composed of multiple CNN classification models. Each business category has a separate CNN classification model to complete the business subcategory identification. Its input is the vectorized text and the output is the business subcategory number, such as 0, 1, 2, 3... The number of secondary classification models is:
[0053]
[0054] Among them, N L1.i represents the number of business subcategories under the ith business category, and K represents the number of business categories.
[0055] The third layer is the slot selection model, which is essentially still a CNN classification model. Each CNN classification model corresponds to a slot in the business ticket template. A business ticket template has 0 or more slots. Here, it is assumed that all slots in the business ticket template have candidate values. The CNN classification model completes the classification based on the vectorized text, thereby selecting the corresponding slot candidate value. The number of slot selection models is:
[0056]
[0057] in, Indicates the number of slots for the jth business subcategory under the i-th business category.
[0058] Therefore, the entire multi-level business classification model is composed of N CNN models, each of which is independently trained based on the data corresponding to the current category and has different specifications and parameters.
[0059]
[0060] A single CNN model is composed of a general Text CNN, whose structure is as follows Figure 2 As shown in Figure 1, it consists of a multi-channel convolutional layer, a global maximum pooling layer, and a fully connected layer. Assume that the size of the vectorized text is n×v, where n is the number of tokens and v is the embedding dimension of each token.
[0061] The multi-channel convolution layer is responsible for feature extraction of the vectorized text, forming multiple one-dimensional vectors of different sizes. It is composed of four convolution kernels with k being 2, 3, 5, and 7 respectively. The convolution kernel size is k×v, and the number of feature maps corresponding to each convolution kernel is m.
[0062] The global maximum pooling layer is responsible for converting a single feature map into a single feature number representation by selecting the maximum value of the current feature map. Global maximum pooling can convert data of different dimensions into fixed-length vector representations, which is beneficial for further data processing by the fully connected layer.
[0063] The fully connected layer concatenates all features into a one-dimensional vector, and then converts this one-dimensional vector into a feature vector of dimension c through dense connection, and converts it into a probability distribution through the softmax function, and selects the classification with the highest probability as the final classification result. In the following formula, x represents the concatenated feature vector, y represents the final probability distribution, w represents the weight, and b represents the bias value.
[0064] y=softmax(wx+b)
[0065] In order to reduce the impact of imbalanced categories on the final classification effect, this embodiment uses the Focal Loss loss function and introduces a coefficient factor to the standard cross entropy loss to achieve adaptive adjustment of the contribution of samples to the loss according to the prediction accuracy. Here, the value of γ is 2, α t is the weighted loss value of category t, N is the total number of samples, N t is the number of samples of category t.
[0066] FL(p t )=-α t (1-p t ) γ logp t
[0067] w=N / (1+N t )
[0068] α=softmax(w / ∑ t w)
[0069] In the formula, FL(·) represents the Focal Loss function, p trepresents the probability of classification t, w is the weight corresponding to each category, and α represents the standard weight after normalizing w using the softmax function.
[0070] Now combined Figure 3 , the entire process of the business work order generation method proposed in this embodiment is further explained.
[0071] The user chat text is converted into a vector representation of indefinite length by a vectorizer; the specific operations include: this embodiment selects words as basic tokens, and constructs pre-trained word vectors through word2vec, with a dimension of 128. The original corpus comes from Chinese Wikipedia data and user chat text within 6 months. In the classification process, the present invention first converts the user chat text into a vector representation through a pre-trained vector for use by subsequent classification models at all levels.
[0072] The primary business classification model identifies the primary business category based on the vectorized text and obtains the major business categories, such as consultation, fault repair, complaint, suggestion, service application, etc. User input that is not identified is directly discarded and no longer processed.
[0073] Based on the business categories obtained by the primary business classification model, the corresponding secondary business classification model is selected to identify the secondary business categories of the vectorized text to obtain business subcategories, such as consulting inquiries (electricity prices, electronic invoices, SMS services, basic user information, etc.). User input that is not identified is directly discarded and no longer processed.
[0074] And complete the selection of the business work order template;
[0075] Based on the business categories and business subcategories, the business work order template is obtained from the database, and the slot information of the business work order template is extracted, including the number of slots, slot name, slot position, and slot candidate values. For example, [Query method: address / account name / meter number / ...], where "query method" is the slot name, and "address / account name / meter number / ..." is the slot candidate value. This embodiment selects the corresponding slot selection model based on "business category-business subcategory-slot name", classifies the vectorized text, and obtains suitable slot candidate values. In the actual recognition process, the background class BG will be added as a recognition failure state, then the corresponding category for "address / account name / meter number / ..." as the slot candidate value is "address, account name, meter number, BG". For user input that has not been identified (that is, identified as BG), the entire slot name and its candidate value are directly filled in to facilitate manual filling by customer service specialists.
[0076] The obtained multiple slot candidate values are filled into the business work order template, and the final business work order is formed based on the template syntax rules, and the business work order is pushed to the customer service specialist. The content format of a complete business work order is: "[Basic user information query] The customer queries user information through [address / account name / table number / ...], the specific account number is: x. [Notified / Not found]".
[0077] Embodiment 2:
[0078] Based on Example 1, this example proposes a business work order generation system, including:
[0079] A vectorization module is used to vectorize the user's request text to obtain the vectorized text;
[0080] A multi-level business classification module is used to obtain, based on the vectorized text, a slot candidate value of a business subclass under a business category to which the vectorized text belongs;
[0081] The business work order generation module is used to fill the obtained slot candidate value into the business work order template to form a final business work order; the business work order template is obtained from the database based on the business category and business subcategory.
[0082] The multi-level service classification module of this embodiment is composed of N L1 One-level classification model, N L2 Two-level classification models and N L3 Slots to select model composition;
[0083] N L1 =1;
[0084]
[0085]
[0086] Among them, N L1.i represents the number of business subcategories under the ith business category, K represents the number of business categories, Indicates the number of slots for the jth business subcategory under the i-th business category.
[0087] The primary business classification model of this embodiment is composed of a single CNN classification model, which takes the vectorized text as input and the number of the major business category as output.
[0088] The secondary business classification model of this embodiment is composed of multiple CNN classification models, and each major business category has a separate CNN classification model; each secondary business classification model takes the vectorized text as input and the business subcategory number as output.
[0089] A business ticket template has 0 or more slots, each slot corresponds to a slot selection model; each slot selection model is a single CNN classification model, which takes vectorized text as input and outputs slot candidate values.
[0090] Each CNN model consists of a multi-channel convolutional layer, a global maximum pooling layer and a fully connected layer; the multi-channel convolutional layer is responsible for extracting features from the vectorized text to form multiple one-dimensional vector features of different sizes; the global maximum pooling layer is responsible for converting one-dimensional vector features of different sizes into fixed-length vector features; the fully connected layer is responsible for concatenating all fixed-length vector features to form a one-dimensional vector feature, which is converted into a feature vector of dimension c through dense connection, and converted into a probability distribution through the softmax function, and the classification with the highest probability is output.
[0091] Embodiment 3:
[0092] This embodiment discloses a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps disclosed in any of the above embodiments are implemented.
[0093] Embodiment 4:
[0094] This embodiment discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps disclosed in any of the above embodiments are implemented.
[0095] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0096] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0097] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for generating a business work order, characterized in that: The following steps are involved: Vectorize the user demand text to obtain the vectorized text; A primary business classification model is used to identify the primary business category based on the vectorized text to obtain the major business category to which the user's demand text belongs; Based on the business category to which the user demand text belongs obtained by the primary business classification model, a corresponding secondary business classification model is selected, and the secondary business category is identified based on the vectorized text using the secondary business classification model to determine the business subcategory corresponding to the user demand text; Based on the business categories and business subcategories, obtain the corresponding business work order template from the database, and extract the slot name from the corresponding business work order template; Select a corresponding slot selection model based on the business category, business subcategory, and slot name, and use the slot selection model to classify the vectorized text to obtain one or more slot candidate values; The obtained slot candidate value is filled into the obtained business work order template to form the final business work order.
2. A method for generating a business work order according to claim 1, characterized in that: The first-level business classification model is composed of a single CNN classification model, which takes the vectorized text as input and the number of the business category as output; the number of first-level classification models is N L1 =1.
3. A method for generating a business work order according to claim 1, characterized in that: The secondary business classification model is composed of multiple CNN classification models, and each major business category has a separate CNN classification model; each secondary business classification model takes the vectorized text as input and the business subcategory number as output; The number of secondary classification models is: Among them, N L1.i represents the number of business subcategories under the ith business category, and K represents the number of business categories.
4. A method for generating a business work order according to claim 1, characterized in that: A business ticket template has 0 or more slots, each of which corresponds to a slot selection model. Each slot selection model is a single CNN classification model that takes vectorized text as input and outputs slot candidate values. The number of slot selection models is: in, Indicates the number of slots for the jth business subcategory under the i-th business category.
5. A method for generating a business work order according to claim 2, 3 or 4, characterized in that: Each CNN model consists of a multi-channel convolutional layer, a global maximum pooling layer, and a fully connected layer; The multi-channel convolution layer is responsible for extracting features from the vectorized text to form multiple one-dimensional vector features of different sizes; The global maximum pooling layer is responsible for converting one-dimensional vector features of different sizes into fixed-length vector features; The fully connected layer is responsible for concatenating all fixed-length vector features to form a one-dimensional vector feature, converting the one-dimensional vector feature into a feature vector of dimension c through dense connection, and converting it into a probability distribution through the softmax function, and outputting the classification with the highest probability.
6. A method for generating a business work order according to claim 5, characterized in that: The multi-channel convolution layer is composed of four convolution kernels with k being 2, 3, 5, and 7 respectively. The convolution kernel size is k×v, the number of feature maps corresponding to each convolution kernel is m, and v is the embedding dimension of each token.
7. A business work order generation system, characterized by: include: A vectorization module is used to vectorize the user's request text to obtain the vectorized text; A multi-level business classification module is used to obtain, based on the vectorized text, a slot candidate value of a business subclass under a business category to which the vectorized text belongs; The business work order generation module is used to fill the obtained slot candidate value into the business work order template to form a final business work order; the business work order template is obtained from the database based on the business category and business subcategory.
8. A business work order generation system according to claim 7, characterized in that: The multi-level service classification module consists of N L1 One-level classification model, N L2 Two-level classification models and N L3 Each slot selects the model composition; N L1 =1; Among them, N L1.i represents the number of business subcategories under the ith business category, K represents the number of business categories, Indicates the number of slots for the jth business subcategory under the i-th business category.
9. A business work order generation system according to claim 8, characterized in that: The primary business classification model is composed of a single CNN classification model, which takes vectorized text as input and the number of the major business category as output.
10. A business work order generation system according to claim 8, characterized in that: The secondary business classification model is composed of multiple CNN classification models, and each major business category has a separate CNN classification model; each secondary business classification model takes vectorized text as input and takes the number of the business subcategory as output.
11. A business work order generation system according to claim 8, characterized in that: A business ticket template has 0 or more slots, each slot corresponds to a slot selection model; each slot selection model is a single CNN classification model, which takes vectorized text as input and outputs slot candidate values.
12. A business work order generation system according to claim 9, 10 or 11, characterized in that: Each CNN model consists of a multi-channel convolutional layer, a global maximum pooling layer, and a fully connected layer; The multi-channel convolution layer is responsible for extracting features from the vectorized text to form multiple one-dimensional vector features of different sizes; The global maximum pooling layer is responsible for converting one-dimensional vector features of different sizes into fixed-length vector features; The fully connected layer is responsible for concatenating all fixed-length vector features to form a one-dimensional vector feature, converting the one-dimensional vector feature into a feature vector of dimension c through dense connection, and converting it into a probability distribution through the softmax function, and outputting the classification with the highest probability.
13. A business work order generation system according to claim 12, characterized in that: The multi-channel convolution layer is composed of four convolution kernels with k being 2, 3, 5, and 7 respectively. The convolution kernel size is k×v, the number of feature maps corresponding to each convolution kernel is m, and v is the embedding dimension of each token.
14. A computer device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a method for generating a business work order as described in any one of claims 1 to 4 are implemented.
15. A storage medium, characterized in that: The storage medium stores a business work order generation program, and when the business work order generation program is executed by at least one processor, the steps of a business work order generation method described in any one of claims 1 to 4 are implemented.
