Model training method, behavior quality evaluation method and device, equipment and product
Through the model training method, the base learner and the meta-learner are used for integrated learning to generate a behavior quality evaluation model, which solves the problem of service behavior quality evaluation of operation and maintenance personnel, achieves a more scientific and accurate evaluation, and improves the quality of operation and maintenance.
Patent Information
- Application Number
- CN202411096090.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology is difficult to effectively evaluate the service behavior quality of operation and maintenance personnel, resulting in the lack of direct and scientific quantitative methods for the evaluation of operation and maintenance personnel's service behavior, which affects maintenance quality control.
The model training method is used to obtain historical service behavior data, build a model input data set, combine the base learner and meta-learner, conduct integrated learning training, and generate a behavior quality evaluation model for evaluating service behavior quality.
It improves the accuracy and generalization of service behavior quality evaluation, provides a scientific and objective evaluation method, and helps improve the service behavior quality and overall maintenance quality of operation and maintenance personnel.
Smart Images

Figure CN118735360A_ABST
Abstract
Description
Background Art
[0002] The daily maintenance work of operators mainly focuses on the maintenance of front-line services at the end of the communication network. It is one of the important tasks to ensure the quality of customer services and improve customer satisfaction. Therefore, the operator's control of maintenance quality is an important part of the maintenance workflow. In addition to the quality of maintained services, the service behavior of operation and maintenance personnel is also one of the important factors that affect customer perception and maintenance quality. Improving the quality of personnel service behavior can improve the overall maintenance quality to a certain extent. At the same time, the evaluation of the service behavior of operation and maintenance personnel can also serve as an important reference indicator for work effectiveness.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0004] The purpose of the present disclosure is to provide a model training method, a behavior quality evaluation method, a model training device, a behavior quality evaluation device, an electronic device and a computer program product, thereby at least to a certain extent overcoming the problem in related schemes that the service behavior quality of business personnel cannot be effectively evaluated.
[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present invention.
[0006] According to a first aspect of the present disclosure, a model training method is provided, comprising: obtaining historical service behavior data of business personnel, the historical service behavior data comprising multiple behavior feature data and behavior quality scores; constructing a model input data set based on the behavior feature data and the behavior quality scores; obtaining a pre-constructed initial model, the initial model comprising at least one base learner and a meta learner; performing model training on the base learner based on the model input data set to obtain an output result of the base learner, the output result comprising a validation set output result and a test set output result; performing model training on the meta learner based on the validation set output result and the test set output result to obtain a behavior quality evaluation model.
[0007] In an exemplary embodiment of the present disclosure, constructing a model input data set based on the behavior feature data and the behavior quality score includes: constructing a behavior quality evaluation sample set based on the behavior feature data and the behavior quality score, the behavior quality evaluation sample set including multiple behavior quality evaluation samples; dividing the behavior quality evaluation sample set to obtain a training sample set and a test sample set; standardizing the multiple behavior quality evaluation samples to obtain a standardized feature data set; performing feature selection on the feature data set to obtain model input features; and constructing the model input data set based on the model input features, the training sample set, and the test sample set.
[0008] In an exemplary embodiment of the present disclosure, the feature data set is subjected to feature selection processing to obtain model input features, including: determining the output result category and the number of result categories corresponding to the feature data set; determining the probability of a sample category corresponding to each of the behavior quality evaluation samples in the feature data set; calculating the Gini coefficient of the feature data set based on the number of result categories and the probability of the sample category; and performing feature selection processing on the feature data set according to the Gini coefficient to obtain the model input features.
[0009] In an exemplary embodiment of the present disclosure, the base learner is model-trained based on the model input data set to obtain the output result of the base learner, including: determining a model training data set and a model test data set based on the model input data set; dividing the model training data set in equal proportion to obtain k training data subsets, the k training data subsets including a training data set and a verification data set; based on the training data set and the verification data set, model training is performed on each of the base learners to obtain a verification set output result corresponding to each of the base learners; and the test set output result of the base learner is determined according to the predicted output results of the base learner under multiple rounds of the model test data set and the number of training times.
[0010] In an exemplary embodiment of the present disclosure, the model training is performed on each of the base learners based on the training data set and the verification data set to obtain the verification set output result corresponding to each of the base learners, including: performing the following steps on each of the base learners one by one: selecting k-1 training data subsets from the k training data subsets as the training data set, and using the remaining training data subsets as the verification data set; performing model training on the base learner according to the training data set and the verification data set to obtain a single verification set output result of the base learner in this round of training; and generating the verification set output result based on multiple single verification set output results.
[0011] In an exemplary embodiment of the present disclosure, the meta-learner is subjected to model training based on the validation set output result and the test set output result to obtain a behavior quality evaluation model, including: determining the weight of a base learner; determining a weighted output result of a validation set based on the weight of the base learner and the validation set output result; determining a weighted output result of a test set based on the weight of the base learner and the test set output result; using the weighted output result of the validation set as training set input data of the meta-learner, and performing model training on the meta-learner in combination with the behavior quality score; using the weighted output result of the test set as test set input data of the meta-learner, and obtaining a test set prediction result output by the meta-learner, so as to determine the behavior quality evaluation model according to the test set prediction result and the behavior quality score.
[0012] In an exemplary embodiment of the present disclosure, determining the weight of the base learner includes: performing an error analysis comparison on the validation set output result and the behavior quality score to obtain an error evaluation index value, wherein the error evaluation index value includes one or more of a root mean square error, a mean absolute percentage error, a mean absolute error and a determination coefficient; constructing an evaluation matrix of the base learner according to the error evaluation index value, wherein the evaluation matrix includes a plurality of error evaluation index values corresponding to each of the base learners; based on the evaluation matrix, respectively calculating the evaluation factor weight corresponding to each of the error evaluation index values; determining the entropy value of the base learner according to the evaluation factor weight; and determining the weight of the base learner based on the entropy value of the base learner.
[0013] In an exemplary embodiment of the present disclosure, the behavior characteristic data is generated based on service behavior characteristics, and the service behavior characteristics include one or more of the number of entries and exits of the electronic fence, the overlap rate of the planned path verification, the mileage difference verification, the operation quality compliance rate, the user satisfaction evaluation score and the number of times the time limit is exceeded.
[0014] According to a second aspect of the present disclosure, a behavior quality evaluation method is provided, comprising: obtaining service behavior data of business personnel, and a pre-trained behavior quality evaluation model, wherein the behavior quality evaluation model is trained using any one of the model training methods described above; inputting the service behavior data into the behavior quality evaluation model to obtain a behavior quality prediction score; obtaining a preset quality evaluation grade, and a grade division threshold for the quality evaluation grade; and determining an evaluation grade result corresponding to the service behavior data based on the behavior quality prediction score, the grade division threshold and the quality evaluation grade.
[0015] In an exemplary embodiment of the present disclosure, the above method also includes: responding to a threshold update instruction, adjusting the grade classification threshold based on the threshold update instruction to obtain an updated grade classification threshold; and determining the evaluation grade result corresponding to the newly added service behavior data based on the updated grade classification threshold.
[0016] According to a third aspect of the present disclosure, a model training device is provided, comprising: a sample data acquisition module, used to acquire historical service behavior data of business personnel, the historical service behavior data including multiple behavior feature data and behavior quality scores; a data set construction module, used to construct a model input data set according to the behavior feature data and the behavior quality scores; an initial model acquisition module, used to acquire a pre-constructed initial model, the initial model including at least one base learner and a meta learner; a first model training module, used to perform model training on the base learner based on the model input data set to obtain an output result of the base learner, the output result including a validation set output result and a test set output result; a second model training module, used to perform model training on the meta learner based on the validation set output result and the test set output result to obtain a behavior quality evaluation model.
[0017] In an exemplary embodiment of the present disclosure, the data set construction module includes a data set construction unit, which is used to: construct a behavior quality evaluation sample set based on the behavior feature data and the behavior quality score, and the behavior quality evaluation sample set includes multiple behavior quality evaluation samples; divide the behavior quality evaluation sample set to obtain a training sample set and a test sample set; standardize the multiple behavior quality evaluation samples to obtain a standardized feature data set; perform feature selection on the feature data set to obtain model input features; and construct the model input data set based on the model input features, the training sample set, and the test sample set.
[0018] In an exemplary embodiment of the present disclosure, the data set construction unit includes a feature selection subunit, which is used to: determine the output result category and the number of result categories corresponding to the feature data set; determine the probability of the sample category corresponding to each of the behavior quality evaluation samples in the feature data set; calculate the Gini coefficient of the feature data set based on the number of result categories and the probability of the sample category; perform feature selection processing on the feature data set according to the Gini coefficient to obtain the model input features.
[0019] In an exemplary embodiment of the present disclosure, the first model training module includes a first model training unit, which is used to: determine a model training data set and a model test data set based on the model input data set; divide the model training data set into equal proportions to obtain k training data subsets, and the k training data subsets include a training data set and a verification data set; based on the training data set and the verification data set, perform model training on each of the base learners respectively to obtain a verification set output result corresponding to each of the base learners; determine the test set output result of the base learner according to the predicted output results of the base learner under multiple rounds of the model test data set and the number of training times.
[0020] In an exemplary embodiment of the present disclosure, the first model training unit includes a first model training sub-unit, which is used to: perform the following steps on each of the base learners one by one: select k-1 training data subsets from the k training data subsets as the training data set, and use the remaining training data subsets as the verification data set; perform model training on the base learner according to the training data set and the verification data set to obtain a single verification set output result of the base learner in this round of training; and generate the verification set output result based on multiple single verification set output results.
[0021] In an exemplary embodiment of the present disclosure, the second model training module includes a second model training unit, which is used to: determine the weight of the base learner; determine the weighted output result of the validation set based on the weight of the base learner and the validation set output result; determine the weighted output result of the test set based on the weight of the base learner and the test set output result; use the weighted output result of the validation set as the training set input data of the meta-learner, and perform model training on the meta-learner in combination with the behavior quality score; use the weighted output result of the test set as the test set input data of the meta-learner to obtain the test set prediction result output by the meta-learner, so as to determine the behavior quality evaluation model according to the test set prediction result and the behavior quality score.
[0022] In an exemplary embodiment of the present disclosure, the second model training unit includes a weight calculation subunit, which is used to: perform error analysis and comparison on the validation set output result and the behavior quality score to obtain an error evaluation index value, wherein the error evaluation index value includes one or more of a root mean square error, a mean absolute percentage error, a mean absolute error and a determination coefficient; construct an evaluation matrix of the base learner according to the error evaluation index value, wherein the evaluation matrix includes a plurality of error evaluation index values corresponding to each of the base learners; based on the evaluation matrix, respectively calculate the evaluation factor weight corresponding to each of the error evaluation index values; based on the evaluation factor weight, determine the entropy value of the base learner; and based on the entropy value of the base learner, determine the weight of the base learner.
[0023] According to a fourth aspect of the present disclosure, a behavior quality evaluation device is provided, comprising: a data acquisition module, used to acquire service behavior data of business personnel, and a pre-constructed behavior quality evaluation model, wherein the behavior quality evaluation model is trained using any of the model training methods described above; a prediction score determination module, used to input the service behavior data into the behavior quality evaluation model to obtain a behavior quality prediction score; a threshold acquisition module, used to acquire a preset quality evaluation grade, and a grade division threshold of the quality evaluation grade; and a result determination module, used to determine an evaluation grade result corresponding to the service behavior data based on the behavior quality prediction score, the grade division threshold and the quality evaluation grade.
[0024] In an exemplary embodiment of the present disclosure, the behavior quality evaluation device also includes a threshold update module, which is used to: respond to a threshold update instruction, adjust the grade division threshold based on the threshold update instruction to obtain an updated grade division threshold; and determine the evaluation grade result corresponding to the newly added service behavior data based on the updated grade division threshold.
[0025] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the model training method according to any one of the above items is implemented, or the behavior quality evaluation method according to any one of the above items is implemented.
[0026] According to the sixth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the model training method described in any one of the above items, or implements the behavior quality evaluation method described in any one of the above items.
[0027] The technical solution provided by the present disclosure may have the following beneficial effects:
[0028] The model training method in the exemplary embodiment of the present disclosure, on the one hand, constructs a model input data set based on behavior feature data, so that the model can learn multi-dimensional features, and can more scientifically and accurately quantify the service behavior quality from the perspective of multi-dimensional features. On the other hand, the model structure is constructed based on ensemble learning, and the model is trained to obtain a behavior quality evaluation model, which can effectively improve the accuracy and generalization of the model output results compared to the basic model.
[0029] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0031] Figure 1 A flowchart of a model training method according to an exemplary embodiment of the present disclosure is schematically shown;
[0032] Figure 2 A diagram schematically shows a training process diagram of a Stacking ensemble learning model with k-fold cross validation according to an exemplary embodiment of the present disclosure;
[0033] Figure 3 A flowchart of a behavior quality evaluation method according to an exemplary embodiment of the present disclosure is schematically shown;
[0034] Figure 4 Schematically shows a service behavior quality rating diagram according to an exemplary embodiment of the present disclosure;
[0035] Figure 5 The overall flow chart of the service behavior quality evaluation method based on Stacking ensemble learning according to an exemplary embodiment of the present disclosure is schematically shown;
[0036] Figure 6 A block diagram of a model training device according to an exemplary embodiment of the present disclosure is schematically shown;
[0037] Figure 7 Schematically shows a block diagram of a behavior quality evaluation device according to an exemplary embodiment of the present disclosure;
[0038] Figure 8 A block diagram of an electronic device according to an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0039] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0040] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known structures, methods, devices, implementations, materials or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.
[0041] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or these functional entities or parts of functional entities may be implemented in one or more software hardened modules, or these functional entities may be implemented in different networks and / or processor devices and / or microcontroller devices.
[0042] For operators' daily maintenance work, the evaluation of the service behavior quality of operation and maintenance personnel is an important work content. In the relevant schemes, the quality of operation and maintenance services and the work quality of operation and maintenance personnel are uniformly evaluated with a single indicator of customer satisfaction. There is a lack of direct evaluation methods and evaluation dimensions for the quality of operation and maintenance personnel's service behavior, and the quality of operation and maintenance personnel's service behavior is not used as a reference factor for maintenance quality control. Therefore, objectively and scientifically quantifying the service behavior quality of operation and maintenance personnel has become a key and difficult problem to be solved.
[0043] Based on this, in this example embodiment, a model training method is first provided. The model training method of the present disclosure can be implemented using a server, or the method described in the present disclosure can be implemented using a terminal device, wherein the terminal described in the present disclosure may include mobile terminals such as mobile phones, tablet computers, laptops, PDAs, personal digital assistants (PDAs), and fixed terminals such as desktop computers. Figure 1 The following is a schematic diagram of the model training method flow according to some embodiments of the present disclosure. Figure 1 , the model training method may include the following steps:
[0044] Step S110, obtaining the historical service behavior data of the business personnel, the historical service behavior data including a plurality of behavior characteristic data and a behavior quality score.
[0045] According to some exemplary embodiments of the present disclosure, the business personnel may be staff members who provide services to customers, for example, the business personnel may be operation and maintenance personnel. After the business personnel provide services, the served customers can provide feedback on the corresponding quality evaluation scores based on the satisfaction with the service. The historical service behavior data may be data generated based on the service behaviors that the business personnel have completed, and the data includes behavior feature data and quality evaluation scores that match the specific service behaviors. The behavior feature data may be data generated based on the specific values of the relevant service behavior feature indicators of the business personnel. The behavior quality score may be an evaluation score corresponding to the service behavior quality of the business personnel.
[0046] The historical service behavior data generated by multiple business personnel after completing multiple service behaviors is obtained. The historical service behavior data may include the behavior characteristic data of the business personnel in the service provision process and the corresponding behavior quality score. The behavior characteristic data may be composed of specific values of one or more service behavior characteristics.
[0047] Step S120, constructing a model input data set based on the behavior feature data and the behavior quality score.
[0048] According to some exemplary embodiments of the present disclosure, the model input data set may be a set consisting of a plurality of behavior quality evaluation samples.
[0049] After obtaining the historical service behavior data, the characteristic data and behavior quality score involved in a single service behavior provided by a business person are taken as a data sample, multiple data samples are constructed based on the historical service behavior data, and the set of the constructed multiple data samples is used as the model input data set.
[0050] Step S130, obtaining a pre-built initial model, where the initial model includes at least one base learner and a meta learner.
[0051] According to some exemplary embodiments of the present disclosure, the initial model may be an initially constructed model structure, and the initial model is a model structure constructed based on an integrated learning algorithm. A base learner is a model in the base layer, which refers to a single weak learner used to construct an integrated model. A meta-learner is a model in the meta layer, which summarizes the training experience on all tasks. The meta-learner summarizes the task experience to learn the commonalities between tasks, and at the same time guides the base learner to learn the features of new tasks.
[0052] Obtain a pre-built initial model. The initial model of the present invention is a model structure constructed based on an integrated learning algorithm. Combining multiple different algorithms can improve model robustness and result accuracy. For example, the algorithm structure of the initial model is divided into two layers. The first layer is multiple base learners, and the second layer is a meta learner.
[0053] Step S140, performing model training on the base learner based on the model input data set to obtain the output result of the base learner, where the output result includes the validation set output result and the test set output result.
[0054] According to some exemplary embodiments of the present disclosure, the output result may be the output result obtained after the base learner is trained with the model input data set. The validation set output result may be the output result obtained after the base learner is trained with the model, and the base learner performs prediction processing on the validation set in the training set data. The test set output result may be the output result obtained after the base learner is trained with the model, and the base learner performs prediction processing on the test set data.
[0055] After obtaining the model input data set, the model input data set is used as the input data of the initial model, and the base learner is trained to obtain the output result of the base learner. When the model input data set is used to train the base learner, the model input data set is divided into a training set (including a validation set) and a test set. After completing multiple rounds of training on the base learner, the validation set output result and the test set output result corresponding to the base learner are obtained.
[0056] Step S150: Based on the output results of the validation set and the output results of the test set, the meta-learner is trained to obtain a behavior quality evaluation model.
[0057] According to some exemplary embodiments of the present disclosure, the behavior quality evaluation model may be a network model for performing a service behavior quality evaluation task. The service behavior quality may be used to characterize the quality of a series of behaviors generated by a business person when providing services to a customer.
[0058] The validation set output results and test set output results of multiple base learners are used as the input data of the meta-learner training set and test set, respectively, and the meta-learner is trained in combination with the output label (i.e., behavior quality score) of the original model input data set. The specific training process is: the validation set output results of the base learners are used as the training set feature input data of the meta-learner to train the model of the meta-learner, and the test set output results of the base learners are used as the test set feature input data of the meta-learner to verify the effectiveness of the meta-learner model.
[0059] According to the model training method in this example embodiment, on the one hand, a model input data set is constructed based on behavior feature data, so that the model can learn multi-dimensional features, and can more scientifically and accurately quantify the service behavior quality from the perspective of multi-dimensional features. On the other hand, a model structure is constructed based on ensemble learning, and the model is trained to obtain a behavior quality evaluation model, which can effectively improve the accuracy and generalization of the model output results compared to the basic model.
[0060] The model training method in this example embodiment will be further described below.
[0061] In an exemplary embodiment of the present disclosure, for step S120, a model input data set is constructed based on the behavior feature data and the behavior quality score, including: constructing a behavior quality evaluation sample set based on the behavior feature data and the behavior quality score, the behavior quality evaluation sample set including multiple behavior quality evaluation samples; dividing the behavior quality evaluation sample set to obtain a training sample set and a test sample set; standardizing the multiple behavior quality evaluation samples to obtain a standardized feature data set; performing feature selection on the feature data set to obtain model input features; and constructing a model input data set based on the model input features, the training sample set, and the test sample set.
[0062] Among them, the behavior quality evaluation sample set can be a set of samples consisting of behavior feature data and its corresponding behavior quality score, and the behavior quality evaluation sample set is composed of multiple behavior quality evaluation samples. The training sample set can be used to determine the nonlinear relationship between behavior feature data and behavior quality score. The test sample set can be used to verify the accuracy and effectiveness of the model. The behavior quality evaluation sample can be composed of feature data involved in a single service behavior of a business person and the corresponding behavior quality score. The model input feature can be a feature subset obtained after feature selection processing, and the model input feature can be used to construct a model input data set.
[0063] Based on the acquired behavior feature data and behavior quality scores, a behavior quality evaluation sample set is constructed, and the behavior feature data and behavior quality scores involved in a single service provided by a business person are taken as a data sample, namely, a behavior quality evaluation sample. Therefore, the behavior quality evaluation sample set contains multiple behavior quality evaluation samples. Specifically, the behavior feature data of the maintenance service process can be used as the feature input of the model training, and the behavior quality score of the service can be used as the label output.
[0064] Furthermore, the behavior quality evaluation sample set is divided into a training sample set and a test sample set; wherein the training sample set is used to determine the nonlinear relationship between the behavior feature data and the quality score, and the test sample set is used to verify the accuracy and effectiveness of the model.
[0065] In order to reduce the computational complexity during model training, feature selection processing can be further performed on the behavior quality evaluation sample set: first, multiple behavior quality evaluation samples are standardized to obtain a standardized feature data set; then, feature selection processing is performed on the standardized feature data set to obtain model input features. The model input features can be a feature subset of the service behavior features. For example, the model input features can be all service behavior features or a part of the service behavior features.
[0066] After the model input features are determined, the model input data set is constructed based on the model input features, training sample set, and test sample set. For example, data corresponding to the model input features are selected from the training sample set and combined with the model output label (i.e., behavior quality score) to obtain the model input training sample set; data corresponding to the model input features are selected from the test sample set and combined with the model output label to generate the model input test sample set.
[0067] In the above manner, feature selection is performed on multidimensional features before model training to construct a model input data set, which can reduce the computational complexity of model training and shorten the model running time.
[0068] In an exemplary embodiment of the present disclosure, behavior characteristic data is generated based on service behavior characteristics, and the service behavior characteristics include one or more of the number of entries and exits of the electronic fence, the overlap rate of the planned path verification, the mileage difference verification, the operation quality compliance rate, the user satisfaction evaluation score and the number of times the time limit is exceeded.
[0069] The service behavior characteristics may be corresponding behavior characteristics of the business personnel in the process of providing services.
[0070] The process from receiving a service task to completing the work involves a number of established behaviors, and whether there is direct contact with the customer affects the behavior quality evaluation results to a certain extent. This disclosure selects a number of relevant indicators to objectively and scientifically quantify the behavior quality of the entire process of the service work of the business personnel from multiple perspectives. This embodiment takes the operation and maintenance personnel performing maintenance tasks as an example to illustrate the service behavior characteristics, which include the following:
[0071] (1) Number of entries and exits of the electronic fence: Based on the geographical location of the maintenance tasks and other necessary locations involved in the operation and maintenance work, an exclusive electronic map fence is formed within a reasonable surrounding range. The number of entries and exits of the electronic fence by the operation and maintenance personnel can be counted as one of the characteristics for evaluating the quality of service behavior.
[0072] (2) Planned path verification overlap rate: Based on multiple factors such as the geographical location, urgency, and time limit requirements of the maintenance task, the completion order and the optimal path for the operation and maintenance personnel are intelligently formed for multiple maintenance tasks. The overlap rate between the actual driving route of the operation and maintenance personnel and the planned path is calculated, which can be used as one of the evaluation characteristics of service behavior quality.
[0073] (3) Mileage difference verification: Based on the optimal driving routes for multiple maintenance tasks planned intelligently, the total mileage that the maintenance personnel need to travel to complete the maintenance tasks can be calculated. The absolute value of the difference between the actual mileage of the maintenance personnel and the planned mileage can be used as one of the service behavior quality evaluation features.
[0074] (4) Operation quality compliance rate: After completing maintenance work, operation and maintenance personnel need to conduct on-site inspection of service quality. They need to set a number of professional service quality indicators to inspect the maintenance work results. The average compliance rate of a number of service indicators can be calculated as one of the characteristics for evaluating the service behavior quality of operation and maintenance personnel.
[0075] (5) Customer satisfaction evaluation score: After the operation and maintenance personnel complete the maintenance work and pass the professional service quality inspection, the customer needs to comprehensively consider the service behavior of the operation and maintenance personnel and the post-maintenance service quality. The customer satisfaction evaluation score can be used as one of the evaluation characteristics of the operation and maintenance personnel's behavior quality.
[0076] (6) Number of times the time limit is exceeded: In the operation and maintenance work process, there are multiple interactions with customers, requiring the operation and maintenance personnel to complete the relevant established behaviors within the time limit. Counting the number of times the time limit is exceeded can be used as one of the characteristics for evaluating the behavior quality of the operation and maintenance personnel during the maintenance work process.
[0077] The present invention determines the service behavior characteristics based on the parameters involved in the service maintenance process of the operation and maintenance personnel, and judges the behavior quality score from the perspective of multi-dimensional characteristics, which can more scientifically and accurately quantify and evaluate the service behavior quality of the entire maintenance work process of the operation and maintenance personnel.
[0078] In an exemplary embodiment of the present disclosure, feature selection processing is performed on a feature data set to obtain model input features, including: determining the output result category and the number of result categories corresponding to the feature data set; determining the probability of the sample category corresponding to each behavior quality evaluation sample in the feature data set; calculating the Gini coefficient of the feature data set based on the number of result categories and the probability of the sample category; and performing feature selection processing on the feature data set according to the Gini coefficient to obtain model input features.
[0079] Among them, the output result category can be the category of the output result that the feature data set may correspond to, and the output result category can be preset. The number of result categories can be the specific number of output result categories. The probability that a sample belongs to a category can be the probability that a behavior quality evaluation sample belongs to a certain output result category. Gini coefficient (Gini): Gini impurity coefficient, which indicates the probability that a randomly selected sample in a sample set is misclassified. The Gini coefficient can be used to quantitatively analyze the importance of different service behavior features. The smaller the Gini coefficient, the stronger the classification prediction ability of the feature attribute and the higher the correlation with the classification result.
[0080] After obtaining the feature data set after data standardization, the random forest algorithm can be used to evaluate the correlation between the multidimensional features and the grade labels, as follows: determine the output result category and the number of result categories corresponding to the feature data set. Since the feature data set contains output labels, the output labels can be the level of the behavior quality score. For example, according to the value of the behavior quality score, the output labels can be divided into multiple result levels such as "excellent", "good" and "pass". Each result level belongs to the same output result category. At this time, the number of result categories is 3.
[0081] Then, the probability that each behavior quality evaluation sample in the feature data set belongs to a certain output result category is determined, that is, the probability that the sample belongs to the category. According to the number of result categories and the probability that the sample belongs to the category, the Gini coefficient of the feature data set is calculated. The calculation method of the Gini coefficient is shown in Formula 1.
[0082]
[0083] In the formula, Z represents the feature data set; GiNi(Z) represents the Gini coefficient of the feature data set; N represents the number of result categories in the feature data set, and p n It can represent the probability that a sample belongs to the nth output result category.
[0084] Based on the Gini coefficient, the importance of different features is quantitatively analyzed. The smaller the Gini coefficient, the stronger the classification prediction ability and the higher the correlation of the feature attribute. According to the Gini coefficient, the features with high importance are selected for model training. Therefore, the model input features obtained after feature selection are the feature subsets of service behavior features. Through feature selection, the input feature dimension of the model can be appropriately reduced, the computational complexity of model training can be reduced, the accuracy of the algorithm can be improved, and overfitting can be effectively prevented.
[0085] It should be noted that in some other exemplary embodiments of the present disclosure, other feature selection algorithms may also be used for feature selection, and the present disclosure does not make any special limitation on this.
[0086] In an exemplary embodiment of the present disclosure, for step S140, model training is performed on the base learner based on the model input data set to obtain the output result of the base learner, including: determining the model training data set and the model test data set based on the model input data set; dividing the model training data set in equal proportion to obtain k training data subsets, the k training data subsets including the training data set and the verification data set; based on the training data set and the verification data set, model training is performed on each base learner to obtain the verification set output result corresponding to each base learner; and the test set output result of the base learner is determined according to the predicted output results of the base learner under multiple rounds of the model test data set and the number of training times.
[0087] The model training data set and the model test data set may be data sets obtained by dividing the model input data set. The model training data set may be a data set generated according to the model input features and the training sample set. The model test data set may be a data set generated according to the model input features and the test sample set. The training data subset may be a data subset obtained by dividing the model training data set in equal proportion. The base learner prediction output result may be the prediction output result corresponding to the model test data set of the base learner under different training rounds. The number of training times may be the number of model training times for the base learner.
[0088] The initial model of the present disclosure may be a stacking generalization (Stacking) ensemble model, which is a model constructed by a machine learning ensemble algorithm, and is used to combine a variety of different algorithms to improve model robustness and result accuracy. The algorithm structure of the present disclosure is divided into two layers, the first layer is a plurality of base learners, and the second layer is a meta-learner. For example, a gradient boosting regression tree, a random forest, a support vector machine, etc. are selected as the first layer base learners of the Stacking ensemble learning model, and a logistic regression model is selected as the second layer meta-learner.
[0089] Based on the model input data set, the model training data set and the model test data set are determined; the model training data set is divided into k training data subsets in equal proportion, and the k training data subsets are composed of the training data set and the validation data set; based on the training data set and the validation data set, the model is trained on each base learner respectively, and the validation set output result corresponding to each base learner is obtained (i.e. Figure 2 ); According to the prediction output results of the base learner under multiple rounds of the model test data set and the number of training times, determine the test set output results of the base learner (i.e. Figure 2 , the test set prediction results in ).
[0090] The present disclosure uses the Stacking ensemble learning algorithm to construct an initial model for performing the service behavior quality evaluation task, determines the model input data set with the model input features after random forest feature screening, and uses the behavior quality score as the model output result. The training process of the initial model can be divided into two processes, the first process is to train multiple base learners, and the second process is to train the meta learner.
[0091] The specific process of training multiple base learners is as follows: Use k-fold cross validation to train the model, refer to Figure 2 , Figure 2 The figure schematically shows the training process of the Stacking ensemble learning model of k-fold cross validation according to an exemplary embodiment of the present disclosure. Figure 2 As can be seen from the figure, the model input data set is divided into a model training data set D and a model test data set M. During the model training process, the model training data set D is divided into k subsets in equal proportion, that is, k training data subsets are obtained. For example, the Stacking ensemble learning model contains T base learners h(x) = {h1(x),…,h i (x),…,h T (x)}, and a meta-learner H(x), which divides the model training data set D into k subsets in equal proportion, that is, the k training data subsets are D1, D2, ..., D k , and then further divide the k training data subsets to obtain the training data set and the validation data set.
[0092] Use k training data subsets containing training data sets and validation data sets to train multiple base learners one by one, such as training each base learner k times, and obtain the validation set output results and test set output results corresponding to each base learner. Taking the training process of base learner h1(x) as an example, after completing k training times, the output result of the validation set of the base learner h1(x) training prediction can be obtained as p1; after completing k training times, the output result of the model test data set M predicted by the base learner h1(x) can be the mean of the k training output results, such as the output result of the model test data set M predicted by the base learner h1(x) for the jth training model is q 1j , then the test set output of the base learner is
[0093] For the base learners h2(x),…,h T (x), repeat the above training steps to obtain the validation set output results {p2, p3, …, p T} and the test set output results {q2,q3,…,q T}. After obtaining the output results of the base learners, the output results of the validation set and the test set of multiple base learner models are used as the input data of the meta-learner training set and the test set, respectively, and the meta-learner is trained in combination with the output labels in the model input data set. By using the ensemble learning algorithm to build the model, the accuracy and generalization of the model output results can be effectively improved compared to the ordinary model.
[0094] In an exemplary embodiment of the present disclosure, model training is performed on each base learner based on a training data set and a validation data set to obtain a validation set output result corresponding to each base learner, including: performing the following steps on each base learner one by one: selecting k-1 training data subsets from k training data subsets as training data sets, and using the remaining training data subsets as validation data sets; performing model training on the base learner according to the training data set and the validation data set to obtain a single validation set output result of the base learner in this round of training; and generating a validation set output result based on multiple single validation set output results.
[0095] The training data set may be a data set used for a single training of the base learner. The validation data set may be a data set used to validate the training effect of the base learner. The single validation set output result may be the output result of the validation set obtained by the model prediction in the current round of training during the training of the base learner using the training data set.
[0096] The stacking ensemble learning model includes T base learners. This embodiment takes the base learner h1(x) as an example to illustrate the process of model training for the base learner using the k-fold cross-validation method. Figure 2 , the base learner h1(x) needs to be trained k times. Before each training, k-1 training data subsets are selected from the k training data subsets without duplication as the training data set to train the base learner, and the remaining 1 training data subset is used as the validation data set. The output result of the validation set predicted by the j-th training model of the base learner h1(x), that is, the single validation set output result of the base learner in this round of training is p 1j .
[0097] After completing k trainings, obtain the single validation set output result generated by the base learner during the k training process, that is, Figure 2 The validation set prediction result output by the base learner during one training process is used to generate the validation set output result based on the k single validation set output results. Specifically, the validation set output result is p1 = {p 11 ,p 12 ,…,p 1j ,…,p 1k}. Model training can be performed using k-fold cross-validation to avoid model overfitting.
[0098] In an exemplary embodiment of the present disclosure, for step S150, based on the validation set output result and the test set output result, the meta-learner is model trained to obtain a behavior quality evaluation model, including: determining the weight of the base learner; determining the weighted output result of the validation set based on the weight of the base learner and the validation set output result; determining the weighted output result of the test set based on the weight of the base learner and the test set output result; using the weighted output result of the validation set as the training set input data of the meta-learner, and model training the meta-learner in combination with the behavior quality score; using the weighted output result of the test set as the test set input data of the meta-learner, and obtaining the test set prediction result output by the meta-learner, so as to determine the behavior quality evaluation model according to the test set prediction result and the behavior quality score.
[0099] Among them, the weight of the base learner can be used to reflect the importance of different base learners, and the weight of the base learner can be obtained after error analysis and comparison between the prediction output result of the validation set of the base learner and the true label value. The weighted output result of the validation set can be a weighted result calculated based on the weight of the base learner and the output result of the validation set. The weighted output result of the test set can be a weighted result calculated based on the weight of the base learner and the output result of the test set. The training set input data can be the training set feature input data of the meta-learner, and the data for model training of the meta-learner. The test set input data can be the test set feature input data of the meta-learner, to verify the effectiveness of the meta-learner model.
[0100] Before the meta-learner performs model training based on the validation set output results and the test set output results, in order to give full play to the maximum performance of the optimal model, the present disclosure also introduces a weight allocation strategy for the base learner, determines the weights of different base learners, and uses the weights of different base learners as the weighted weights of the validation set output results and the test set output results output by the base learner.
[0101] After obtaining the weights of the base learners, the validation set output results of multiple base learners are weighted based on the weights of the base learners to obtain the corresponding validation set weighted output results; and the test set output results are weighted based on the weights of the base learners to obtain the test set weighted output results. The validation set weighted output results and the test set weighted output results obtained above are used as the feature inputs of the training set and the test set of the meta-learner respectively, and the behavioral quality scores of the original model input data set are used as label outputs to train the meta-learner and complete the model construction.
[0102] The weighted output results of the validation set of the base learner are used as the training set input data of the meta-learner to train the model of the meta-learner; the weighted output results of the test set of the base learner are used as the test set input data of the meta-learner to verify the effectiveness of the meta-learner model.
[0103] In an exemplary embodiment of the present disclosure, determining the weight of a base learner includes: performing an error analysis on an output result of a validation set and a behavior quality score to obtain an error evaluation index value, wherein the error evaluation index value includes one or more of a root mean square error, a mean absolute percentage error, a mean absolute error, and a coefficient of determination; constructing an evaluation matrix of the base learner according to the error evaluation index value, wherein the evaluation matrix includes a plurality of error evaluation index values corresponding to each base learner; based on the evaluation matrix, respectively calculating the evaluation factor weight corresponding to each error evaluation index value; determining an entropy value of the base learner according to the evaluation factor weight; and determining the weight of the base learner based on the entropy value of the base learner.
[0104] Among them, the behavior quality score can be the result output label corresponding to the sample data in the model input data set. The error evaluation index value can be an index value used to evaluate the error result between the output result of the validation set and the true output label value (behavior quality score). The evaluation matrix can be a matrix composed of multiple error evaluation index values corresponding to multiple base learners. The evaluation factor weight can be the weight corresponding to a certain error evaluation index value of a certain base learner.
[0105] During the model training process, the weights of multiple base learners are adjusted according to the error results of the validation set data of the base learners, and the entropy method is used to give full play to the maximum performance of the model. Specifically, the error analysis is performed on the validation set output results of the base learners and the true label values (i.e., behavior quality scores) in the model training data set, and the root mean square error (RMSE), mean absolute percentage error (MAPE), mean absolute error (MAE), and determination coefficient (R-Square, R 2 ) and other m error analysis results as error evaluation index values.
[0106] The calculation formulas for the error evaluation index values are shown in Formula 2-Formula 5.
[0107]
[0108] Among them, RMSE is the root mean square error between the output of the validation set and the true label value; z is the number of samples in the validation set, and y is i is the true value of the sample, is the predicted value of the base learner, is the mean of the true values; MAPE is the mean absolute percentage error between the output of the validation set and the true label value; MAE is the mean absolute error between the output of the validation set and the true label value; R 2 It is the coefficient of determination between the output of the validation set and the true label value.
[0109] After obtaining the above error evaluation index value, an evaluation matrix of the base learner is constructed according to the error evaluation index value, and an m×T base learner evaluation matrix x is constructed using the entropy method. The evaluation matrix x is composed of multiple error evaluation index values corresponding to each base learner, as shown in Formula 6.
[0110]
[0111] Among them, x represents the evaluation matrix; x ij is the i-th error evaluation index value of the j-th base learner.
[0112] For the constructed evaluation matrix, calculate the evaluation factor weight P corresponding to each error evaluation index value in the evaluation matrix ij , as shown in Formula 7.
[0113]
[0114] Among them, P ij is the error evaluation index value x ij The corresponding evaluation factor weight; x ij is the i-th error evaluation index value of the j-th base learner; m represents the number of error evaluation indicators.
[0115] According to the weight of the evaluation factor P ij Calculate the entropy value E of each base learner j , as shown in Formula 8.
[0116]
[0117] Among them, E j represents the entropy value of the j-th base learner; P ij is the error evaluation index value x ij The corresponding evaluation factor weight; m represents the number of error evaluation indicators.
[0118] Calculate the weight W of each base learner according to the entropy value of each base learner j , as shown in Formula 9.
[0119]
[0120] Among them, E j represents the entropy value of the j-th base learner; Wj is the weight of the jth base learner; T represents the number of base learners in the model.
[0121] After calculating the weights of each base learner according to the entropy method, the validation set output results and test set output results of each base learner are assigned corresponding weights according to the weights of each base learner to generate the validation set weighted output result P (i.e. Figure 2 The training set data P) and the test set weighted output result Q (i.e. Figure 2 The test set data Q in is as shown in Formula 10-Formula 11.
[0122]
[0123] Among them, W j is the weight of the jth base learner; P is the weighted output of the validation set; p j is the j-th base learner validation set output result; Q is the weighted output result of the test set; q j Output the results for the j-th base learner test set.
[0124] By performing error analysis on the validation set prediction output results of the base learners and the true label values, the entropy method is used to calculate the weights to reflect the importance of different base learners. The weights of base learners with good training effects are increased, and the weights of base learners with poor training effects are reduced, thereby improving the prediction accuracy of the model.
[0125] In summary, the model training method disclosed in the present invention obtains the historical service behavior data of the business personnel, and the historical service behavior data includes multiple behavior feature data and behavior quality scores; constructs a model input data set according to the behavior feature data and the behavior quality scores; obtains a pre-constructed initial model, and the initial model includes at least one base learner and a meta learner; performs model training on the base learner based on the model input data set to obtain the output result of the base learner, and the output result includes the validation set output result and the test set output result; performs model training on the meta learner based on the validation set output result and the test set output result to obtain a behavior quality evaluation model. On the one hand, the model input data set is constructed based on multiple behavior feature data, so that the model can learn multi-dimensional features, and the service behavior quality can be quantified more scientifically and accurately from the perspective of multi-dimensional features; at the same time, by selecting features for multi-dimensional features before training, the computational complexity of algorithm training can be reduced, and the model running time can be reduced. On the other hand, the model structure is constructed based on ensemble learning, and the model is trained to obtain a behavior quality evaluation model, which can effectively improve the accuracy and generalization of the model output results compared with the basic model, and the model training is performed using the k-fold cross validation method to avoid model overfitting. On the other hand, during the model training process, the weights of multiple base learner models are adjusted according to the error results of the validation set data, which can give full play to the maximum performance of the model.
[0126] In addition, in this exemplary embodiment, a behavior quality evaluation method is also provided. The behavior quality evaluation method of the present disclosure can be implemented by using a server, or by using a terminal device. Figure 3 The following is a schematic diagram of the behavior quality evaluation method process according to some embodiments of the present disclosure. Figure 3 , the behavior quality evaluation method may include the following steps:
[0127] Step S310, obtaining the service behavior data of the business personnel and a pre-trained behavior quality evaluation model, where the behavior quality evaluation model is trained using a model training method.
[0128] According to some exemplary embodiments of the present disclosure, the service behavior data may be behavior data currently to be processed for quality evaluation.
[0129] For the service behavior data generated by the service behavior provided by the business personnel to the customers, the behavior quality evaluation model obtained by the above training can be used to perform quality evaluation processing on the service behavior data.
[0130] Step S320, inputting the service behavior data into the behavior quality evaluation model to obtain a behavior quality prediction score.
[0131] According to some exemplary embodiments of the present disclosure, the acquired service behavior data is input into a pre-trained behavior quality evaluation model, which performs quality evaluation processing on the service behavior data and outputs a corresponding behavior quality prediction score.
[0132] Step S330, obtaining a preset quality evaluation level and a level division threshold of the quality evaluation level.
[0133] According to some exemplary embodiments of the present disclosure, since the behavior quality evaluation model outputs the specific value of the service behavior data, in order to further determine the quality evaluation level corresponding to the service behavior data, a pre-configured level division threshold and quality evaluation level can be obtained. According to the behavior quality prediction score and the level division threshold, the threshold interval to which it belongs is determined, and the corresponding service behavior quality level evaluation result is given, such as "excellent" or "good" or "qualified".
[0134] refer to Figure 4 , Figure 4 The service behavior quality rating diagram according to the exemplary embodiment of the present disclosure is schematically shown. For all business personnel included in the behavior quality evaluation sample set during the model training process, the service behavior quality scores of the above business personnel ranked in the top 30% are rated as "excellent", the top 30% lowest score is determined as the excellent threshold, the scores ranked in the top 30%-60% are rated as "good", the top 60% lowest score is determined as the good threshold, and the scores ranked in the bottom 40% are rated as "qualified".
[0135] Step S340, determining the evaluation grade result corresponding to the service behavior data according to the behavior quality prediction score, the grade classification threshold and the quality evaluation grade.
[0136] According to some exemplary embodiments of the present disclosure, after the model outputs the behavior quality prediction score, the behavior quality prediction score is compared with the excellent threshold and the good threshold respectively to determine the grade interval to which the score belongs, thereby obtaining the evaluation grade result of the service behavior data. Figure 5 , Figure 5 The overall flow chart of the service behavior quality evaluation method based on Stacking ensemble learning according to an exemplary embodiment of the present disclosure is schematically shown. In step S510, the acquired service behavior data is input into a pre-trained behavior quality evaluation model, and the model outputs a behavior quality prediction score.
[0137] The obtained behavior quality prediction score is compared with the grade division threshold. In step S520, it is determined whether the behavior quality prediction score is greater than the excellent grade threshold; if so, in step S530, the service behavior prediction evaluation grade is output as "excellent". If the behavior quality prediction score is less than or equal to the excellent grade threshold, in step S540, it is determined whether the behavior quality prediction score is greater than the good grade threshold; if so, in step S550, the service behavior prediction evaluation grade is output as "good". If the behavior quality prediction score is less than or equal to the good grade threshold, in step S560, the service behavior prediction evaluation grade is output as "qualified".
[0138] The above output result is used as the evaluation grade result corresponding to the service behavior data. When determining the quality evaluation grade of the business personnel, the behavior quality score of each business personnel for each service can be recorded and stored to understand the maintenance service status of each operation and maintenance personnel and the overall personnel.
[0139] According to the behavior quality evaluation method in this example embodiment, on the one hand, the model outputs the behavior quality prediction score, and the preset level division threshold is combined to determine the level evaluation result of the service behavior data. On the other hand, by determining the evaluation level results of the business personnel, the service behavior quality of individuals and the overall personnel can be understood, and the management and control of the service quality of the business personnel can be strengthened more reasonably to provide service work quality.
[0140] Next, the behavior quality evaluation method in this exemplary embodiment will be further described.
[0141] In an exemplary embodiment of the present disclosure, in response to a threshold update instruction, the grade classification threshold is adjusted based on the threshold update instruction to obtain an updated grade classification threshold; based on the updated grade classification threshold, the evaluation grade result corresponding to the newly added service behavior data is determined.
[0142] The newly added service behavior data may be the service behavior data newly generated after the level classification threshold is updated. When the overall service personnel's behavior quality score changes, the pre-configured level classification threshold may be adjusted dynamically, or both the level classification threshold and the quality evaluation level may be adjusted together. Figure 5 In step S570, it is detected whether the threshold update condition is met. When the threshold update condition is met, a threshold update instruction is automatically generated. In response to the threshold update instruction, the grade classification threshold is adjusted. In step S580, the excellent threshold and the good threshold are updated; in some other embodiments, the pre-configured quality evaluation level can also be adjusted, such as adjusting the current quality evaluation level containing "excellent" or "good" or "qualified" to "excellent" or "good" or "general" or "qualified", etc.
[0143] After the grading threshold and / or quality evaluation level are updated, the quality of the newly added service behavior data is evaluated based on the updated grading threshold to obtain the corresponding evaluation level result. By periodically and dynamically adjusting the grading threshold according to the service behavior quality of the overall business personnel, the service behavior quality of individuals and the overall personnel can be understood in a timely manner, and the control of the service behavior quality of operation and maintenance personnel can be strengthened more reasonably, thereby comprehensively improving the quality of operation and maintenance work.
[0144] In summary, the behavior quality evaluation method disclosed in the present invention obtains the service behavior data of business personnel and a pre-trained behavior quality evaluation model, and the behavior quality evaluation model is trained using any of the above-mentioned model training methods; the service behavior data is input into the behavior quality evaluation model to obtain a behavior quality prediction score; a preset quality evaluation grade and a grade division threshold of the quality evaluation grade are obtained; and the evaluation grade result corresponding to the service behavior data is determined according to the behavior quality prediction score, the grade division threshold and the quality evaluation grade. On the one hand, the model outputs the behavior quality prediction score, and the grade division threshold can be combined with the preset grade division threshold to determine the grade evaluation result of the service behavior data. On the other hand, by determining the evaluation grade result of the business personnel, the service behavior quality of individuals and the overall personnel can be understood, and by periodically and dynamically adjusting the grade division threshold, the management and control of the service quality of business personnel can be more reasonably strengthened to provide service work quality.
[0145] It should be noted that, although the steps of the method of the present invention are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0146] In addition, in this exemplary embodiment, a model training device is also provided. Figure 6 The model training device 600 may include: a sample data acquisition module 610, a data set construction module 620, an initial model acquisition module 630, a first model training module 640 and a second model training module 650.
[0147] Specifically, the sample data acquisition module 610 is used to obtain the historical service behavior data of the business personnel, and the historical service behavior data includes multiple behavior feature data and behavior quality scores; the data set construction module 620 is used to construct a model input data set based on the behavior feature data and the behavior quality scores; the initial model acquisition module 630 is used to obtain a pre-built initial model, and the initial model includes at least one base learner and a meta learner; the first model training module 640 is used to perform model training on the base learner based on the model input data set to obtain the output result of the base learner, and the output result includes the validation set output result and the test set output result; the second model training module 650 is used to perform model training on the meta learner based on the validation set output result and the test set output result to obtain a behavior quality evaluation model.
[0148] In an exemplary embodiment of the present disclosure, the data set construction module 620 includes a data set construction unit, which is used to: construct a behavior quality evaluation sample set based on the behavior feature data and the behavior quality score, the behavior quality evaluation sample set including multiple behavior quality evaluation samples; divide the behavior quality evaluation sample set to obtain a training sample set and a test sample set; standardize the multiple behavior quality evaluation samples to obtain a standardized feature data set; perform feature selection on the feature data set to obtain model input features; and construct a model input data set based on the model input features, the training sample set, and the test sample set.
[0149] In an exemplary embodiment of the present disclosure, a data set construction unit includes a feature selection subunit, which is used to: determine the output result category and the number of result categories corresponding to the feature data set; determine the probability of the sample category corresponding to each behavior quality evaluation sample in the feature data set; calculate the Gini coefficient of the feature data set based on the number of result categories and the probability of the sample category; perform feature selection processing on the feature data set according to the Gini coefficient to obtain model input features.
[0150] In an exemplary embodiment of the present disclosure, the first model training module 640 includes a first model training unit, which is used to: determine a model training data set and a model test data set based on a model input data set; divide the model training data set in equal proportion to obtain k training data subsets, and the k training data subsets include a training data set and a verification data set; based on the training data set and the verification data set, perform model training on each base learner respectively to obtain a verification set output result corresponding to each base learner; determine the test set output result of the base learner according to the base learner prediction output result and the number of training times under multiple rounds of the model test data set.
[0151] In an exemplary embodiment of the present disclosure, the first model training unit includes a first model training sub-unit, which is used to: perform the following steps on each base learner one by one: select k-1 training data subsets from k training data subsets as training data sets, and use the remaining training data subsets as verification data sets; perform model training on the base learner according to the training data set and the verification data set to obtain a single verification set output result of the base learner in this round of training; and generate a verification set output result based on multiple single verification set output results.
[0152] In an exemplary embodiment of the present disclosure, the second model training module 650 includes a second model training unit, which is used to: determine the weight of the base learner; determine the weighted output result of the validation set based on the weight of the base learner and the validation set output result; determine the weighted output result of the test set based on the weight of the base learner and the test set output result; use the weighted output result of the validation set as the training set input data of the meta-learner, and perform model training on the meta-learner in combination with the behavior quality score; use the weighted output result of the test set as the test set input data of the meta-learner, and obtain the test set prediction result output by the meta-learner, so as to determine the behavior quality evaluation model according to the test set prediction result and the behavior quality score.
[0153] In an exemplary embodiment of the present disclosure, the second model training unit includes a weight calculation subunit, which is used to: perform error analysis and comparison on the verification set output result and the behavior quality score to obtain an error evaluation index value, the error evaluation index value includes one or more of root mean square error, mean absolute percentage error, mean absolute error and determination coefficient; construct an evaluation matrix of the base learner according to the error evaluation index value, the evaluation matrix includes multiple error evaluation index values corresponding to each base learner; based on the evaluation matrix, respectively calculate the evaluation factor weight corresponding to each error evaluation index value; according to the evaluation factor weight, determine the entropy value of the base learner; based on the entropy value of the base learner, determine the weight of the base learner.
[0154] In addition, in this exemplary embodiment, a behavior quality evaluation device is also provided. Figure 7 The behavior quality evaluation device 700 may include: a data acquisition module 710 , a prediction score determination module 720 , a threshold acquisition module 730 and a result determination module 740 .
[0155] Specifically, the data acquisition module 710 is used to acquire the service behavior data of the business personnel, and a pre-constructed behavior quality evaluation model, which is trained using any of the above-mentioned model training methods; the prediction score determination module 720 is used to input the service behavior data into the behavior quality evaluation model to obtain a behavior quality prediction score; the threshold acquisition module 730 is used to acquire a preset quality evaluation grade, and a grade division threshold of the quality evaluation grade; the result determination module 740 is used to determine the evaluation grade result corresponding to the service behavior data based on the behavior quality prediction score, the grade division threshold and the quality evaluation grade.
[0156] In an exemplary embodiment of the present disclosure, the behavior quality evaluation device 700 also includes a threshold update module, which is used to: respond to the threshold update instruction, adjust the grade division threshold based on the threshold update instruction, and obtain an updated grade division threshold; determine the evaluation grade result corresponding to the newly added service behavior data according to the updated grade division threshold.
[0157] The specific details of the virtual modules of the above-mentioned model training devices and behavior quality evaluation devices have been described in detail in the corresponding model training methods and behavior quality evaluation methods. The undisclosed details can be found in the implementation method content of the method part, and will not be repeated here.
[0158] It should be noted that, although several modules or units of the model training device and the behavior quality evaluation device are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0159] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0160] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware embodiments, complete software embodiments (including firmware, microcode, etc.), or embodiments combining hardware and software aspects, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0161] The exemplary embodiments of the present disclosure also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the above-mentioned model training method and behavior quality evaluation method are implemented.
[0162] In one embodiment, the computer program product may be a tangible product containing a computer program, such as a computer-readable storage medium storing a computer program. The readable storage medium may be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid-state drive (SSD), and the like. Exemplarily, the computer program product may be implemented as a non-volatile storage medium storing a computer program, such as a read-only memory, a NAND flash memory, and the like.
[0163] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as a digital file storing an executable file, an installation package, etc. of the computer program.
[0164] The code of the computer program can be written in one or more programming languages. Programming languages such as C language, Java, C++, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., an Internet connection provided by an operator).
[0165] The computer program can be carried or transmitted by electrical, magnetic, optical, electromagnetic, infrared, or other signals. The electronic device can convert the signal carrying the computer program into a digital signal, thereby running the computer program. When the computer program runs on an electronic device, its code is used to enable the electronic device to execute (more specifically, the processor of the electronic device can execute) the method steps of various exemplary embodiments of the present disclosure, such as the above-mentioned model training method and behavior quality evaluation method.
[0166] The exemplary embodiments of the present disclosure also provide an electronic device, which may include a processor and a memory. The memory stores executable instructions of the processor, such as a computer program. The processor executes the method steps of various exemplary embodiments of the present disclosure by executing the executable instructions. In addition, the electronic device may also include a display for displaying a graphical user interface.
[0167] Reference below Figure 8 , the electronic device is exemplarily described in the form of a general-purpose computing device. It should be understood that Figure 8The electronic device 800 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0168] like Figure 8 As shown, the electronic device 800 may include: a processor 810 , a memory 820 , a bus 830 , an I / O (input / output) interface 840 , a network adapter 850 , and a display 860 .
[0169] The memory 820 may include a volatile memory, such as a RAM 821, a cache unit 822, and may also include a non-volatile memory, such as a ROM 823. The memory 820 may also include one or more program modules 824, such program modules 824 include but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. For example, the program module 824 may include each module in the above-mentioned device.
[0170] The processor 810 may include one or more processing units. For example, the processor 810 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc.
[0171] The processor 810 can be used to execute executable instructions stored in the memory 820, such as executing the above-mentioned model training method or behavior quality evaluation method. The bus 830 is used to realize the connection between different components of the electronic device 800, and can include a data bus, an address bus and a control bus.
[0172] The electronic device 800 can communicate with one or more external devices 900 (eg, a keyboard, a mouse, an external controller, etc.) through the I / O interface 840 .
[0173] The electronic device 800 can communicate with one or more networks through the network adapter 850. For example, the network adapter 850 can provide mobile communication solutions such as 3G / 4G / 5G, or wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. The network adapter 850 can communicate with other modules of the electronic device 800 through the bus 830. The electronic device 800 can display a graphical user interface through the display 860, such as an interface for displaying the evaluation level results of the service behavior data.
[0174] although Figure 8 Not shown, other hardware and / or software modules may also be provided in the electronic device 800, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
Claims
1. A model training method, characterized in that: include: Acquire historical service behavior data of business personnel, wherein the historical service behavior data includes a plurality of behavior characteristic data and a behavior quality score; Constructing a model input data set according to the behavior feature data and the behavior quality score; Acquire a pre-built initial model, wherein the initial model includes at least one base learner and a meta learner; Performing model training on the base learner based on the model input data set to obtain output results of the base learner, wherein the output results include a validation set output result and a test set output result; Based on the output results of the validation set and the output results of the test set, the meta-learner is trained to obtain a behavior quality evaluation model.
2. The method according to claim 1, characterized in that The step of constructing a model input data set according to the behavior feature data and the behavior quality score includes: Constructing a behavior quality evaluation sample set according to the behavior feature data and the behavior quality score, wherein the behavior quality evaluation sample set includes a plurality of behavior quality evaluation samples; Dividing the behavior quality evaluation sample set to obtain a training sample set and a test sample set; Performing standardization processing on the plurality of behavior quality evaluation samples to obtain a standardized feature data set; Performing feature selection processing on the feature data set to obtain model input features; The model input data set is constructed based on the model input features, the training sample set and the test sample set.
3. The method according to claim 2, characterized in that The performing feature selection processing on the feature data set to obtain model input features includes: Determine the output result category and the number of result categories corresponding to the feature data set; Determine the probability of a sample belonging to a category corresponding to each of the behavior quality evaluation samples in the feature data set; Calculating the Gini coefficient of the feature data set based on the number of result categories and the probability of the category to which the sample belongs; The feature data set is subjected to feature selection processing according to the Gini coefficient to obtain the model input feature.
4. The method according to claim 1, characterized in that: The performing model training on the base learner based on the model input data set to obtain the output result of the base learner includes: Determine a model training data set and a model test data set based on the model input data set; Dividing the model training data set into equal proportions to obtain k training data subsets, wherein the k training data subsets include a training data set and a validation data set; Based on the training data set and the verification data set, model training is performed on each base learner to obtain a verification set output result corresponding to each base learner; The test set output result of the base learner is determined according to the base learner prediction output results and the number of training times of the model test data set in multiple rounds.
5. The method according to claim 4, characterized in that The performing model training on each of the base learners based on the training data set and the verification data set to obtain the verification set output result corresponding to each of the base learners includes: Perform the following steps on each of the base learners one by one: Selecting k-1 training data subsets from the k training data subsets as the training data set, and using the remaining training data subsets as the verification data set; Performing model training on the base learner according to the training data set and the verification data set to obtain a single verification set output result of the base learner in this round of training; Based on the multiple single validation set output results, the validation set output result is generated.
6. The method according to claim 1, characterized in that The step of performing model training on the meta-learner based on the output result of the validation set and the output result of the test set to obtain a behavior quality evaluation model includes: Determining the weight of the base learner; Determining a weighted output result of the validation set based on the weight of the base learner and the output result of the validation set; Determining a weighted output result of the test set based on the weight of the base learner and the output result of the test set; Using the weighted output result of the validation set as the training set input data of the meta-learner, and performing model training on the meta-learner in combination with the behavior quality score; The weighted output result of the test set is used as the test set input data of the meta-learner to obtain the test set prediction result output by the meta-learner, so as to determine the behavior quality evaluation model according to the test set prediction result and the behavior quality score.
7. The method according to claim 6, characterized in that The determining the weight of the base learner comprises: Perform error analysis and comparison between the validation set output result and the behavior quality score to obtain an error evaluation index value, wherein the error evaluation index value includes one or more of root mean square error, mean absolute percentage error, mean absolute error and determination coefficient; Constructing an evaluation matrix of the base learners according to the error evaluation index value, wherein the evaluation matrix includes a plurality of the error evaluation index values corresponding to each of the base learners; Based on the evaluation matrix, respectively calculating the evaluation factor weights corresponding to the error evaluation index values; Determining the entropy value of the base learner according to the evaluation factor weight; Based on the entropy value of the base learner, a weight of the base learner is determined.
8. The method according to any one of claims 1 to 7, characterized in that: The behavior characteristic data is generated based on the service behavior characteristics, and the service behavior characteristics include one or more of the number of entries and exits of the electronic fence, the overlap rate of the planned path verification, the mileage difference verification, the operation quality compliance rate, the user satisfaction evaluation score and the number of times the time limit is exceeded.
9. A behavior quality evaluation method, characterized in that: include: Acquire service behavior data of business personnel and a pre-trained behavior quality evaluation model, wherein the behavior quality evaluation model is trained using the model training method described in any one of claims 1 to 8; Inputting the service behavior data into the behavior quality evaluation model to obtain a behavior quality prediction score; Obtaining a preset quality evaluation grade and a grade division threshold of the quality evaluation grade; The evaluation grade result corresponding to the service behavior data is determined according to the behavior quality prediction score, the grade division threshold and the quality evaluation grade.
10. The method according to claim 9, characterized in that The method further comprises: In response to the threshold update instruction, adjusting the level division threshold based on the threshold update instruction to obtain an updated level division threshold; According to the updated grade classification threshold, the evaluation grade result corresponding to the newly added service behavior data is determined.
11. A model training device, characterized in that: include: A sample data acquisition module is used to acquire historical service behavior data of business personnel, wherein the historical service behavior data includes a plurality of behavior feature data and behavior quality scores; A data set construction module, used to construct a model input data set according to the behavior feature data and the behavior quality score; An initial model acquisition module, used to acquire a pre-built initial model, wherein the initial model includes at least one base learner and a meta learner; A first model training module, used for performing model training on the base learner based on the model input data set to obtain an output result of the base learner, wherein the output result includes a validation set output result and a test set output result; The second model training module is used to perform model training on the meta-learner based on the verification set output result and the test set output result to obtain a behavior quality evaluation model.
12. A behavior quality evaluation device, characterized in that: include: A data acquisition module, used to acquire service behavior data of business personnel and a pre-trained behavior quality evaluation model, wherein the behavior quality evaluation model is trained using the model training method described in any one of claims 1 to 8; A prediction score determination module, used to input the service behavior data into the behavior quality evaluation model to obtain a behavior quality prediction score; A threshold acquisition module, used to acquire a preset quality evaluation grade and a grade division threshold of the quality evaluation grade; The result determination module is used to determine the evaluation grade result corresponding to the service behavior data according to the behavior quality prediction score, the grade division threshold and the quality evaluation grade.
13. An electronic device, characterized in that: include: processor; as well as A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the model training method as described in any one of claims 1 to 8, or implement the behavior quality evaluation method as described in claim 9 or 10.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the model training method as described in any one of claims 1 to 8, or implements the behavior quality evaluation method as described in claim 9 or 10.
Citation Information
Cited By
Indoor environment quality evaluation method and system based on quantitative model
CN119228217A
Detection model training method and device and service quality detection method and device
CN121309381A
