Training of business data classification model, business data classification method and device
By constructing and dividing business data sample sets, training and testing classification models, and correcting classification thresholds, the problem that data features in the existing technology are difficult to reflect business data characteristics is solved, and more accurate and efficient business data classification is achieved.
Patent Information
- Application Number
- CN202010575959.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-06-22
AI Technical Summary
In the existing technology, the data features set for manual processing and automated processing are difficult to fully reflect the characteristics of business data, resulting in low accuracy of classification methods.
By constructing a business data sample set, dividing the training sample set and the test sample set, using the training sample set to train the classification model, and correcting the classification threshold based on the results of the test sample set to classify business data more accurately.
It achieves more accurate and efficient business data classification, can truly reflect the relationship between the characteristics of business data and processing categories, and improves the accuracy and efficiency of data processing.
Smart Images

Figure CN113743435B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a training of a business data classification model, and a business data classification method and device. Background Art
[0002] As online services become more and more common, the business data generated by online services, such as business data related to product inquiries, such as data generated by inquiries about product performance, price, and delivery range, and business data related to after-sales services, such as data generated by user complaints and data generated by returned products, are also increasing exponentially. In order to process these business data as quickly as possible, automated processing methods have been introduced for these business data. For example, data generated by inquiries about product performance, price, and delivery range, and data generated by returned products can be processed automatically, while some business data, such as some data generated by user complaints, such as complaints about product quality issues, require manual intervention to resolve. Classifying business data is the basis for determining how to process business data.
[0003] At present, the main method is to set corresponding data features for manual processing and automated processing. When the data features of the data to be processed belong to the data features of manual processing, the data to be processed are manually processed. When the data features of the data to be processed belong to the data features of automated processing, the data to be processed are automatically processed.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] Since it is difficult to fully reflect the characteristics of business data by setting corresponding data features for manual processing and automated processing, the accuracy of existing classification methods is low. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a business data classification model training, business data classification method and device, which can classify business data more accurately, thereby completing business data processing more accurately and efficiently.
[0007] To achieve the above object, according to one aspect of an embodiment of the present invention, a training method for a business data classification model is provided, comprising:
[0008] Constructing a sample set using a plurality of business data samples, wherein a sample in the sample set includes a sample feature of the business data sample and a corresponding processing category;
[0009] Divide the sample set into a training sample set and a test sample set based on the sample set;
[0010] Using the sample features and corresponding processing categories in the training sample set, training the model to obtain a data classification model;
[0011] The data classification model is tested using the sample features and corresponding processing categories in the test sample set, and the classification threshold for the data classification model is corrected based on the test result.
[0012] Preferably, the step of constructing a sample set using a plurality of business data samples includes:
[0013] Based on a preset information dimension, collecting multiple sample features from the business data sample;
[0014] Constructing a sample using a plurality of sample features and processing categories corresponding to the business data sample;
[0015] A sample set is formed using a plurality of the samples.
[0016] Preferably, before the step of constructing a sample by using the multiple sample features and the processing category annotated by the business data sample, the method further comprises:
[0017] Standardizing the sample characteristics;
[0018] The step of constructing a sample using a plurality of sample features and processing categories corresponding to the business data sample comprises:
[0019] The sample is constructed using the various sample features and processing categories after the standardized processing corresponding to the business data sample.
[0020] Preferably, the step of standardizing the sample features comprises:
[0021] For sample features whose feature values are not empty, execute:
[0022] When the sample feature belongs to a continuous class, determining whether the sample feature exceeds a boundary corresponding to the continuous class, and if so, correcting the sample feature;
[0023] When the sample feature belongs to a discrete class, converting the sample feature into a corresponding feature code;
[0024] When the sample feature belongs to the text class, the sample feature is quantified into a corresponding numerical value according to a preset word segmentation value table.
[0025] Preferably, the step of standardizing the sample features comprises:
[0026] For sample features whose feature values are empty, execute:
[0027] According to a preset assignment strategy, the sample features are assigned values.
[0028] Preferably, the training method of the business data classification model further comprises:
[0029] For each of the business data samples, execute:
[0030] Determine whether the classification information included in the business data sample meets the preset sample standard. If yes, execute the step of collecting multiple sample features from the business data sample; otherwise, discard the business data sample.
[0031] Preferably, the training method of the business data classification model further comprises:
[0032] For each discrete class of sample features, execute:
[0033] Determine a plurality of discrete information corresponding to the sample features of the discrete class, and a character assigned to each of the discrete information and a coding position of the character;
[0034] The step of converting the sample features into corresponding feature codes comprises:
[0035] A corresponding feature code is generated for the sample feature using a plurality of discrete information corresponding to the sample feature, characters corresponding to the discrete information, and encoding positions of the characters.
[0036] Preferably,
[0037] The preset information dimensions include: any one or more dimensions of user information dimension, item information dimension, order information dimension and service information dimension.
[0038] Preferably, the training method of the business data classification model further comprises: dividing a verification sample set based on the sample set;
[0039] After obtaining the classification model, the method further includes: modifying the classification model by using the sample features and corresponding processing categories in the verification sample set;
[0040] The step of testing the classification model includes: testing the revised classification model.
[0041] Preferably,
[0042] The test results include: setting a first correlation between a threshold and an accuracy rate;
[0043] Determining a classification threshold for the classification model includes:
[0044] Determine target accuracy;
[0045] According to the first association relationship, a threshold corresponding to the target accuracy is determined as the classification threshold.
[0046] Preferably, the training method of the business data classification model further comprises: setting a recall rate limit range and an accuracy rate limit range;
[0047] The test result further includes: a second correlation relationship between the recall rate and the precision rate;
[0048] The steps to determine the target accuracy include:
[0049] According to the second association relationship, searching for an intersection area between the recall rate limit range and the accuracy rate limit range;
[0050] The minimum accuracy in the intersection area is selected as the target accuracy.
[0051] In a second aspect, an embodiment of the present invention provides a method for classifying business data, which is implemented based on a data classification model trained by any of the above embodiments, and includes:
[0052] When receiving the business data to be processed, obtaining a processing category score according to the business data to be processed and the data classification model;
[0053] The processing category score and the classification threshold are compared, and a processing strategy for the service data to be processed is determined according to the comparison result.
[0054] Preferably, the step of obtaining a processing category score according to the service data to be processed and the classification model comprises:
[0055] Based on a preset information dimension, extracting multiple data features from the business data to be processed;
[0056] Performing standardization on the data features;
[0057] The standardized data features are input into the classification model to obtain the classification score.
[0058] Preferably, the method for classifying business data further comprises:
[0059] For a set amount of business data to be processed, both manual classification and classification by the classification model are performed;
[0060] It is determined whether the matching degree between the result of the manual classification and the result of the classification model classification is lower than a set alarm threshold. If so, a classification error alarm is issued to prompt maintenance personnel to correct the classification model.
[0061] Preferably, the step of determining the processing strategy for the service data to be processed includes:
[0062] When the comparison result indicates that the processing category score is lower than the classification threshold, the business data to be processed is pushed to the business processing personnel to manually process the business data to be processed; otherwise, the business data to be processed is automatically processed.
[0063] In a third aspect, an embodiment of the present invention provides a training device for a business data classification model, comprising: a sample set construction unit, a training unit, and a correction unit, wherein:
[0064] The sample set construction unit is used to construct a sample set using a plurality of business data samples, wherein a sample in the sample set includes a sample feature of the business data sample and a corresponding processing category, and divides the sample set into a training sample set and a test sample set;
[0065] The training unit is used to train a classification model using the sample features and corresponding processing categories in the training sample set divided by the sample set construction unit to obtain a data classification model;
[0066] The correction unit is used to test the data classification model trained by the training unit using the sample features and corresponding processing categories in the test sample set divided by the sample set construction unit, and to correct the classification threshold for the data classification model according to the test result.
[0067] Preferably,
[0068] The sample set construction unit is used to collect multiple sample features from the business data sample based on a preset information dimension; construct a sample using the multiple sample features and corresponding processing categories; and form a sample set using multiple samples.
[0069] In a fourth aspect, an embodiment of the present invention provides a classification device for business data, which is implemented based on a data classification model trained by the training method for the business data classification model provided in any of the above embodiments, and includes: a score confirmation unit and a classification determination unit, wherein:
[0070] The score confirmation unit is used to obtain a processing category score according to the service data to be processed and the data classification model when receiving the service data to be processed;
[0071] The classification determination unit is used to compare the processing category score with the classification threshold, and determine the processing strategy for the service data to be processed according to the comparison result.
[0072] An embodiment of the above invention has the following advantages or beneficial effects: because the classification model is trained using the sample features and corresponding processing categories in the training sample set to obtain a data classification model, compared with the artificially set data features, the data classification model can more realistically reflect the relationship between the various features of the business data and the processing categories. Further, the classification threshold is determined for the data classification model by using the sample features and corresponding processing categories in the test sample set, which is equivalent to further correcting the classification threshold of the classification model based on the test sample set on the basis of the data classification model. Therefore, the data classification model trained by the embodiment of the present invention can more accurately determine the processing category of the business data, thereby completing the business data processing more accurately and efficiently.
[0073] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0075] Figure 1 is a schematic diagram of the main process of the training method of the business data classification model according to an embodiment of the present invention;
[0076] Figure 2 is a schematic diagram of the main process of standardizing sample features according to an embodiment of the present invention;
[0077] Figure 3 is a schematic diagram of the main process of a training method for a business data classification model according to another embodiment of the present invention;
[0078] Figure 4 is a schematic diagram of the relationship between the recall rate and the precision rate according to an embodiment of the present invention;
[0079] Figure 5 is a schematic diagram of the main process of the method for classifying business data according to an embodiment of the present invention;
[0080] Figure 6 is a schematic diagram of main units of a training device for a business data classification model according to an embodiment of the present invention;
[0081] Figure 7 is a schematic diagram of main units of a device for classifying business data according to an embodiment of the present invention;
[0082] Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0083] Fig. 9It is a schematic diagram of the structure of a computer system suitable for implementing a server of an embodiment of the present invention. DETAILED DESCRIPTION
[0084] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0085] Figure 1 is a training method for a business data classification model according to an embodiment of the present invention, such as Figure 1 As shown, the training method of the business data classification model may include the following steps:
[0086] S101: constructing a sample set using multiple business data samples, wherein a sample in the sample set includes a sample feature of a business data sample and a corresponding processing category;
[0087] S102: Divide the sample set into a training sample set and a test sample set based on the sample set;
[0088] S103: using sample features in the training sample set and corresponding processing categories, training a classification model to obtain a data classification model;
[0089] S104: Using the sample features and corresponding processing categories in the test sample set, the data classification model is tested, and according to the test result, the classification threshold for the data classification model is corrected.
[0090] Business data samples refer to business data that has been obtained through other classification methods and has corresponding processing categories such as manual processing, automated processing, etc. Among them, the business data can be the data in the service form, wherein the service form refers to the form generated by the user contacting the customer service to apply for return, exchange, repair, etc. during the user's shopping process, order placement, delivery, transportation, receipt, and use. For example, the data in the service form corresponding to after-sales service, the data in the service form corresponding to pre-sales service, such as questions asked by customers about the product, etc., and the data in the complaint service form generated by the after-sales service system for customer complaints, etc. The business data sample can come from the database.
[0091] The processing categories may include: automated processing and manual processing. The label corresponding to automated processing may be 0, and correspondingly, the label corresponding to manual processing may be 1. Based on this, the classification model may be a model that performs a binary classification task.
[0092] Among them, dividing the training sample set and the test sample set based on the sample set can be that the samples in the sample set are split into two parts according to a set ratio (such as 8:1), wherein the part with more samples is used as the training sample set, and the part with less samples is used as the test sample set. It is worth noting that there may or may not be an intersection between the samples in the training sample set and the samples in the test sample set. In a preferred embodiment, there is no intersection between the samples in the training sample set and the samples in the test sample set.
[0093] Among them, the model can be a binary classification model (such as a lightgbm algorithm model). In the binary classification model, there will be a threshold. The data below the threshold is divided into one processing category, and the data above the threshold is divided into another processing category. If the data classification model is directly used to assign processing categories to the business data to be processed, the classification results may be less accurate. Therefore, the embodiment of the present invention uses the sample features and corresponding processing categories in the test sample set to test the data classification model, and determines the classification threshold for the data classification model based on the test results. That is, the classification threshold is re-determined using the test sample set to ensure that the classification threshold is more objective and true. When the processing category is determined for the business data to be processed later, a score is calculated using the data classification model, and a value of 1 or 0 is assigned to the processing category based on the score and the classification threshold.
[0094] Among them, the specific process of training the classification model:
[0095] The following steps A to E are executed cyclically:
[0096] A: Determine at least one node for the current layer of the decision tree (wherein one node corresponds to a sample feature included in a training sample set that has not been selected);
[0097] B: When the current layer is not the highest layer, determine the corresponding parent node and child node for each node in the current layer (wherein one parent node and one child node correspond to one sample feature respectively);
[0098] C: Determine the probability of processing categories corresponding to different combinations of the occurrence or non-occurrence of each node in the current layer (the presence or absence of the sample features corresponding to the nodes);
[0099] For example, the current layer includes node 1 and node 2, where the current layer includes various combinations: both node 1 and node 2 occur, node 1 occurs and node 2 does not occur, both node 1 and node 2 do not occur, node 1 does not occur and node 2 occurs;
[0100] Among them, the probability of the corresponding processing category occurring in both node 1 and node 2 is: the number of samples corresponding to a processing category in the sample set that have both the sample characteristics corresponding to the node and the sample characteristics corresponding to node 2 divided by the total number of samples corresponding to the processing category, multiplied by the proportion of the processing category in the sample set;
[0101] Among them, the probability of the corresponding processing category when node 1 occurs and node 2 does not occur is: the number of samples corresponding to a processing category in the sample set that have the sample characteristics corresponding to node 1 but do not have the sample characteristics corresponding to node 2 divided by the total number of samples corresponding to the processing category, multiplied by the proportion of the processing category in the sample set;
[0102] Among them, the probability of the corresponding processing category when node 1 does not occur and node 2 occurs is: the number of samples corresponding to a processing category in the sample set that do not have the sample characteristics corresponding to node 1 but have the sample characteristics corresponding to node 2 is divided by the total number of samples corresponding to the processing category, and then multiplied by the proportion of the processing category in the sample set;
[0103] Among them, the probability of the corresponding processing category that node 1 occurs and node 2 does not occur is: the number of samples corresponding to a processing category in the sample set that do not have the sample characteristics corresponding to node 1 and the sample characteristics corresponding to node 2 divided by the total number of samples corresponding to the processing category, and then multiplied by the proportion of the processing category in the sample set;
[0104] For example, the total number of samples in the sample set is 3000, the total number of samples with treatment category a is 1000, and the total number of samples with treatment category b is 2000; among the samples with treatment category a in the sample set, the number of samples that have both the sample features corresponding to node 1 and the sample features corresponding to node 2 is 500, the number of samples that have the sample features corresponding to node 1 but not the sample features corresponding to node 2 is 250, the number of samples that do not have the sample features corresponding to node 1 but have the sample features corresponding to node 2 is 200, and the number of samples that do not have the sample features corresponding to node 1 and the sample features corresponding to node 2 is 50; then the probability of treatment category a corresponding to this combination of node 1 and node 2 occurring simultaneously is The probability of processing category a corresponding to the combination of node 1 occurring and node 2 not occurring is The probability of processing category a corresponding to the combination of node 1 not occurring and node 2 occurring is The probability of processing category a corresponding to the combination of node 1 not occurring and node 2 not occurring is
[0105] D: When the depth of the decision tree reaches the target depth, point the nodes of the current layer to two processing categories, determine the preliminary classification thresholds for the two processing categories, and end the current process;
[0106] The determining of the preliminary classification threshold may specifically be to set a preliminary classification threshold based on the user's own experience.
[0107] The determination of the preliminary classification threshold may specifically be that the classification model directly outputs a classification threshold.
[0108] E: When the depth of the decision tree does not reach the target depth, add a new layer to the decision tree, and use the newly added layer as the current layer to execute A.
[0109] The decision tree obtained through the above training can ultimately divide the business data into one of two processing categories according to the data characteristics of the business data (the data characteristics are the same as the sample characteristics).
[0110] Among them, according to the test results, the classification threshold is corrected for the data classification model. Specifically, when the accuracy indicated by the test results is not higher than the accuracy threshold, the classification threshold is adjusted according to the preset adjustment parameters. Among them, accuracy: the probability that the classification result is consistent with the original processing category of the test sample after the data classification model classifies the test sample in the test sample set. For example, the test sample set includes 1000 samples, of which 300 samples have the same processing category obtained by the data classification model as their corresponding processing category, then the accuracy is 300 divided by 1000, that is, 0.3. The accuracy threshold is set by the user. Preset adjustment parameter: an integer multiple of a fixed value is added or subtracted for the classification threshold. When the test result indicates that the accuracy is not higher than the accuracy threshold, the classification threshold can be reduced by a fixed value first, and then the test set can be continued to be used for testing. If the accuracy decreases, the classification threshold can be increased by a fixed value. If the accuracy increases, the classification threshold can be increased by two fixed values. If the accuracy continues to increase, the classification threshold can be increased by three fixed values. After adding three fixed values to the classification threshold, the accuracy decreases, then the revised classification threshold is determined to be the classification threshold plus two fixed values.
[0111] exist Figure 1In the embodiment shown, because the classification model is trained by using the sample features and corresponding processing categories in the training sample set to obtain the data classification model, compared with the artificially set data features, the data classification model can more realistically reflect the relationship between the various features of the business data and the processing categories. Further, the classification threshold is determined for the data classification model by using the sample features and corresponding processing categories in the test sample set, which is equivalent to further correcting the classification threshold of the classification model based on the test sample set on the basis of the data classification model. Therefore, the data classification model trained by the embodiment of the present invention can more accurately determine the processing category of the business data, thereby completing the business data processing more accurately and efficiently.
[0112] Generally speaking, business data samples do not have directly available label data corresponding to the processing category (the label corresponding to automated processing is 1, and the label corresponding to manual processing is 0). It is necessary to simulate the label based on the known business information corresponding to the business data samples. Among them, business data samples that include any of the following manual processing information or features are manual processing categories. In addition to business data samples in the manual processing category, other business data samples (that is, business data samples that do not include any of the following manual processing information or features) are automated processing categories.
[0113] Information or characteristics of the manual processing category:
[0114] The call record between the customer service staff and the user; the customer service staff modified a user's application, such as the pickup method, processing method, etc.;
[0115] Business data processing failed, etc.
[0116] The user's comments contain words that express dissatisfaction.
[0117] Set the label corresponding to the manual processing category of the sample according to the above rules.
[0118] In one embodiment of the present invention, the step of constructing a sample set using multiple business data samples may include: collecting multiple sample features from the business data samples based on a preset information dimension; constructing samples using multiple sample features and corresponding processing categories; and forming a sample set using multiple samples.
[0119] The preset information dimensions include any one or more of the following dimensions: user information dimension, item information dimension, order information dimension, and service information dimension. In a preferred embodiment, the preset information dimensions include user information dimension, item information dimension, order information dimension, and service information dimension. The above-mentioned information dimensions collect sample features through multiple information dimensions, which can ensure that the collected sample features more realistically reflect the business data samples, thereby effectively improving the accuracy of the trained data classification model.
[0120] For example, for a service order, the sample features corresponding to the user information dimension may include: user level, user privileges, user shopping information, etc.
[0121] Sample features corresponding to the item information dimension may include: item type, item price, item service features such as 7-day unconditional return and exchange, etc.
[0122] Sample features corresponding to the order information dimension may include: delivery address, delivery time, delivery fee, order service, etc.;
[0123] The sample features corresponding to the service information dimension may include: user message information, user evaluation information, results of processing user message information, user satisfaction, etc.
[0124] In one embodiment of the present invention, before the step of constructing a sample using multiple sample features and corresponding processing categories corresponding to the business data sample, the step may further include: standardizing the sample features; accordingly, the step of constructing a sample using multiple sample features and processing categories corresponding to the business data sample may include: constructing a sample using the multiple sample features and processing categories corresponding to the business data sample after standardized processing.
[0125] Among them, standardization processing refers to unifying the format and expression of sample characteristics, and correcting or changing sample characteristics that exceed the limit.
[0126] In one embodiment of the present invention, Figure 2 As shown, the step of standardizing the sample features may include the following steps:
[0127] S200: For a sample feature whose feature value is not empty, when the sample feature belongs to the continuous class, execute step S201; when the sample feature belongs to the discrete class, execute step 204; when the sample feature belongs to the text class, execute step S205;
[0128] S201: Determine whether the sample feature exceeds the boundary corresponding to the continuous class. If yes, execute step S202;
[0129] S202: Correct the sample characteristics, and use the corrected sample characteristics as the sample characteristics of the business data sample, and end the current process;
[0130] S203: The sample feature is used as the sample feature of the business data sample, and the current process ends;
[0131] S204: converting the sample features into corresponding feature codes and ending the current process;
[0132] S205: quantizing the sample features into corresponding numerical values according to a preset word segmentation value table.
[0133] The continuous class means that the feature value is a numerical type, and the continuous feature value is any value within a range of values, such as the price feature corresponding to the item information dimension, the user level feature corresponding to the user information dimension, etc. Generally speaking, the sample features of the continuous class have a certain range of values. For example, the price of an item is generally within a range. Once it exceeds the range, the price of the item is corrected. For example, when the price of an item is higher than the maximum value corresponding to the range, the price of the item is modified to the maximum value corresponding to the range or the price of the item is modified to the mode corresponding to the price of similar items or the mean value corresponding to the price of similar items (the mode corresponding to the price of similar items refers to the price corresponding to most of the historical data orders of the same type or the same kind of items included in the database; the mean value corresponding to the price of similar items refers to the mean value of the price corresponding to most of the historical data orders of the same type or the same kind of items included in the database). When the price of an item is lower than the maximum value corresponding to the range, the price of the item is modified to the minimum value corresponding to the range or the price of the item is modified to the mode corresponding to the price of similar items or the mean value corresponding to the price of similar items.
[0134] Discrete class means that the feature value corresponding to the sample feature is any one of several set feature values, which can be numerical or textual. For example, the feature value corresponding to user privileges is a discrete class. Among them, converting sample features into corresponding feature codes can be achieved by one-hot encoding.
[0135] Text sample features generally refer to text information from user messages, etc.
[0136] The word segmentation assignment table lists the corresponding scores of various commonly used modal particles and other words. For example, if the sample feature of the text class is user message information, the user message information can be segmented, and the corresponding scores are assigned to each word obtained after segmentation through the word segmentation assignment table (when a word is not included in the word segmentation assignment table, the word is assigned 0), and the sample feature is quantified into a corresponding value by accumulating each score.
[0137] Through the above process, the sample features are standardized and the training model is normalized to further improve the accuracy of the data classification model.
[0138] In one embodiment of the present invention, the training method of the business data classification model may further include: for each discrete class sample feature, executing: determining multiple discrete information corresponding to the discrete class sample feature, and the character and the encoding position of the character assigned to each discrete information; accordingly, the step of converting the sample feature into the corresponding feature code may include: using the multiple discrete information corresponding to the sample feature, the characters corresponding to the discrete information and the encoding position of the characters, to generate the corresponding feature code for the sample feature. For example, for the sample feature of user privilege, its corresponding feature values are privilege 1, privilege 2 and privilege 3, the corresponding character of privilege 1 is 1, and the corresponding character of privilege 1 is 0; the corresponding character of privilege 2 is 1, and the corresponding character of privilege 2 is 0; the corresponding character of privilege 3 is 1, and the corresponding character of privilege 3 is 0; the encoding position of privilege 1 is the first bit of the feature code, the encoding position of privilege 2 is the second bit of the feature code, and the encoding position of privilege 3 is the third bit of the feature code. Then, for user 1, he has privilege 2 and privilege 3, but does not have privilege 1, and the feature code corresponding to the sample feature-user privilege is 011. Therefore, some sample features corresponding to user privileges can be shown in Table 1 below.
[0139] Table 1
[0140] User Privileges Feature Encoding User 1 Privilege 2 and Privilege 3 011 User 2 Privilege 1 and Privilege 2 110 User 3 Privilege 1 and Privilege 3 101 User 4 Privilege 1, Privilege 2, and Privilege 3 111
[0141] In one embodiment of the present invention, the step of performing standardization processing on sample features may include: for sample features whose feature values are empty, executing: assigning values to the sample features according to a preset assignment strategy.
[0142] A feature value being empty means that after the sample features are collected, the feature value corresponding to a certain sample feature is not collected, and the feature value that is not collected is the empty feature value.
[0143] The preset assignment strategy means that a corresponding set feature value is set for each sample feature. When it is determined that the feature value corresponding to a sample feature is empty, the feature value corresponding to the sample feature is assigned the set feature value. For example, a corresponding set feature value of 0 is set for the user-level sample feature. When the feature value corresponding to the user level in a business data sample is empty, the feature value corresponding to the user level is assigned 0. The integrity of the sample features is guaranteed through the above process to ensure the accuracy of the data classification model and classification threshold.
[0144] In one embodiment of the present invention, Figure 3 As shown, the training method of the business data classification model may further include the following steps: for each business data sample, execute:
[0145] S301: Determine whether the classification information included in the business data sample meets the preset sample standard. If yes, execute step S302; otherwise, execute step S303;
[0146] S302: Execute the step of collecting multiple sample features from the business data sample and end the current process;
[0147] S303: discard the business data sample.
[0148] Among them, the sample standard means that the length of time the customer service personnel of the business data sample have been on the job is not less than a preset length of time threshold, and / or, the application reason corresponding to the problem description in the business data sample is consistent with the majority of application reasons corresponding to the same problem description.
[0149] When analyzing the business data samples, it was found that the classification accuracy of customer service personnel with a short employment time was lower than that of customer service personnel with a long employment time. Therefore, when selecting business data samples with higher classification quality as samples, the employment time of the customer service personnel can be used as the classification standard; for example, if the employment time of the customer service personnel in the business data sample is less than the preset employment time threshold, the business data sample is determined to be dirty data and discarded.
[0150] In addition, since some customers do not have a good understanding of the issues on the service order and the corresponding reasons for their applications, the reasons for their applications do not match the description of the problem. For example, some customers will subjectively choose an inconsistent option due to freight issues. Therefore, when the problem descriptions are consistent, a vote is conducted on the inconsistent reasons for application. It is believed that the business data samples with less distributed application reasons are dirty data, and the business data samples with more distributed application reasons are normal business data samples.
[0151] Through the above process, business data samples that are dirty data (business data samples that provide erroneous information) are removed to ensure the accuracy of samples in the training sample set and the test sample set used to train the classification model, so as to further ensure the accuracy of the data classification model and the classification threshold.
[0152] In one embodiment of the present invention, the training method of the business data classification model may further include: dividing a verification sample set based on a sample set; after obtaining the data classification model, it may further include: using sample features in the verification sample set and corresponding processing categories to correct the data classification model; accordingly, the step of testing the data classification model includes: testing the corrected data classification model.
[0153] The ratio of the verification sample set: the test sample set: the training sample set can be 1:1:8, and the samples in the verification sample set may partially overlap with the samples in the test sample set and the training sample set, or may not overlap at all.
[0154] By correcting the data classification model through the above-mentioned verification sample set, the parameters of the data classification model can be further corrected to avoid the occurrence of parameter overfitting, so as to further enhance the accuracy of the data classification model.
[0155] In one embodiment of the present invention, the test result includes: setting a first association relationship between the threshold and the accuracy rate; accordingly, determining the classification threshold for the data classification model may include: determining the target accuracy rate; and according to the first association relationship, determining the threshold corresponding to the target accuracy rate as the classification threshold.
[0156] The accuracy rate refers to the probability that the sample features and the corresponding processing categories of the samples in the test sample set are input into the data classification model, and the processing category obtained is consistent with the actual processing category of the sample (the actual processing category of the sample is the processing category label of the sample). For example, there are 1,000 samples in the test sample set, of which 500 samples have corresponding sample features and the corresponding processing categories input into the data classification model, and the processing category obtained is consistent with the actual processing category of the sample, then the accuracy rate is 50%.
[0157] Generally speaking, when different thresholds are set, the accuracy is different. The first correlation relationship between the threshold and the accuracy means that when multiple thresholds are set, the accuracy corresponding to each threshold is determined, and based on the multiple thresholds and the corresponding accuracy, a relationship formula or relationship diagram between the threshold and the accuracy is fitted. The relationship formula or relationship diagram between the threshold and the accuracy is the first correlation relationship. Determining the classification threshold by the target accuracy can guarantee the accuracy of the classification result to a certain extent. In an embodiment of the present invention, the threshold corresponding to an accuracy rate of 90% is determined as the classification threshold.
[0158] In one embodiment of the present invention, the training method of the business data classification model further includes: setting a recall rate limit range and an accuracy rate limit range; the test result further includes: a second correlation relationship between the recall rate and the accuracy rate; accordingly, the step of determining the target accuracy rate may include: according to the second correlation relationship, finding the intersection area between the recall rate limit range and the accuracy rate limit range; and selecting the minimum accuracy rate in the intersection area as the target accuracy rate.
[0159] The second correlation between the recall rate and the accuracy rate means that after setting multiple thresholds, the accuracy rate and the recall rate corresponding to each threshold are determined, and based on the multiple accuracy rates and recall rates, a relationship formula or relationship diagram between the recall rate and the accuracy rate is fitted, and the relationship formula or relationship diagram between the recall rate and the accuracy rate is the second correlation relationship. Figure 4As shown in FIG, a graph showing the relationship between recall rate and precision rate is shown. For example, given a recall rate limit range of not less than 25%, a given precision rate limit range of not less than 90%, according to Figure 4 It can be concluded that the intersection area between the two is the curve area corresponding to the recall rate of 25% to 38% or the accuracy rate of 90% to 95% (wherein the recall rate of 25% corresponds to the accuracy rate of 95%, and the recall rate of 38% corresponds to the accuracy rate of 90%).
[0160] For another example, the given recall rate limit range is not less than 38%, the given accuracy rate limit range is not less than 90%, the intersection area between the two is an intersection point, the coordinates of the intersection point are (38%, 90%), and the target accuracy rate is 90%.
[0161] Among them, the training methods of the business data classification models given in the above embodiments can be completed by offline training.
[0162] like Figure 5 As shown, an embodiment of the present invention provides a method for classifying business data. The method for classifying business data is implemented based on a data classification model constructed by a training method for a business data classification model provided in any of the above embodiments. The method for classifying business data may include the following steps:
[0163] S501: when receiving the business data to be processed, obtaining a processing category score according to the business data to be processed and a data classification model;
[0164] S502: Compare the processing category score and the classification threshold, and determine a processing strategy for the business data to be processed based on the comparison result.
[0165] The business data to be processed may be data in a service order to be processed, and accordingly, the processing strategy may be a manual processing (manual review) of the service order or an automated processing (automatic review) of the service order.
[0166] Among them, obtaining the processing category score according to the business data to be processed and the data classification model means that the business data to be processed is input into the data classification model, and the data classification model outputs the processing category score corresponding to the automated processing, or the data classification model outputs the processing category score corresponding to the manual processing. The specific processing category score can be set according to user needs.
[0167] The above process realizes the automated processing of business data such as service order processing categories, greatly reducing the pressure of manual classification and the cost of manual classification. That is, while improving classification efficiency, it can effectively reduce classification costs.
[0168] In one embodiment of the present invention, the step of obtaining a processing category score based on the business data to be processed and the data classification model may include: extracting multiple data features from the business data to be processed based on preset information dimensions; standardizing the data features; and inputting the standardized data features into the data classification model to obtain a classification score.
[0169] The specific process of deriving the classification score is as follows:
[0170] The classification score is calculated according to the following calculation formula (1).
[0171]
[0172] Among them, F y Represents the classification score corresponding to the classification category y; k i Represented as the preset weight value of the i-th layer in the data classification model (decision tree); f iij The probability of the classification category y corresponding to the combination of the occurrence or non-occurrence of each node in the i-th layer in the data classification model (decision tree) determined after the training of the business data classification model is completed (the combination is determined by the data features included in the business data to be processed). For example, a layer includes nodes 1, 2, and 3, and the data features extracted from the business data to be processed include the sample features corresponding to node 1 and the sample features corresponding to node 2. Then the combination is the combination corresponding to the occurrence of node 1, the occurrence of node 2, and the non-occurrence of node 3.
[0173] Among them, the data characteristics are consistent with the sample characteristics of the previous embodiment.
[0174] The information dimension and the extraction of multiple sample features to be classified from the business data to be processed are consistent with the sample features included in the training sample set, test sample set, etc. used in the training model of the aforementioned embodiment to ensure the accuracy of the classification score.
[0175] In one embodiment of the present invention, the method for classifying business data may further include: for a set number of pending business data, performing manual classification and data classification model classification at the same time; judging whether the matching degree between the result of manual classification and the result of data classification model classification is lower than the set alarm threshold, if so, a classification error alarm is issued to prompt the maintenance personnel to correct the data classification model. Through the above process, the accuracy of the classification results can be guaranteed. Once there is a problem with the accuracy of the classification results, an error alarm is issued to correct the data classification model in time. For example, for a period of pending business data, 10% of the pending business data is classified by manual classification and data classification model at the same time, and the consistency ratio of the two is compared. Once it is lower than the set alarm threshold, an alarm is triggered immediately, the switch of the data classification model is turned off, and the data classification model maintenance personnel are contacted to verify the specific situation to avoid adverse effects.
[0176] Among them, the above-mentioned business data classification method can be implemented online.
[0177] In one embodiment, in the training method of the business data classification model or the business data classification method, the business data is data in the service order. Accordingly, the classification category or processing strategy may include: manual review of the service order, and automated review of the service order.
[0178] In addition, a corresponding response plan can be configured for each type of automated processing. After the business data for automated processing (such as the data in the service order) is determined, a corresponding response plan can be matched for the automated service order based on the corresponding features of the data in the service order determined for automated processing, so as to reply the response plan to the user.
[0179] In addition, when the business data is data in a service order, the service order classified as automatically processed may be sent to the after-sales automatic service system so that the after-sales automatic service system replies to the automatically processed service order.
[0180] In addition, the solution provided by the embodiment of the present invention realizes intelligent classification, that is, through machine learning of a large number of business data samples, a data classification model can be obtained, and the data classification model is stable and efficient. In this way, manual work can be freed from a large amount of repetitive work content, and the long-tail parts that the machine has not learned can be concentratedly solved. When the unlearned parts accumulate to a certain extent, the model is iterated, thereby continuously improving the coverage rate of intelligent classification. At the same time, by real-time monitoring of the classification results, the stability of the operation of the data classification model is guaranteed, and the probability of major problems in the classification process is reduced.
[0181] It is worth noting that the training method of the business data classification model and the classification method of business data given in the above-mentioned embodiments can exist as a part of the after-sales service system.
[0182] like Figure 6 As shown, an embodiment of the present invention provides a training device 600 for a business data classification model, and the training device 600 for a business data classification model includes: a sample set construction unit 601, a training unit 602 and a correction unit 603, wherein:
[0183] A sample set construction unit 601 is used to construct a sample set using multiple business data samples, wherein a sample in the sample set includes a sample feature of a business data sample and a corresponding processing category, and divides the sample set into a training sample set and a test sample set;
[0184] The training unit 602 is used to train the classification model by using the sample features and corresponding processing categories in the training sample set divided by the sample set construction unit 601 to obtain a data classification model;
[0185] The correction unit 603 is used to use the sample features and corresponding processing categories in the test sample set divided by the sample set construction unit 601 to test the data classification model trained by the training unit 602, and to correct the classification threshold for the data classification model according to the test results.
[0186] In one embodiment of the present invention, the sample set construction unit 601 is used to collect multiple sample features from the business data sample based on a preset information dimension; construct a sample using the multiple sample features corresponding to the business data sample and the corresponding processing category; and use multiple of the samples to form a sample set.
[0187] In one embodiment of the present invention, the sample set construction unit 601 is used to perform standardization processing on the sample features; and construct samples using a plurality of sample features and processing categories after standardization processing corresponding to the business data samples.
[0188] In one embodiment of the present invention, the sample set construction unit 601 is used to execute, for sample features whose feature values are non-empty: when the sample features belong to a continuous class, determine whether the sample features exceed the boundary corresponding to the continuous class, and if so, correct the sample features; when the sample features belong to a discrete class, convert the sample features into corresponding feature codes; when the sample features belong to a text class, quantize the sample features into corresponding values according to a preset word segmentation assignment table.
[0189] In one embodiment of the present invention, the sample set construction unit 601 is used to execute, for sample features whose feature values are empty, assigning values to the sample features according to a preset assignment strategy.
[0190] In one embodiment of the present invention, the sample set construction unit 601 is used to execute, for each of the business data samples, the following steps: determining whether the classification information included in the business data sample meets a preset sample standard; if so, executing the step of collecting multiple sample features from the business data sample; otherwise, discarding the business data sample.
[0191] In one embodiment of the present invention, the sample set construction unit 601 is further used to perform, for each discrete class of sample features: determining multiple discrete information corresponding to the discrete class sample features, and characters and character encoding positions assigned to each discrete information; and generating corresponding feature codes for the sample features using the multiple discrete information corresponding to the sample features, the characters corresponding to the discrete information, and the character encoding positions.
[0192] In one embodiment of the present invention, the preset information dimensions include: any one or more dimensions of user information dimension, item information dimension, order information dimension and service information dimension.
[0193] In one embodiment of the present invention, the training unit 602 is further used to divide the sample set into a verification sample set based on the sample set, and modify the data classification model using the sample features and corresponding processing categories in the verification sample set;
[0194] The correction unit 603 is further used to test the corrected data classification model.
[0195] In one embodiment of the present invention, the test result includes: setting a first correlation relationship between a threshold and an accuracy rate; accordingly,
[0196] The correction unit 603 is further used to determine the target accuracy rate; according to the first association relationship, determine that the threshold corresponding to the target accuracy rate is the classification threshold.
[0197] In one embodiment of the present invention, the test result further includes: a second correlation between the recall rate and the precision rate;
[0198] The correction unit 603 is further used to set a recall rate limit range and an accuracy rate limit range; according to the second association relationship, find the intersection area between the recall rate limit range and the accuracy rate limit range; select the accuracy rate corresponding to the maximum recall rate in the intersection area as the target accuracy rate.
[0199] like Figure 7 As shown, an embodiment of the present invention provides a business data classification device 700, which is implemented based on a data classification model constructed by a training method for a business data classification model provided in any of the above embodiments. The business data classification device 700 may include: a score confirmation unit 701 and a classification determination unit 702, wherein:
[0200] The score confirmation unit 701 is used to obtain a processing category score according to the service data to be processed and the data classification model when receiving the service data to be processed;
[0201] The classification determination unit 702 is used to compare the processing category score determined by the judgment score confirmation unit 701 with the classification threshold of the data classification model, and determine the processing strategy for the business data to be processed according to the comparison result.
[0202] In one embodiment of the present invention, the score confirmation unit 701 is further used to extract multiple data features from the business data to be processed based on a preset information dimension; standardize the data features; input the standardized data features into a data classification model to obtain a classification score.
[0203] In one embodiment of the present invention, the classification determination unit 702 is further used to perform manual classification and classification model classification for a set number of business data to be processed; determine whether the matching degree between the result of manual classification and the result of classification model classification is lower than the set alarm threshold, and if so, issue a classification error alarm to prompt maintenance personnel to correct the classification model.
[0204] In one embodiment of the present invention, the classification determination unit 702 is further used to push the business data to be processed to the business processing personnel for manual processing of the business data to be processed when the comparison result indicates that the processing category score is lower than the classification threshold; otherwise, the business data to be processed is automatically processed.
[0205] It is worth noting that the training device for the business data classification model and the business data classification device provided in the above-mentioned embodiments can exist as a part of the after-sales service system.
[0206] Figure 8 An exemplary system architecture 800 is shown to which the method for training a business data classification model or the method for classifying business data or the device for training a business data classification model or the device for classifying business data according to the embodiments of the present invention may be applied.
[0207] like Figure 8 As shown, the system architecture 800 may include terminal devices 801, 802, 803, a network 804, a server 805, and a database 806. The network 804 is used to provide a medium for communication links between the terminal devices 801, 802, 803 and the server 805, and between the server 805 and the database 806. The network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0208] Users can use terminal devices 801, 802, and 803 to interact with server 805 through network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0209] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0210] The server 805 may be a server that provides various services, such as a background management server that provides support for the service orders sent by the user using the terminal devices 801, 802, and 803 (only as an example). The background management server may analyze and process the received service orders and other data, and feed back the processing results (such as the classification results of the service orders or the response plans of the service orders - only as an example) to the terminal device. The database 806 may store business data samples. The server 805 may also construct a data classification model based on the business data samples provided by the database 806.
[0211] It should be noted that the training method of the business data classification model or the service order classification method provided in the embodiment of the present invention is generally executed by the server 805. Accordingly, the training device of the business data classification model or the classification device of the business data is generally arranged in the server 805.
[0212] It should be understood that Figure 8 The number of terminal devices, networks, servers and databases in the embodiment is only for illustration. Any number of terminal devices, networks, servers and databases may be provided as required.
[0213] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 suitable for implementing a server of an embodiment of the present invention. Fig. 9 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0214] like Fig. 9As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0215] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.
[0216] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present invention are executed.
[0217] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0218] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing 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 boxes represented in succession 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 or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0219] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a sample set construction unit, a training unit, and a correction unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the sample set construction unit may also be described as a "unit for constructing a sample set using multiple business data samples".
[0220] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: constructing a sample set using multiple business data samples, wherein a sample in the sample set includes a sample feature of a business data sample and a corresponding processing category; dividing a training sample set and a test sample set based on the sample set; training a classification model using the sample features and corresponding processing categories in the training sample set to obtain a data classification model; testing the data classification model using the sample features and corresponding processing categories in the test sample set, and correcting the classification threshold for the data classification model based on the test results.
[0221] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: when receiving the business data to be processed, obtaining a processing category score according to the business data to be processed and the data classification model; comparing the processing category score with the classification threshold of the data classification model, and determining the processing strategy of the business data to be processed according to the comparison result.
[0222] According to the technical solution of the embodiment of the present invention, because the classification model is trained by using the sample features and the corresponding processing categories in the training sample set to obtain the data classification model, compared with the artificially set data features, the data classification model can more realistically reflect the relationship between the various features of the business data and the processing categories. Further, the classification threshold is determined for the data classification model by using the sample features and the corresponding processing categories in the test sample set, which is equivalent to further correcting the classification threshold of the classification model based on the test sample set on the basis of the data classification model. Therefore, the data classification model trained by the embodiment of the present invention can more accurately determine the processing category of the business data, thereby completing the business data processing more accurately and efficiently.
[0223] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A training method for a business data classification model, It is characterized in that Servers used in after-sales service systems include: Constructing a sample set using multiple business data samples, wherein one sample in the sample set includes a sample feature of the business data sample and a corresponding processing category, and the business data is data in the service order; Divide the sample set into a training sample set and a test sample set based on the sample set; Using the sample features and corresponding processing categories in the training sample set, training a classification model to obtain a data classification model; Using the sample features and corresponding processing categories in the test sample set, testing the data classification model, and modifying the classification threshold for the data classification model according to the test result; The method further includes: performing standardization processing on sample features of the plurality of business data samples, the step including: for sample features whose feature values are non-empty, executing: when the sample features belong to a text class, quantizing the sample features into corresponding values according to a preset word segmentation assignment table; The step of constructing a sample using a plurality of sample characteristics and processing categories corresponding to the business data sample comprises: constructing a sample using a plurality of sample characteristics and processing categories corresponding to the business data sample after standardization processing.
2. The training method of the business data classification model according to claim 1, It is characterized in that The steps of constructing a sample set using multiple business data samples include: Based on a preset information dimension, collecting multiple sample features from the business data sample; Constructing a sample using a plurality of sample features corresponding to the business data sample and a corresponding processing category; A sample set is formed using a plurality of the samples.
3. The training method of the business data classification model according to claim 1, It is characterized in that The step of standardizing the sample features of the plurality of business data samples further comprises: For sample features whose feature values are not empty, execute: When the sample feature belongs to a continuous class, determining whether the sample feature exceeds a boundary corresponding to the continuous class, and if so, correcting the sample feature; When the sample feature belongs to a discrete class, the sample feature is converted into a corresponding feature code.
4. The training method of the business data classification model according to claim 1, It is characterized in that The step of standardizing the sample features of the plurality of business data samples comprises: For sample features whose feature values are empty, execute: According to a preset assignment strategy, the sample features are assigned values.
5. The training method of the business data classification model according to claim 2, It is characterized in that Further including: For each of the business data samples, execute: Determine whether the classification information included in the business data sample meets the preset sample standard, and if so, execute the step of collecting multiple sample features from the business data sample; Otherwise, the business data sample is discarded.
6. The training method of the business data classification model according to claim 4, It is characterized in that Further including: For each discrete class of sample features, execute: Determine a plurality of discrete information corresponding to the sample features of the discrete class, and a character assigned a value to each of the discrete information and a coding position of the character; The step of converting the sample features into corresponding feature codes comprises: A corresponding feature code is generated for the sample feature using a plurality of discrete information corresponding to the sample feature, characters corresponding to the discrete information, and encoding positions of the characters.
7. The training method of the business data classification model according to claim 2, It is characterized in that The preset information dimensions include: any one or more dimensions of user information dimension, item information dimension, order information dimension and service information dimension.
8. The training method of the business data classification model according to claim 1, It is characterized in that Further comprising: dividing a verification sample set based on the sample set; After obtaining the data classification model, the method further includes: using sample features and corresponding processing categories in the verification sample set to modify the data classification model; The step of testing the data classification model includes: testing the modified data classification model.
9. The training method of the business data classification model according to any one of claims 1 to 8, It is characterized in that The test results include: setting a first correlation between a threshold and an accuracy rate; Determining a classification threshold for the data classification model includes: Determine target accuracy; According to the first association relationship, a threshold corresponding to the target accuracy is determined as the classification threshold.
10. The training method of the business data classification model according to claim 9, It is characterized in that Further comprising: setting a recall rate limit range and a precision rate limit range; The test result further includes: a second correlation relationship between the recall rate and the precision rate; The steps to determine the target accuracy include: According to the second association relationship, searching for an intersection area between the recall rate limit range and the accuracy rate limit range; The minimum accuracy in the intersection area is selected as the target accuracy.
11. A method for classifying business data. It is characterized in that A server applied to an after-sales service system, implemented based on a data classification model trained according to any one of claims 1 to 10, comprising: When receiving the business data to be processed, obtaining a processing category score according to the business data to be processed and the data classification model, the business data being the data in the service order; The processing category score is compared with the classification threshold of the data classification model, and a processing strategy for the business data to be processed is determined according to the comparison result.
12. The method for classifying business data according to claim 11, It is characterized in that The step of obtaining a processing category score according to the service data to be processed and the classification model comprises: Based on a preset information dimension, extracting multiple data features from the business data to be processed; Performing standardization on the data features; The standardized data features are input into the data classification model to obtain the classification score.
13. The method for classifying business data according to claim 11 or 12, It is characterized in that Further including: For a set amount of business data to be processed, both manual classification and classification by the classification model are performed; It is determined whether the matching degree between the result of the manual classification and the result of the classification model classification is lower than a set alarm threshold. If so, a classification error alarm is issued to prompt maintenance personnel to correct the classification model.
14. The method for classifying business data according to claim 11 or 12, It is characterized in that The step of determining a processing strategy for the service data to be processed includes: When the comparison result indicates that the processing category score is lower than the classification threshold, the business data to be processed is pushed to the business processing personnel to manually process the business data to be processed; otherwise, the business data to be processed is automatically processed.
15. A training device for a business data classification model, It is characterized in that The server applied to the after-sales service system includes: a sample set construction unit, a training unit and a correction unit, wherein: The sample set construction unit is used to construct a sample set using multiple business data samples, wherein one sample in the sample set includes a sample feature of the business data sample and a corresponding processing category, and the sample set is divided into a training sample set and a test sample set, and the business data is the data in the service order; The training unit is used to train a classification model using the sample features and corresponding processing categories in the training sample set divided by the sample set construction unit to obtain a data classification model; The correction unit is used to test the data classification model trained by the training unit by using the sample features and corresponding processing categories in the test sample set divided by the sample set construction unit, and to correct the classification threshold for the data classification model according to the test result; The sample set construction unit is further used to perform standardization processing on the sample features of the plurality of business data samples; and construct samples using the plurality of sample features and processing categories corresponding to the business data samples after standardization processing; The step of standardizing the sample features of the plurality of business data samples comprises: For sample features whose feature values are not empty, execute: When the sample feature belongs to the text class, the sample feature is quantified into a corresponding numerical value according to a preset word segmentation value table.
16. The training device for the business data classification model according to claim 15, It is characterized in that The sample set construction unit is used to collect multiple sample features from the business data sample based on a preset information dimension; construct a sample using the multiple sample features and corresponding processing categories; and form a sample set using multiple samples.
17. A device for classifying business data, It is characterized in that A server applied to an after-sales service system, implemented by a data classification model trained by the training method for a business data classification model provided by any one of claims 1 to 10, comprising: a score confirmation unit and a classification determination unit, wherein: The score confirmation unit is used to obtain a processing category score according to the to-be-processed business data and the data classification model when receiving the to-be-processed business data, where the business data is the data in the service order; The classification determination unit is used to compare the processing category score obtained by the score confirmation unit with the classification threshold of the data classification model, and determine the processing strategy of the service data to be processed according to the comparison result.
18. An electronic device for training a business data classification model, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.
19. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.
Citation Information
Patent Citations
Business risk prevention and control method, device and equipment
CN109598281A
Feature analysis method and device based on machine learning model, equipment and medium
CN109615020A
User group classification method and device
WO2018196798A1
Object identification method and system therefor
WO2019072128A1
Method and apparatus for generating image detection model
WO2020006963A1
