Model determination method and device applied to insurance policy data processing

Through adaptive upsampling and random forest models, a prediction model is constructed, which solves the problem of low efficiency in manual processing of policy data and improves the processing efficiency of policy renewal business.

CN118587018APending Publication Date: 2024-09-03PICC INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410621799.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In the existing technology, manual processing of policy data is time-consuming, labor-intensive, low in efficiency and accuracy, and it is difficult to efficiently process a large amount of policy data.

Method used

Process the original data set through adaptive upsampling, build a random forest model, and generate a prediction model to predict policy renewal and improve policy data processing efficiency.

Benefits of technology

It improves the processing efficiency of policy data and policy renewal business, and solves the problems of low manual processing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587018A
    Figure CN118587018A
Patent Text Reader

Abstract

The invention provides a model determination method and device applied to insurance policy data processing, and relates to the field of artificial intelligence. The method comprises the steps of obtaining an original data set; according to the actual label of each piece of sample data, performing adaptive up-sampling processing on the original data set to obtain N sub-data sets corresponding to the original data set; constructing a random forest model according to the N sub-data sets; and testing the random forest model to obtain a prediction model. According to the method, the processing efficiency of the insurance policy data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular to a model determination method and device for insurance policy data processing. Background Art

[0002] In the actual business of policy renewal, it is necessary to process the policy data corresponding to the processed policy business and predict the renewal intention of the customers of the policy business to improve the processing efficiency of the policy renewal business.

[0003] In the prior art, business personnel manually judge the acquired policy data based on their manual experience and screen out policy data with high renewal rates for use in policy renewal business processing.

[0004] However, the manual processing method mentioned above is time-consuming and labor-intensive, and has low efficiency and accuracy, making it difficult to efficiently process a large amount of insurance policy data. Summary of the invention

[0005] The present application provides a model determination method and device for insurance policy data processing, which is used to solve the technical problem that it is difficult to efficiently process a large amount of insurance policy data due to manual processing.

[0006] In a first aspect, the present application provides a model determination method for insurance policy data processing, the method comprising:

[0007] Acquire an original data set; wherein the original data set includes at least one sample data, the sample data represents the insurance policy data generated in the process of processing the insurance policy business at a historical moment; the sample data has an actual label, and the actual label represents whether the insurance policy business to which the actual sample data belongs is renewed;

[0008] According to the actual labels of each of the sample data, the original data set is adaptively upsampled to obtain N sub-data sets corresponding to the original data set; wherein the sub-data set includes F features of each sample data; the feature has a feature value, and the feature value represents the category corresponding to the feature; N and F are both positive integers greater than or equal to 1;

[0009] Constructing a random forest model based on the N sub-datasets; wherein the random forest model includes N decision trees;

[0010] The random forest model is tested and processed to obtain a prediction model; wherein the prediction model is used to process the data to be processed to obtain prediction information of the data to be processed; the data to be processed is the policy data generated in the process of processing the current policy business to be processed; the prediction information represents the renewal status of the policy business to which the predicted data to be processed belongs; the prediction information is used to process the policy renewal business.

[0011] In one example, according to the actual labels of each sample data, the original data set is adaptively upsampled to obtain N sub-data sets corresponding to the original data set, including:

[0012] According to the actual labels of each of the sample data, determine the majority class set and the minority class set corresponding to the original data set; wherein the majority class set includes at least one majority class sample, and the majority class sample is the sample data of the original data set whose actual label represents the renewal of the insurance policy business; the minority class set includes at least one minority class sample, and the minority class sample is the sample data of the original data set whose actual label represents the non-renewal of the insurance policy business;

[0013] Determine the first nearest neighbor sample of the minority class sample, and determine the boundary set and the safety set corresponding to the minority class set according to the first nearest neighbor sample of each of the minority class samples; wherein the first nearest neighbor sample is the sample data in the original data set with the closest Euclidean distance to the minority class sample; the boundary set includes at least one boundary sample, which is a minority class sample whose first nearest neighbor sample in the minority class set is a majority class sample; the safety set includes at least one safety sample, which is a minority class sample whose first nearest neighbor sample in the minority class set is a minority class sample;

[0014] Performing linear interpolation processing on the safety set to obtain a safety generation set corresponding to the safety set; wherein the safety generation set includes a safety generation sample corresponding to each of the safety samples, and the safety generation sample represents sample data of non-renewal of the policy business;

[0015] Performing interpolation processing on the boundary set to obtain a boundary generation set corresponding to the boundary set; wherein the boundary generation set includes a boundary generation sample corresponding to each boundary sample, and the boundary generation sample represents sample data of non-renewal of the policy business;

[0016] The majority class set, the minority class set, the safe generation set and the boundary generation set are sampled to obtain the N sub-datasets.

[0017] In one example, linear interpolation is performed on the safety set to obtain a safety generation set corresponding to the safety set, including:

[0018] Determine the second nearest neighbor sample of the safety sample; and determine the nearest neighbor distance of the safety sample; wherein the second nearest neighbor sample is the majority class sample in the majority class set whose Euclidean distance to the safety sample is the closest; the nearest neighbor distance is the distance between the safety sample and the second nearest neighbor sample of the safety sample;

[0019] Determine at least one target sample corresponding to the security sample according to the nearest neighbor distance of the security sample; wherein the target sample is other security samples in the security set that are in the local area corresponding to the security sample; the local area is a circular area with the security sample as the center and the nearest neighbor distance of the security sample as the radius;

[0020] According to at least one target sample corresponding to the security sample, linear interpolation processing is performed on the security sample to obtain a security generation sample corresponding to the security sample.

[0021] In one example, interpolation processing is performed on the boundary set to obtain a boundary generation set corresponding to the boundary set, including:

[0022] Determine the third nearest neighbor sample of the boundary sample; wherein the third nearest neighbor sample is the majority class sample in the majority class set whose Euclidean distance to the boundary sample is the shortest;

[0023] The boundary sample is calculated and processed according to the third nearest neighbor sample of the boundary sample to obtain a boundary generation sample corresponding to the boundary sample.

[0024] In one example, a random forest model is constructed based on the N sub-datasets, including:

[0025] Determine, according to the sub-dataset, a feature value set corresponding to each feature in the sub-dataset; wherein the feature value set includes each feature value corresponding to the feature in the sub-dataset;

[0026] A decision tree corresponding to the sub-dataset is constructed according to a feature value set corresponding to each feature in the sub-dataset; wherein the decision tree includes at least one node.

[0027] In one example, the node has classification dimension information; and constructing a decision tree corresponding to the sub-dataset according to a feature value set corresponding to each feature in the sub-dataset includes:

[0028] Based on the i-th node, according to the sub-dataset, determine the target data set corresponding to the i-th node; and determine the feature value set corresponding to each feature in the target data set corresponding to the i-th node; wherein i is a positive integer greater than or equal to 1;

[0029] Determine the optimal eigenvalue from each eigenvalue set corresponding to the i-th node;

[0030] Based on the i-th node, determine the optimal feature value corresponding to the target data set and the feature to which the optimal feature value corresponding to the target data set belongs, which is the classification dimension information of the i-th node;

[0031] According to the classification dimension information of the i-th node, the target data set corresponding to the i-th node is segmented to obtain the i+1-th node and the i+2-th node.

[0032] In one example, determining the optimal eigenvalue from each eigenvalue set corresponding to the i-th node includes:

[0033] For each feature value in the target data set, the target data set is divided according to the feature value to obtain a first subset and a second subset corresponding to the feature value; wherein the first subset includes sample data whose feature value in the target data set is consistent with the feature value; and the second subset includes sample data whose feature value in the target data set is inconsistent with the feature value;

[0034] Determine the Gini index of the target data set, and determine the Gini index of the first subset and the Gini index of the second subset; wherein the Gini index represents data distribution;

[0035] Determine the Gini index corresponding to the feature value according to the Gini index of the first subset, the Gini index of the second subset, and the Gini index in the target data set;

[0036] Determine the eigenvalue with the smallest Gini index in the target data set as the optimal eigenvalue.

[0037] In one example, the method further includes:

[0038] The missing value filling process is performed on the sample data in the original data set to obtain a processed original data set.

[0039] In a second aspect, the present application provides a method for processing insurance policy data, the method comprising:

[0040] Acquire at least one data to be processed; wherein the data to be processed is the insurance policy data generated in the process of processing the insurance policy business to be processed; the data to be processed has at least one feature, the feature has a feature value, and the feature value represents the category corresponding to the feature;

[0041] Calling a preset prediction model; wherein the prediction model includes at least one decision tree;

[0042] Based on the prediction model, the data to be processed is processed according to various characteristics of the data to be processed to obtain prediction information of the data to be processed; wherein the prediction information represents the renewal status of the insurance policy business to which the data to be processed belongs; the prediction information is used to process the insurance policy renewal business;

[0043] Wherein, the prediction model is obtained by training based on the method described in the first aspect.

[0044] In one example, the prediction information includes a prediction probability and a prediction label; the prediction probability represents the renewal probability of the insurance policy business to which the data to be processed belongs, and the prediction label represents whether the insurance policy business to which the data to be processed belongs is renewed;

[0045] Based on the prediction model, the data to be processed is processed according to various features of the data to be processed to obtain prediction information of the data to be processed, including:

[0046] Based on the decision tree, the data to be processed is classified according to various features of the data to be processed to obtain a classification result corresponding to the decision tree; wherein the classification result represents the predicted probability of renewal of the insurance policy business to which the data to be processed belongs;

[0047] According to each of the classification results, prediction information of the data to be processed is determined.

[0048] In one example, the decision tree includes at least one node, and the node has classification dimension information; based on the decision tree, the data to be processed is classified according to various features of the data to be processed to obtain a classification result corresponding to the decision tree, including:

[0049] Based on each of the nodes, the data to be processed is classified according to the feature value of each feature of the data to be processed to obtain a classification result of the data to be processed.

[0050] In one example, the method further includes:

[0051] Monitoring the actual label of the data to be processed; wherein the actual label represents the renewal status of the insurance policy business to which the data to be processed actually belongs;

[0052] Determining the stability index of the prediction model according to the actual label and the predicted label of each of the data to be processed; wherein the stability index represents the prediction stability of the prediction model;

[0053] According to the stability index of the prediction model, the prediction model is optimized to obtain an optimized prediction model.

[0054] In a third aspect, the present application provides a model determination device for insurance policy data processing, the device comprising:

[0055] An acquisition module is used to acquire an original data set; wherein the original data set includes at least one sample data, and the sample data represents the insurance policy data generated in the process of processing the insurance policy business at a historical moment; the sample data has an actual label, and the actual label represents whether the insurance policy business to which the actual sample data belongs is renewed;

[0056] A processing module, configured to perform adaptive upsampling processing on the original data set according to the actual labels of each sample data, to obtain N sub-data sets corresponding to the original data set; wherein the sub-data sets include F features of each sample data; the feature has a feature value, and the feature value represents the category corresponding to the feature; N and F are both positive integers greater than or equal to 1;

[0057] A construction module, used to construct a random forest model according to the N sub-datasets; wherein the random forest model includes N decision trees;

[0058] A test module is used to test the random forest model to obtain a prediction model; wherein the prediction model is used to process the data to be processed to obtain prediction information of the data to be processed; the data to be processed is the policy data generated in the process of processing the current policy business to be processed; the prediction information represents the renewal status of the policy business to which the predicted data to be processed belongs; the prediction information is used to process the policy renewal business.

[0059] In a fourth aspect, the present application provides a processing device, the device comprising:

[0060] An acquisition module is used to acquire at least one data to be processed; wherein the data to be processed is the insurance policy data generated in the process of processing the insurance policy business to be processed; the data to be processed has at least one feature, the feature has a feature value, and the feature value represents the category corresponding to the feature;

[0061] A calling module, used to call a preset prediction model; wherein the prediction model includes at least one decision tree;

[0062] A processing module, used to process the data to be processed based on the prediction model and according to various features of the data to be processed to obtain prediction information of the data to be processed; wherein the prediction information represents the renewal status of the insurance policy business to which the data to be processed belongs; and the prediction information is used to process the insurance policy renewal business;

[0063] Wherein, the prediction model is obtained by training based on the device described in the fourth aspect.

[0064] In a fifth aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0065] The memory stores computer-executable instructions;

[0066] The processor executes the computer-executable instructions stored in the memory to implement the method described in the first aspect or the second aspect.

[0067] In a sixth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect or the second aspect.

[0068] In a seventh aspect, the present application provides a computer program product, comprising: a computer program, wherein the computer program is used to implement the method described in the first aspect or the second aspect when executed by a processor.

[0069] The model determination method and device provided in the present application for processing insurance policy data perform adaptive upsampling processing on the original data set according to whether the insurance policy business to which the actual sample data in the original data set belongs is renewed, thereby obtaining N sub-data sets for building and testing the random forest model, and then obtaining a prediction model to process the insurance policy data to be processed, and predict the renewal status of the corresponding insurance policy business for processing the insurance policy renewal business; thereby, the processing efficiency of the insurance policy data and the insurance policy renewal business can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0071] Figure 1 A schematic diagram of an application scenario provided for this application;

[0072] Figure 2 A flow chart of a model determination method for insurance policy data processing provided in an embodiment of the present application;

[0073] Figure 3 A schematic diagram of a random forest modeling process provided in an embodiment of the present application;

[0074] Figure 4 A flow chart of another model determination method for insurance policy data processing provided in an embodiment of the present application;

[0075] Figure 5 A schematic diagram of a local area provided in an embodiment of the present application;

[0076] Figure 6 A flowchart of a method for processing insurance policy data provided in an embodiment of the present application;

[0077] Figure 7 A flowchart of another insurance policy data processing method provided in an embodiment of the present application;

[0078] Figure 8 A schematic diagram of the structure of a model determination device for insurance policy data processing provided in an embodiment of the present application;

[0079] Fig. 9 A schematic diagram of the structure of a policy data processing device provided in an embodiment of the present application;

[0080] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0081] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0082] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0083] First, the terms involved in this application are explained:

[0084] Adaptive upsampling: This method can adaptively upsample based on the minority sample category, while avoiding the generation of noise samples and generating minority samples that are helpful for prediction.

[0085] Random forest: It is a parallel ensemble learning method. It uses decision trees as the base learner and builds a model by integrating multiple decision trees in parallel. Its randomness lies in the use of random data and random feature sets when constructing decision trees, integrating multiple decision trees in parallel to form a forest, and finally integrating the prediction results of multiple decision trees into the final result.

[0086] AUC (Area Under Curve): It is defined as the area under the ROC curve and the coordinate axis. It is an indicator for evaluating the performance of classification models. It is more stable and reliable than indicators such as accuracy on unbalanced data.

[0087] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0088] In addition, this application involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.), and the use of artificial intelligence technology for automated decision-making, and a technical solution for making decisions that have a significant impact on personal rights and interests based on the results of automated decision-making. The application provides users with corresponding operation entrances for them to choose to agree or reject the results of automated decision-making; if the user chooses to reject, the expert decision-making process will be entered.

[0089] It should be noted that the model determination method and device applied to insurance policy data processing in the present application can be used in the field of artificial intelligence, and can also be used in any field other than artificial intelligence. The application field of the model determination method and device applied to insurance policy data processing in the present application is not limited.

[0090] In the actual business of policy renewal, it is necessary to process the policy data corresponding to the processed policy business and predict the renewal intention of the customers of the policy business to improve the processing efficiency of the policy renewal business.

[0091] In one example, business personnel make manual judgments on the obtained policy data based on their experience and screen out policy data with high renewal rates for use in policy renewal business processing.

[0092] However, the manual processing method mentioned above is time-consuming and labor-intensive, and has low efficiency and accuracy, making it difficult to efficiently process a large amount of insurance policy data.

[0093] In another example, algorithm researchers used machine learning models to explore the potential functional relationship between policy features and renewal labels, in order to achieve automated renewal predictions for massive policy data. Models such as logistic regression and support vector machines find an optimal decision surface in the data space to achieve classification.

[0094] However, in the above method, on the one hand, due to the imbalance of historical positive and negative samples, the prediction results of the artificial intelligence algorithm will be biased towards the renewal category with a larger sample size; on the other hand, the current data rebalancing method has problems such as generating noise samples and unrepresentative samples, which leads to inaccurate predictions and makes it difficult to efficiently process large amounts of policy data.

[0095] In response to the above technical problems, the present application proposes the following technical ideas: first, based on whether the policy business to which the actual sample data in the original data set belongs is renewed, the original data set is adaptively upsampled, and then N sub-data sets are obtained to build and test the random forest model, and then a prediction model is obtained to process the policy data to be processed, and the renewal of the corresponding policy business is predicted for processing the policy renewal business. In this way, the problem of the difficulty in efficiently processing a large amount of policy data existing in the prior art can be solved.

[0096] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0097] Figure 1 A schematic diagram of an application scenario provided by this application. Figure 1 As shown, the specific application scenario of the present application includes an electronic device 101 and a user 102. The electronic device 101 processes the obtained original data set, and constructs and tests a random forest model to obtain a prediction model; through the prediction model, the current to-be-processed insurance policy data of the user 102 is processed, and the renewal status of the corresponding insurance policy business is predicted, so that the user 102 can process the insurance policy renewal business.

[0098] Figure 2 A flow chart of a model determination method for insurance policy data processing provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:

[0099] 201. Obtain an original data set; wherein the sample data represents the insurance policy data generated in the process of processing insurance policy business at a historical moment; the sample data has an actual label, and the actual label represents whether the insurance policy business to which the actual sample data belongs is renewed.

[0100] Exemplarily, the execution subject of this embodiment may be an electronic device, hereinafter referred to as a device, and the device may be a physical device or a virtual device used to determine a model applied to policy data processing.

[0101] The device obtains the original data set from the database, which includes the policy data generated in the process of processing the policy business at one or more historical moments, that is, one or more sample data, such as the historical policy data fused with the characteristics of the policyholder and the salesperson dimension. Among them, each sample data obtained has an actual label to indicate whether the policy business to which the actual sample data belongs is renewed; the renewal date field can be used to construct the renewal field as the target feature to identify the actual label of the sample data. All sample data have the target field, and the target field is whether it is renewed. For a sample data, if the sample data has a renewal date, the sample data is identified as renewed, represented by 1, and if the sample data does not have a renewal date, the sample data is represented as non-renewal, represented by 0.

[0102] 202. According to the actual labels of each sample data, the original data set is adaptively upsampled to obtain N sub-datasets corresponding to the original data set; wherein the sub-datasets include F features of each sample data; the feature has a feature value, and the feature value represents the category of the feature; N and F are both positive integers greater than or equal to 1.

[0103] Exemplarily, the device adaptively upsamples each sample data in the original data set according to the actual label of each sample data in the original data set to obtain a processed original data set, and the positive and negative samples in the processed original data set are roughly balanced. The device then divides the processed original data set to obtain N sub-data sets corresponding to the processed original data set; wherein each sub-data set includes F features of each sample data, each feature has a feature value, and each feature value represents the category of the feature, such as the gender feature is male or female, and N and F are both positive integers greater than or equal to 1; for example, the data set T is divided into a training set Ttrain and a test set Ttest according to a certain ratio, and the sample size in Ttrain is set to M, and N sub-data sets are obtained, each sub-data set randomly selects M samples from the training set with replacement, and for each different subset, F columns of features are randomly selected from all features, so the final data set obtained is X∈R N ×M×F .

[0104] 203. Construct a random forest model based on the N sub-datasets; wherein the random forest model includes N decision trees.

[0105] Exemplarily, based on the obtained N sub-datasets, for each sub-dataset and according to the F features of each sample data in the sub-dataset, the device can construct a decision tree corresponding to the sub-dataset based on a preset model building method, and then construct N decision trees, that is, a random forest model.

[0106] 204. Test and process the random forest model to obtain a prediction model; wherein the prediction model is used to process the data to be processed to obtain prediction information of the data to be processed; the data to be processed is the policy data generated in the process of processing the current policy business to be processed; the prediction information represents the renewal status of the policy business to which the predicted data to be processed belongs; the prediction information is used to process the policy renewal business.

[0107] Exemplarily, the device determines a test set from the acquired original data set, and tests the constructed random forest model based on the test set, for example, Figure 3 A schematic diagram of a random forest modeling process provided in an embodiment of the present application, such as Figure 3 As shown, according to each predicted value and corresponding label value obtained by the random forest model, the accuracy, recall rate and AUC value are calculated to evaluate the performance of the random forest model; in order to further test the generalization performance of the model, sample data outside the time interval of the training set and the test set in the historical data are also used and input into the model to test whether the model can maintain stable and accurate prediction performance; then, a prediction model is obtained, which can be used to process the policy data generated in the current process of processing the policy business, that is, the data to be processed, so as to obtain accurate prediction information of the data to be processed, that is, the predicted renewal status of the policy business to which the data to be processed belongs; then, the user can use the obtained prediction information to process the policy renewal business.

[0108] In this embodiment, a model determination method for processing insurance policy data is provided, which performs adaptive upsampling on the original data set according to whether the insurance policy business to which the actual sample data in the original data set belongs is renewed, thereby obtaining N sub-data sets for building and testing a random forest model, and then obtaining a prediction model to process the insurance policy data to be processed, and predict the renewal status of the corresponding insurance policy business for processing the insurance policy renewal business; thereby, the processing efficiency of the insurance policy data and the insurance policy renewal business can be improved.

[0109] Figure 4 A flow chart of another model determination method for insurance policy data processing provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method includes:

[0110] 301. Obtain an original data set; wherein the original data set includes at least one sample data, the sample data represents the insurance policy data generated in the process of processing insurance policy business at a historical moment; the sample data has an actual label, and the actual label represents whether the insurance policy business to which the actual sample data belongs is renewed.

[0111] Exemplarily, this step may refer to step 201 and will not be described in detail here.

[0112] In one example, the method further includes: performing missing value filling processing on sample data in the original data set to obtain a processed original data set.

[0113] Exemplarily, for the fields contained in the sample data in the original data set, the missing values ​​of the sample data in the original data set are filled according to the numerical fields and the category fields, respectively, to obtain a processed original data set, so as to improve the data quality of the sample data of the original data set, and further improve the prediction accuracy of the prediction model obtained based on the original data set.

[0114] 302. Determine the majority class set and the minority class set corresponding to the original data set based on the actual label of each sample data; wherein the majority class set includes at least one majority class sample, and the majority class sample is the sample data whose actual label in the original data set represents the renewal of the insurance policy business; the minority class set includes at least one minority class sample, and the minority class sample is the sample data whose actual label in the original data set represents the non-renewal of the insurance policy business.

[0115] Exemplarily, the device divides and processes the original data set according to the actual label of each sample data, that is, whether the corresponding policy business is renewed, that is, the sample data in the original data set whose actual label represents the renewal of the policy business is determined as the majority class sample, and a majority class set including one or more majority class samples is obtained; the sample data in the original data set whose actual label represents the non-renewal of the policy business is determined as the minority class sample, and a minority class set including one or more minority class samples is obtained for processing.

[0116] 303. Determine the first nearest neighbor sample of the minority class sample, and determine the boundary set and the safety set corresponding to the minority class set based on the first nearest neighbor sample of each minority class sample; wherein the first nearest neighbor sample is the sample data in the original data set that has the closest Euclidean distance to the minority class sample; the boundary set includes at least one boundary sample, which is a minority class sample whose first nearest neighbor sample in the minority class set is a majority class sample; the safety set includes at least one safety sample, which is a minority class sample whose first nearest neighbor sample in the minority class set is a minority class sample.

[0117] Exemplarily, for each minority class sample, the device determines the Euclidean distance between each sample data in the original data set and the minority class sample, and determines the sample data with the closest Euclidean distance to the minority class sample as the nearest neighbor sample of the minority class sample, that is, the first nearest neighbor sample. Based on the first nearest neighbor samples of each minority class sample obtained, for each minority class sample, if the first nearest neighbor sample of the minority class sample is determined to be a majority class sample, the minority class sample is determined to be a boundary sample, that is, a boundary set including one or more boundary samples is obtained; if the first nearest neighbor sample of the minority class sample is determined to be a minority class sample, the minority class sample is determined to be a safe sample, that is, a safe set including one or more safe samples is obtained.

[0118] For example, for a historical policy data set, let the data set be T, where the majority class is renewal and the minority class is non-renewal. Let the majority class be T major ∈T, the minority class is set to T minor ∈T. For x p ∈T,x q ∈T,x p and x q The distance between them is denoted as d(x p ,x q ). In the entire sample set, x p The nearest neighbor of is set to x nn ; For minority samples, according to their own properties, they can be divided into boundary minority samples, i.e., boundary samples, and safe minority samples, i.e., safe samples; if the nearest neighbor x of the minority sample x nn If x is a majority class sample, then x is a borderline minority class sample. If x’s nearest neighbor is also a minority class sample, then x is a safe minority class sample.

[0119] 304. Perform linear interpolation processing on the safety set to obtain a safety generation set corresponding to the safety set; wherein the safety generation set includes a safety generation sample corresponding to each safety sample, and the safety generation sample represents sample data of non-renewal of the policy business.

[0120] Exemplarily, for the boundary minority class and the safety minority class, the device adopts different sample generation strategies. When using safety samples to generate samples, linear interpolation is performed on the safety set to obtain a safety generation set corresponding to the safety set. The safety generation set includes safety generation samples corresponding to each safety sample, and each safety generation sample represents sample data of non-renewal of the policy business; and then interpolation is used to make the generated samples cover the area where the minority class is located as much as possible.

[0121] In one example, step 304 includes the following steps:

[0122] The first step of step 304: Determine the second nearest neighbor sample of the safe sample; and determine the nearest neighbor distance of the safe sample; wherein, the second nearest neighbor sample is the majority class sample with the closest Euclidean distance to the safe sample in the majority class set; the nearest neighbor distance is the distance between the safe sample and its second nearest neighbor sample.

[0123] The second step of step 304: Determine at least one target sample corresponding to the safe sample according to the nearest neighbor distance of the safe sample; wherein, the target sample is another safe sample within the local area corresponding to the safe sample in the safe set; the local area is a circular area centered on the safe sample with the nearest neighbor distance of the safe sample as the radius.

[0124] The third step of step 304: Perform linear interpolation processing on the safe sample according to at least one target sample corresponding to the safe sample to obtain a safe generated sample corresponding to the safe sample.

[0125] Exemplarily, for the safe sample x, it is necessary to find the nearest majority sample of x, that is, the second nearest neighbor sample, and determine the majority class sample with the closest Euclidean distance to the safe sample x in the majority class set as the second nearest neighbor sample of the safe sample, and determine the distance between the safe sample x and its second nearest neighbor sample, that is, the nearest neighbor distance; determine the circular area centered on the safe sample with the nearest neighbor distance of the safe sample as the radius as the local area. Figure 5 A schematic diagram of a local area provided by an embodiment of the present application is as Figure 5 shown. The area within the dashed box is the local area corresponding to the safe sample x. Determine other safe samples within the local area corresponding to the safe sample in the safe set as the target samples corresponding to the safe sample, and then obtain one or more target samples corresponding to each safe sample; perform linear interpolation processing on each safe sample according to one or more target samples corresponding to each safe sample to obtain a safe generated sample corresponding to each safe sample, and then obtain a safe generated set.

[0126] For example, generate samples using safe minority class samples. Traverse each safe minority sample x safe in the safe set T i . First, it is necessary to find the local area of x i . We define this area as LSR. According to the formula LSR(x i , T safe , Rad) = {x safe ∈ T safe , d(x i , x safe ) < Rad}, calculate the local safe area LSR(x i , Tsafe ,Rad), where Rad represents x i The distance between it and the nearest majority class sample, d(x i ,x safe ) represents x i and x safe The Euclidean distance between them, traversing each security sample x in the security set safe , find the i is the center of the circle, Rad is all the safe samples within the radius, and all the safe samples constitute x i The local area LSR, at x i A random x is selected in the local region LSR safe , through the formula Calculate the generated samples Among them, x i is a safe sample at the center of the local area, x safe is a random safety sample in the local area, gap is a random number in the range of (0,1). The purpose of this formula is to i and x safe Linear interpolation is performed between the two to generate samples Traverse all the safe minority samples and generate Add to safe build collection

[0127] 305. Perform interpolation processing on the boundary set to obtain a boundary generation set corresponding to the boundary set; wherein the boundary generation set includes a boundary generation sample corresponding to each boundary sample, and the boundary generation sample represents sample data of non-renewal of the policy business.

[0128] Exemplarily, when boundary samples are used to generate samples, the boundary set is interpolated based on a Gaussian process to obtain a boundary generation set corresponding to the boundary set, wherein the boundary generation set includes boundary generation samples corresponding to each boundary sample, and each boundary generation sample represents sample data of non-renewal of policy business; and the goal of using boundary samples to generate samples is to expand the boundary of the area where the minority class is located.

[0129] In one example, step 305 includes the following steps:

[0130] The first step of step 305 is to determine the third nearest neighbor sample of the boundary sample; wherein the third nearest neighbor sample is the majority class sample in the majority class set whose Euclidean distance to the boundary sample is the shortest.

[0131] The second step of step 305 is to perform calculation processing on the boundary sample according to the third nearest neighbor sample of the boundary sample to obtain the boundary generation sample corresponding to the boundary sample.

[0132] Exemplarily, for each boundary sample, the device determines the majority class sample in the majority class set with the closest Euclidean distance to the boundary sample as the nearest majority class sample of the boundary sample, that is, the third nearest neighbor sample. After determining the nearest majority class sample of the boundary sample, the device performs calculation processing on the boundary sample according to the third nearest neighbor sample of the boundary sample, such as when the boundary sample and the third nearest neighbor sample x of the boundary sample are near The samples are generated by linear interpolation, and the interpolation position should be as biased towards x as possible based on the Gaussian process. near , and obtain the boundary generation sample corresponding to the boundary sample, that is, obtain the boundary generation set.

[0133] For example, traversing the bounding set T boundary For each boundary sample x j , according to the calculation method of generating minority samples, such as formula in, Indicates based on x j The generated minority samples, A represents Obey the mathematical expectation x j +gap*(x nn -x j ), with variance σ 2 Normal distribution, gap represents a random number in the range of (0,1), x nn Represents x j The nearest majority class sample, σ is calculated by the formula To calculate, where |T minor | represents the number of samples in the minority sample set, Indicates traversing each sample x of the minority class j , calculate x j and the minority class mean x mean The square of the difference is then summed; traverse all boundary samples and generate each Add to Boundary Generation Collection

[0134] 306. Sampling is performed on the majority class set, the minority class set, the safe generation set, and the boundary generation set to obtain N sub-datasets.

[0135] Exemplarily, after obtaining the majority class set, the minority class set, the safe generation set and the boundary generation set, the device performs sampling and division processing on the sample data included in the majority class set, the minority class set, the safe generation set and the boundary generation set based on a preset sampling method to obtain N sub-data sets.

[0136] 307. Determine, according to the sub-dataset, a feature value set corresponding to each feature in the sub-dataset; wherein the feature value set includes each feature value corresponding to the feature in the sub-dataset.

[0137] Exemplarily, for each sub-dataset, the device determines the feature values ​​corresponding to each feature in the sub-dataset based on the feature value of each feature in the sub-dataset. For example, if the gender feature has two categories, male and female, the feature set of the gender feature includes two feature values.

[0138] 308. Construct a decision tree corresponding to the sub-dataset according to the feature value set corresponding to each feature in the sub-dataset; wherein the decision tree includes at least one node.

[0139] Exemplarily, for each sub-dataset, the device segments the sub-dataset according to the feature value set corresponding to each feature in the sub-dataset, using each feature and the possible values ​​of each feature to obtain each node in the decision tree corresponding to the sub-dataset, and then constructs the decision tree corresponding to the sub-dataset; wherein each initial decision tree includes a node corresponding to each feature.

[0140] In one example, the node has classification dimension information; step 308 includes the following steps:

[0141] The first step of step 308 is to determine the target data set corresponding to the i-th node based on the i-th node and the sub-data set; and determine the feature value set corresponding to each feature in the target data set corresponding to the i-th node; wherein i is a positive integer greater than or equal to 1.

[0142] The second step of step 308 is to determine the optimal eigenvalue from each eigenvalue set corresponding to the i-th node.

[0143] The third step of step 308 is to determine the optimal feature value corresponding to the target data set and the feature to which the optimal feature value corresponding to the target data set belongs based on the i-th node, which is the classification dimension information of the i-th node.

[0144] The fourth step of step 308 is to segment the target data set corresponding to the i-th node according to the classification dimension information of the i-th node to obtain the i+1-th node and the i+2-th node.

[0145] Exemplarily, each node has classification dimension information, i.e., a division condition; for the i-th node of each decision tree, the device determines the target data set corresponding to the i-th node based on the i-th node and the sub-data set corresponding to the decision tree, and the target data set of the first node is the sub-data set; and determines the feature value set corresponding to each feature in the target data set corresponding to the i-th node, where i is a positive integer greater than or equal to 1. For the i-th node of each decision tree, the device determines the optimal feature value from the feature value sets corresponding to the i-th node, and based on the i-th node, determines the optimal feature value corresponding to the target data set and the feature to which the optimal feature value corresponding to the target data set belongs, which is the classification dimension information of the i-th node, that is, the construction of the node is actually to select the best feature and feature value. The best feature value can make the divided subsets belong to one category as much as possible, and then according to the classification dimension information of the i-th node, the target data set corresponding to the i-th node is segmented to obtain the i+1-th node and the i+2-th node. Through the i+1-th node, the optimal feature value of the target data set of the i+1-th node is determined as the classification dimension information of the i+1-th node, and the construction of the i+1-th node is completed; and so on, the construction of each node in each decision tree is completed.

[0146] In one example, the second step of step 308 includes:

[0147] Step 1: For the eigenvalue of each feature in the target data set, the target data set is divided according to the eigenvalue to obtain a first subset and a second subset corresponding to the eigenvalue; wherein the first subset includes sample data whose eigenvalue is consistent with the eigenvalue in the target data set; and the second subset includes sample data whose eigenvalue is inconsistent with the eigenvalue in the target data set.

[0148] Step 2: determine the Gini index of the target data set, and determine the Gini index of the first subset and the Gini index of the second subset; wherein the Gini index represents the data distribution.

[0149] Step 3: Determine the Gini index corresponding to the eigenvalue according to the Gini index of the first subset, the Gini index of the second subset, and the Gini index in the target data set.

[0150] Step 4: Determine the eigenvalue with the smallest Gini index in the target data set as the optimal eigenvalue.

[0151] Specifically, for each decision tree, when determining the optimal eigenvalue of the target data set of the i-th node in the decision tree, the device introduces the Gini index to select the best eigenvalue, and the Gini index characterizes the data distribution; for the eigenvalue corresponding to each feature in the target data set, the target data set is divided according to the eigenvalue, and the sample data whose eigenvalue in the target data set is consistent with the eigenvalue is determined as the sample data in the first subset corresponding to the eigenvalue, and the sample data whose eigenvalue in the target data set is inconsistent with the eigenvalue is determined as the sample data in the second subset corresponding to the eigenvalue; the target data set is determined The Gini index of the first subset corresponding to the eigenvalue and the Gini index of the second subset corresponding to the eigenvalue are determined; according to the Gini index of the first subset corresponding to the eigenvalue, the Gini index of the second subset corresponding to the eigenvalue and the Gini index in the target data set, the Gini index of the first subset corresponding to the eigenvalue, the Gini index of the second subset corresponding to the eigenvalue and the Gini index in the target data set are calculated to determine the Gini index corresponding to the eigenvalue; according to the Gini indexes corresponding to the eigenvalues ​​in the target data set, the eigenvalue with the smallest Gini index is determined as the optimal eigenvalue of the target data set.

[0152] For example, we train the first decision tree using X1∈X, starting from the first node, the root node, and segmenting the data set using each feature and the possible value of each feature. For each feature f and its possible feature value f i , calculate their Gini index respectively, and select the eigenvalue with the smallest Gini index as the optimal feature. For a given target data set X, according to the calculation formula Get the Gini index of the target data set X, where K represents the number of eigenvalues ​​of each feature, that is, the number of feature categories, |C k | represents the number of sample data whose eigenvalue in X belongs to the kth eigenvalue, and |X| represents the total number of sample data in the target data set X. When the data set X1 passes the condition f=f1, that is, the feature f is divided into eigenvalue f1, the data set is divided into X 11 (satisfying f=f1) and X 12 (satisfying f≠f1), according to the formula Get the Gini index of the feature value f1, where |X1| represents the sample size in the training set, |X 11 | represents the sample size of the data set that meets the conditions, |X 12 | represents the number of data sets that do not meet the conditions. Gini(X 11 ) indicates X 11 The Gini index, Gini(X 12 ) indicates X 12The Gini index is obtained by traversing all the features and eigenvalues, selecting the eigenvalue with the smallest Gini coefficient for splitting the data set, dividing the root node into two child nodes, that is, determining the feature f as the eigenvalue f1 as the division condition of the root node, and completing the construction of the first node, that is, the root node; repeating the above process until all the nodes are samples of the same type, or the height of the tree reaches the set maximum height of 15, that is, the construction of a decision tree is completed, and repeatedly constructing multiple decision trees until the number of decision trees meets the set maximum number of 50, that is, the random forest modeling is completed.

[0153] 309. The random forest model is tested and processed to obtain a prediction model; wherein the prediction model is used to process the data to be processed to obtain prediction information of the data to be processed; the data to be processed is the policy data generated in the process of processing the current policy business to be processed; the prediction information represents the renewal status of the policy business to which the predicted data to be processed belongs; the prediction information is used to process the policy renewal business.

[0154] Exemplarily, this step may refer to step 204 and will not be described in detail here.

[0155] In this embodiment, based on the above embodiments, on the one hand, the adaptive upsampling random forest method can adaptively generate effective minority class samples, and the generated sample pairs can help the model better learn the decision boundary, and the model has higher classification performance for unbalanced data; on the other hand, the data rebalancing method based on adaptive upsampling solves the problems of historical information loss, noise sample introduction, and unrepresentative generated samples in traditional data rebalancing methods.

[0156] Figure 6 A flowchart of a method for processing insurance policy data provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the method includes:

[0157] 401. Obtain at least one data to be processed; wherein the data to be processed is insurance policy data generated during the current insurance policy processing business process; the data to be processed has at least one feature, the feature has a feature value, and the feature value represents the category corresponding to the feature.

[0158] Exemplarily, based on the user's input operation, the device obtains one or more data to be processed input by the user, and the data to be processed is the insurance policy data generated in the process of processing the current insurance policy business, such as insurance policy data integrating the characteristics of the insured and the salesperson dimensions, etc.; each data to be processed has at least one feature, such as customer gender characteristics, customer behavior characteristics, etc., wherein each feature has a feature value to characterize the category corresponding to the feature, such as the customer gender feature is male.

[0159] 402. Call a preset prediction model; wherein the prediction model includes at least one decision tree.

[0160] Exemplarily, the device calls a preset prediction model, which includes at least one decision tree, and the prediction model is obtained by training a random forest model based on a model determination method applied to insurance policy data processing.

[0161] 403. Based on the prediction model, the data to be processed is processed according to various characteristics of the data to be processed to obtain prediction information of the data to be processed; wherein the prediction information represents the renewal status of the insurance policy business to which the predicted data to be processed belongs; the prediction information is used to process the insurance policy renewal business; wherein the prediction model is obtained by training based on the model determination method applied to insurance policy data processing.

[0162] Exemplarily, the device inputs each acquired data to be processed into the prediction model, processes the data to be processed according to the characteristics of each data to be processed, and outputs prediction information of the data to be processed; wherein the prediction information represents the predicted renewal status of the insurance policy business to which the data to be processed belongs; and the user can process the corresponding insurance policy renewal business based on the prediction information.

[0163] In this embodiment, a method for processing insurance policy data is provided, which processes the insurance policy data to be processed according to the prediction model, predicts the renewal status of the corresponding insurance policy business, and is used to process the insurance policy renewal business; thereby, the processing efficiency of the insurance policy data and the insurance policy renewal business can be improved.

[0164] Figure 7 A flowchart of another insurance policy data processing method provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the method includes:

[0165] 501. Obtain at least one data to be processed; wherein the data to be processed is insurance policy data generated during the current insurance policy processing business process; the data to be processed has at least one feature, the feature has a feature value, and the feature value represents the category corresponding to the feature.

[0166] Exemplarily, this step refers to step 401 and will not be described in detail here.

[0167] 502. Call a preset prediction model; wherein the prediction model includes at least one decision tree.

[0168] Exemplarily, this step refers to step 402 and will not be described in detail here.

[0169] 503. Based on the decision tree, the data to be processed is classified according to various features of the data to be processed to obtain a classification result corresponding to the decision tree; wherein the classification result represents the predicted probability of renewal of the insurance policy business to which the data to be processed belongs.

[0170] In one example, the prediction information includes a prediction probability and a prediction label; the prediction probability represents the renewal probability of the insurance policy business to which the predicted data to be processed belongs, and the prediction label represents whether the insurance policy business to which the predicted data to be processed belongs is renewed.

[0171] Exemplarily, for the prediction information of each data to be processed, the prediction information includes a prediction probability and a prediction label; the prediction probability represents the predicted renewal probability of the insurance policy business to which each data to be processed belongs, and the prediction label represents whether the predicted insurance policy business to which each data to be processed belongs is renewed; the device classifies each data to be processed based on each decision tree in the called prediction model and according to each feature of each data to be processed, to obtain a classification result for each data to be processed; wherein the classification result of each data to be processed represents the predicted renewal probability of the insurance policy business to which each data to be processed belongs.

[0172] In one example, the decision tree includes at least one node, and the node has classification dimension information; step 503 includes: based on each node, according to the feature value of each feature of the data to be processed, classifying the data to be processed to obtain the classification result of the data to be processed.

[0173] Exemplarily, each decision tree in the prediction model called by the device includes at least one node, and each node has classification dimension information, that is, a division condition; for each data to be processed, the device divides the data to be processed according to each node, based on the classification dimension information of each node, and according to whether the characteristic values ​​of each feature of the data to be processed meet the conditions corresponding to the classification dimension information, and then, according to the division processing of all nodes, the classification result of the data to be processed output by each decision tree is obtained.

[0174] 504. Determine prediction information of the data to be processed according to each classification result.

[0175] Exemplarily, for each data to be processed, voting is performed according to the classification results of the data to be processed output by each decision tree, and the renewal probability corresponding to the classification result with the largest number of classification results is selected as the final renewal probability of the data to be processed; the renewal probability is compared with the preset probability, such as if the probability value is >0.5, the sample is predicted to be renewed; if the probability value is <0.5, the sample is predicted to be non-renewed; the predicted probability is the renewal rate, that is, the prediction information of the data to be processed is obtained.

[0176] 505. Monitor the actual label of the data to be processed; wherein the actual label represents the renewal status of the insurance policy business to which the data to be processed actually belongs.

[0177] Exemplarily, when the model is applied in the actual business of predicting policy renewal rates, in order to monitor the prediction performance of the model in different time periods, the device monitors the actual label of each data to be processed, that is, the actual renewal status of the policy business to which each data to be processed belongs, for processing.

[0178] 506. Determine a stability index of the prediction model according to the actual label and the predicted label of each data to be processed; wherein the stability index represents the prediction stability of the prediction model.

[0179] Exemplarily, the device determines the stability index of the prediction model by comparing the actual labels and predicted labels of all the data to be processed to characterize the prediction stability of the prediction model; for example, the population stability index (PSI) is used to evaluate the prediction stability of the model, and the model PSI value is calculated based on the month dimension.

[0180] 507. According to the stability index of the prediction model, the prediction model is optimized to obtain an optimized prediction model.

[0181] Exemplarily, the device obtains a stability index of the prediction model, such as a PSI value. When the PSI value is less than 0.1, it proves that the model is good. When the PSI value is higher than 0.1, it is necessary to analyze the cause of the instability of the model and optimize the model to obtain an optimized prediction model.

[0182] In this embodiment, each data to be processed is processed through the prediction model to obtain the prediction of whether the policy business to which each data to be processed belongs is renewed, so as to process the policy renewal business, and monitor the prediction performance of the model in different time periods to further optimize the prediction model to obtain a prediction model with better performance; thereby, the processing efficiency of the policy data and the policy renewal business can be improved.

[0183] Figure 8 A schematic diagram of a model determination device for insurance policy data processing provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the device comprises:

[0184] The acquisition module 601 is used to acquire an original data set; wherein the original data set includes at least one sample data, the sample data represents the insurance policy data generated in the process of processing the insurance policy business at a historical moment; the sample data has an actual label, and the actual label represents whether the insurance policy business to which the actual sample data belongs is renewed;

[0185] Processing module 602 is used to perform adaptive upsampling processing on the original data set according to the actual label of each sample data to obtain N sub-data sets corresponding to the original data set; wherein the sub-data set includes F features of each sample data; the feature has a feature value, and the feature value represents the category corresponding to the feature; N and F are both positive integers greater than or equal to 1;

[0186] A construction module 603 is used to construct a random forest model according to the N sub-datasets; wherein the random forest model includes N decision trees;

[0187] The test module 604 is used to test the random forest model to obtain a prediction model; wherein the prediction model is used to process the data to be processed to obtain prediction information of the data to be processed; the data to be processed is the policy data generated in the process of processing the current policy business to be processed; the prediction information represents the renewal status of the policy business to which the predicted data to be processed belongs; the prediction information is used to process the policy renewal business.

[0188] In one example, processing module 602 is specifically used to: determine the majority class set and minority class set corresponding to the original data set based on the actual label of each sample data; wherein the majority class set includes at least one majority class sample, and the majority class sample is the sample data whose actual label in the original data set represents the renewal of the insurance policy business; the minority class set includes at least one minority class sample, and the minority class sample is the sample data whose actual label in the original data set represents the non-renewal of the insurance policy business; determine the first nearest neighbor sample of the minority class sample, and determine the boundary set and safety set corresponding to the minority class set based on the first nearest neighbor sample of each minority class sample; wherein the first nearest neighbor sample is the sample data in the original data set with the closest Euclidean distance to the minority class sample; the boundary set includes at least one boundary sample, and the boundary sample is the minority class sample. The first nearest neighbor sample in the class set is a minority class sample whose first nearest neighbor sample is a majority class sample; the safety set includes at least one safety sample, and the safety sample is a minority class sample whose first nearest neighbor sample in the minority class set is a minority class sample; the safety set is linearly interpolated to obtain a safety generation set corresponding to the safety set; wherein the safety generation set includes a safety generation sample corresponding to each safety sample, and the safety generation sample represents sample data of non-renewal of insurance policies; the boundary set is interpolated to obtain a boundary generation set corresponding to the boundary set; wherein the boundary generation set includes a boundary generation sample corresponding to each boundary sample, and the boundary generation sample represents sample data of non-renewal of insurance policies; the majority class set, the minority class set, the safety generation set and the boundary generation set are sampled to obtain N sub-datasets.

[0189] In one example, the processing module 602 is also specifically used to: determine the second nearest neighbor sample of the security sample; and determine the nearest neighbor distance of the security sample; wherein the second nearest neighbor sample is the majority class sample in the majority class set that has the closest Euclidean distance to the security sample; the nearest neighbor distance is the distance between the security sample and the second nearest neighbor sample of the security sample; based on the nearest neighbor distance of the security sample, determine at least one target sample corresponding to the security sample; wherein the target sample is other security samples in the security set that are in the local area corresponding to the security sample; the local area is a circular area with the security sample as the center and the nearest neighbor distance of the security sample as the radius; based on the at least one target sample corresponding to the security sample, perform linear interpolation processing on the security sample to obtain a security generated sample corresponding to the security sample.

[0190] In one example, the processing module 602 is further specifically used to: determine the third nearest neighbor sample of the boundary sample; wherein the third nearest neighbor sample is the majority class sample in the majority class set that has the closest Euclidean distance to the boundary sample; and perform calculation processing on the boundary sample based on the third nearest neighbor sample of the boundary sample to obtain a boundary generation sample corresponding to the boundary sample.

[0191] In one example, construction module 603 is specifically used to: determine, based on the sub-dataset, a set of feature values ​​corresponding to each feature in the sub-dataset; wherein the feature value set includes each feature value corresponding to the feature in the sub-dataset; and construct a decision tree corresponding to the sub-dataset based on the set of feature values ​​corresponding to each feature in the sub-dataset; wherein the decision tree includes at least one node.

[0192] In one example, a node has classification dimension information; construction module 603 is further specifically used to: based on the i-th node, determine the target data set corresponding to the i-th node according to the sub-data set; and determine the feature value set corresponding to each feature in the target data set corresponding to the i-th node; wherein i is a positive integer greater than or equal to 1; determine the optimal feature value from each feature value set corresponding to the i-th node; based on the i-th node, determine the optimal feature value corresponding to the target data set and the feature to which the optimal feature value corresponding to the target data set belongs, which is the classification dimension information of the i-th node; according to the classification dimension information of the i-th node, segment the target data set corresponding to the i-th node to obtain the i+1-th node and the i+2-th node.

[0193] In one example, the construction module 603 is also specifically used to: for the eigenvalue of each feature in the target data set, divide the target data set according to the eigenvalue to obtain a first subset and a second subset corresponding to the eigenvalue; wherein the first subset includes sample data whose eigenvalue is consistent with the eigenvalue in the target data set; the second subset includes sample data whose eigenvalue is inconsistent with the eigenvalue in the target data set; determine the Gini index of the target data set, and determine the Gini index of the first subset and the Gini index of the second subset; wherein the Gini index represents the data distribution; determine the Gini index corresponding to the eigenvalue according to the Gini index of the first subset, the Gini index of the second subset and the Gini index in the target data set; determine the eigenvalue with the smallest Gini index in the target data set as the optimal eigenvalue.

[0194] In one example, the device is also used to: perform missing value filling processing on sample data in an original data set to obtain a processed original data set.

[0195] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0196] Fig. 9 A schematic diagram of the structure of a policy data processing device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the device comprises:

[0197] The acquisition module 701 is used to acquire at least one data to be processed; wherein the data to be processed is the insurance policy data generated in the process of processing the insurance policy business to be processed; the data to be processed has at least one feature, the feature has a feature value, and the feature value represents the category corresponding to the feature;

[0198] A calling module 702 is used to call a preset prediction model; wherein the prediction model includes at least one decision tree;

[0199] The processing module 703 is used to process the data to be processed based on the prediction model and according to various characteristics of the data to be processed, and obtain prediction information of the data to be processed; wherein the prediction information represents the renewal status of the insurance policy business to which the data to be processed belongs; the prediction information is used to process the insurance policy renewal business;

[0200] Among them, the prediction model is obtained by training based on a model determination device applied to insurance policy data processing.

[0201] In one example, the prediction information includes a prediction probability and a prediction label; the prediction probability represents the renewal probability of the insurance policy business to which the data to be processed belongs, and the prediction label represents whether the insurance policy business to which the data to be processed belongs is renewed; the processing module 703 is specifically used to: based on the decision tree, classify the data to be processed according to various characteristics of the data to be processed, and obtain the classification result corresponding to the decision tree; wherein the classification result represents the renewal probability of the insurance policy business to which the data to be processed belongs; and determine the prediction information of the data to be processed according to each classification result.

[0202] In one example, the decision tree includes at least one node, and the node has classification dimension information; the processing module 703 is also specifically used to: based on each node, classify the data to be processed according to the characteristic values ​​of each feature of the data to be processed to obtain the classification result of the data to be processed.

[0203] In one example, the device is also used to: monitor the actual labels of the data to be processed; wherein the actual labels represent the renewal status of the insurance policy business to which the actual data to be processed belongs; determine the stability index of the prediction model based on the actual labels and predicted labels of each data to be processed; wherein the stability index represents the prediction stability of the prediction model; and optimize the prediction model based on the stability index of the prediction model to obtain an optimized prediction model.

[0204] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0205] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. Each module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The functions of each module. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0206] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.10As shown, the electronic device includes: a memory 801, a processor 802; the memory 801; and a memory for storing instructions executable by the processor 802.

[0207] The processor 802 is configured to execute the method provided in the above embodiment.

[0208] The electronic device 800 further includes a receiver 803 and a transmitter 804. The receiver 803 is used to receive instructions and data sent by other devices, and the transmitter 804 is used to send instructions and data to external devices.

[0209] An embodiment of the present application also provides a chip for executing instructions, which is used to execute the technical solution of the processing method in the above embodiment.

[0210] The embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the processing method of the above embodiment.

[0211] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, the technical solution of the processing method in the above embodiment can be implemented.

[0212] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0213] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0214] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A model determination method for insurance policy data processing, It is characterized in that The method comprises: Acquire an original data set; wherein the original data set includes at least one sample data, the sample data represents the insurance policy data generated in the process of processing the insurance policy business at a historical moment; the sample data has an actual label, and the actual label represents whether the insurance policy business to which the actual sample data belongs is renewed; According to the actual labels of each of the sample data, the original data set is adaptively upsampled to obtain N sub-data sets corresponding to the original data set; wherein the sub-data set includes F features of each sample data; the feature has a feature value, and the feature value represents the category corresponding to the feature; N and F are both positive integers greater than or equal to 1; Constructing a random forest model based on the N sub-datasets; wherein the random forest model includes N decision trees; The random forest model is tested and processed to obtain a prediction model; wherein the prediction model is used to process the data to be processed to obtain prediction information of the data to be processed; the data to be processed is the policy data generated in the process of processing the current policy business to be processed; the prediction information represents the renewal status of the policy business to which the predicted data to be processed belongs; the prediction information is used to process the policy renewal business.

2. The method according to claim 1, It is characterized in that According to the actual labels of each of the sample data, the original data set is adaptively upsampled to obtain N sub-data sets corresponding to the original data set, including: According to the actual labels of each of the sample data, determine the majority class set and the minority class set corresponding to the original data set; wherein the majority class set includes at least one majority class sample, and the majority class sample is the sample data of the original data set whose actual label represents the renewal of the insurance policy business; the minority class set includes at least one minority class sample, and the minority class sample is the sample data of the original data set whose actual label represents the non-renewal of the insurance policy business; Determine the first nearest neighbor sample of the minority class sample, and determine the boundary set and the safety set corresponding to the minority class set according to the first nearest neighbor sample of each of the minority class samples; wherein the first nearest neighbor sample is the sample data in the original data set with the closest Euclidean distance to the minority class sample; the boundary set includes at least one boundary sample, which is a minority class sample whose first nearest neighbor sample in the minority class set is a majority class sample; the safety set includes at least one safety sample, which is a minority class sample whose first nearest neighbor sample in the minority class set is a minority class sample; Performing linear interpolation processing on the safety set to obtain a safety generation set corresponding to the safety set; wherein the safety generation set includes a safety generation sample corresponding to each of the safety samples, and the safety generation sample represents sample data of non-renewal of the policy business; Performing interpolation processing on the boundary set to obtain a boundary generation set corresponding to the boundary set; wherein the boundary generation set includes a boundary generation sample corresponding to each boundary sample, and the boundary generation sample represents sample data of non-renewal of the policy business; The majority class set, the minority class set, the safe generation set and the boundary generation set are sampled to obtain the N sub-datasets.

3. The method according to claim 2, It is characterized in that Performing linear interpolation processing on the safety set to obtain a safety generation set corresponding to the safety set includes: Determine the second nearest neighbor sample of the safety sample; and determine the nearest neighbor distance of the safety sample; wherein the second nearest neighbor sample is the majority class sample in the majority class set whose Euclidean distance to the safety sample is the closest; the nearest neighbor distance is the distance between the safety sample and the second nearest neighbor sample of the safety sample; Determine at least one target sample corresponding to the security sample according to the nearest neighbor distance of the security sample; wherein the target sample is other security samples in the security set that are in the local area corresponding to the security sample; the local area is a circular area with the security sample as the center and the nearest neighbor distance of the security sample as the radius; According to at least one target sample corresponding to the security sample, linear interpolation processing is performed on the security sample to obtain a security generation sample corresponding to the security sample.

4. The method according to claim 2, It is characterized in that Performing interpolation processing on the boundary set to obtain a boundary generation set corresponding to the boundary set includes: Determine the third nearest neighbor sample of the boundary sample; wherein the third nearest neighbor sample is the majority class sample in the majority class set whose Euclidean distance to the boundary sample is the shortest; The boundary sample is calculated and processed according to the third nearest neighbor sample of the boundary sample to obtain a boundary generation sample corresponding to the boundary sample.

5. The method according to claim 1, It is characterized in that According to the N sub-datasets, a random forest model is constructed, including: Determine, according to the sub-dataset, a feature value set corresponding to each feature in the sub-dataset; wherein the feature value set includes each feature value corresponding to the feature in the sub-dataset; A decision tree corresponding to the sub-dataset is constructed according to a feature value set corresponding to each feature in the sub-dataset; wherein the decision tree includes at least one node.

6. The method according to claim 5, It is characterized in that The node has classification dimension information; and according to a feature value set corresponding to each feature in the sub-data set, a decision tree corresponding to the sub-data set is constructed, including: Based on the i-th node, according to the sub-dataset, determine the target data set corresponding to the i-th node; and determine the feature value set corresponding to each feature in the target data set corresponding to the i-th node; wherein i is a positive integer greater than or equal to 1; Determine the optimal eigenvalue from each eigenvalue set corresponding to the i-th node; Based on the i-th node, determine the optimal feature value corresponding to the target data set and the feature to which the optimal feature value corresponding to the target data set belongs, which is the classification dimension information of the i-th node; According to the classification dimension information of the i-th node, the target data set corresponding to the i-th node is segmented to obtain the i+1-th node and the i+2-th node.

7. The method according to claim 5, It is characterized in that Determine the optimal eigenvalue from each eigenvalue set corresponding to the i-th node, including: For each feature value in the target data set, the target data set is divided according to the feature value to obtain a first subset and a second subset corresponding to the feature value; wherein the first subset includes sample data whose feature value in the target data set is consistent with the feature value; and the second subset includes sample data whose feature value in the target data set is inconsistent with the feature value; Determine the Gini index of the target data set, and determine the Gini index of the first subset and the Gini index of the second subset; wherein the Gini index represents data distribution; Determine the Gini index corresponding to the feature value according to the Gini index of the first subset, the Gini index of the second subset, and the Gini index in the target data set; Determine the eigenvalue with the smallest Gini index in the target data set as the optimal eigenvalue.

8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: The missing value filling process is performed on the sample data in the original data set to obtain a processed original data set.

9. A method for processing insurance policy data, It is characterized in that The method comprises: Acquire at least one data to be processed; wherein the data to be processed is the insurance policy data generated in the process of processing the insurance policy business to be processed; the data to be processed has at least one feature, the feature has a feature value, and the feature value represents the category corresponding to the feature; Calling a preset prediction model; wherein the prediction model includes at least one decision tree; Based on the prediction model, the data to be processed is processed according to various characteristics of the data to be processed to obtain prediction information of the data to be processed; wherein the prediction information represents the renewal status of the insurance policy business to which the data to be processed belongs; the prediction information is used to process the insurance policy renewal business; Wherein, the prediction model is obtained by training based on the method described in any one of claims 1-8.

10. The method according to claim 9, It is characterized in that The prediction information includes a prediction probability and a prediction label; the prediction probability represents the renewal probability of the insurance policy business to which the data to be processed belongs, and the prediction label represents whether the insurance policy business to which the data to be processed belongs is renewed; Based on the prediction model, the data to be processed is processed according to various features of the data to be processed to obtain prediction information of the data to be processed, including: Based on the decision tree, the data to be processed is classified according to various features of the data to be processed to obtain a classification result corresponding to the decision tree; wherein the classification result represents the predicted probability of renewal of the insurance policy business to which the data to be processed belongs; According to each of the classification results, prediction information of the data to be processed is determined.

11. The method according to claim 10, It is characterized in that The decision tree includes at least one node, and the node has classification dimension information; based on the decision tree, the data to be processed is classified according to various features of the data to be processed to obtain a classification result corresponding to the decision tree, including: Based on each of the nodes, the data to be processed is classified according to the feature value of each feature of the data to be processed to obtain a classification result of the data to be processed.

12. The method according to any one of claims 9 to 11, It is characterized in that The method further comprises: Monitoring the actual label of the data to be processed; wherein the actual label represents the renewal status of the insurance policy business to which the data to be processed actually belongs; Determining the stability index of the prediction model according to the actual label and the predicted label of each of the data to be processed; wherein the stability index represents the prediction stability of the prediction model; According to the stability index of the prediction model, the prediction model is optimized to obtain an optimized prediction model.

13. A model determination device for insurance policy data processing, It is characterized in that The device comprises: An acquisition module is used to acquire an original data set; wherein the original data set includes at least one sample data, and the sample data represents the insurance policy data generated in the process of processing the insurance policy business at a historical moment; the sample data has an actual label, and the actual label represents whether the insurance policy business to which the actual sample data belongs is renewed; A processing module, configured to perform adaptive upsampling processing on the original data set according to the actual labels of each sample data, to obtain N sub-data sets corresponding to the original data set; wherein the sub-data sets include F features of each sample data; the feature has a feature value, and the feature value represents the category corresponding to the feature; N and F are both positive integers greater than or equal to 1; A construction module, used to construct a random forest model according to the N sub-datasets; wherein the random forest model includes N decision trees; A test module is used to test the random forest model to obtain a prediction model; wherein the prediction model is used to process the data to be processed to obtain prediction information of the data to be processed; the data to be processed is the policy data generated in the process of processing the current policy business to be processed; the prediction information represents the renewal status of the policy business to which the predicted data to be processed belongs; the prediction information is used to process the policy renewal business.

14. A device for processing insurance policy data, It is characterized in that The device comprises: An acquisition module is used to acquire at least one data to be processed; wherein the data to be processed is the insurance policy data generated in the process of processing the insurance policy business to be processed; the data to be processed has at least one feature, the feature has a feature value, and the feature value represents the category corresponding to the feature; A calling module, used to call a preset prediction model; wherein the prediction model includes at least one decision tree; A processing module, used to process the data to be processed based on the prediction model and according to various features of the data to be processed to obtain prediction information of the data to be processed; wherein the prediction information represents the renewal status of the insurance policy business to which the data to be processed belongs; and the prediction information is used to process the insurance policy renewal business; Wherein, the prediction model is obtained by training based on the device described in claim 13.

15. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8 or the method according to any one of claims 9 to 12.

16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 or the method according to any one of claims 9 to 12 when executed by a processor.

17. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 or the method according to any one of claims 9 to 12 when being executed by a processor.