Model labeling method, device and medium based on support vector machine
Through the support vector machine model labeling method, the problem of insufficient credit model training samples in Internet finance is solved, accurate and objective credit scoring is achieved, and labor costs and subjectivity are reduced.
Patent Information
- Application Number
- CN202111248672.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-10-26
AI Technical Summary
In the Internet financial credit system, the lack of most labeled data results in insufficient training samples for the credit model, making it impossible to train a credit scoring model that meets the requirements.
The model labeling method based on support vector machine is used to establish the indicator system of the credit model, determine the indicator data, classify and label it, build a sample labeling model, use a small number of real labeled samples to train the model, and label unlabeled samples. Then train the credit model.
It saves labor costs and time, makes the annotation results more accurate and objective, avoids the subjective influence of manual annotation, and can generate a reliable credit scoring model through small sample training.
Smart Images

Figure CN113962568B
Abstract
Description
Technical Field
[0001] The present specification relates to the field of computer technology, and more particularly to a model labeling method, device, and medium based on a support vector machine. Background Art
[0002] The development and application of Internet technology has penetrated into various industries, especially the financial industry. The traditional financial industry is facing severe challenges from big data, the Internet, and the imbalance and asymmetry of user experience. The use of big data risk control technology has become a focus of big data application that industry insiders are most concerned about.
[0003] In the current Internet financial credit system, credit scoring models are usually used to evaluate the credit of enterprises. The commonly used method of credit scoring models is logistic regression. When using logistic regression to establish a credit scoring model, a large amount of labeled data is required in the feature engineering and model training process. However, in actual application environments, in many cases, a large amount of labeled data cannot be obtained, and the labels of some samples can only be determined by some key indicators (whether it has been in the default database recently, tax rating, etc.); this will result in insufficient training samples for the logistic regression to establish a credit scoring model, and it is impossible to train a credit scoring model that meets the requirements. Summary of the invention
[0004] One or more embodiments of the present specification provide a model labeling method, device and medium based on a support vector machine, which are used to solve the following technical problems: in actual application environments, most of the labeled data cannot be obtained, resulting in insufficient training samples for the credit model and an inability to train a credit scoring model that meets the requirements.
[0005] One or more embodiments of this specification adopt the following technical solutions:
[0006] One or more embodiments of the present specification provide a model labeling method based on a support vector machine, the method comprising: establishing an indicator system of a credit model according to the credit data of an enterprise, and determining indicator data, wherein the indicator system is used to represent the credit status of the enterprise; classifying and labeling preset indicator data in the indicator data; training a pre-constructed sample labeling model according to the labeled preset indicator data to obtain a sample labeling model that meets the requirements, and determining the correspondence between indicator features of the preset indicator data and the labeled labels, wherein the sample labeling model is a support vector machine model; analyzing the indicator features of unlabeled indicator data in the indicator data through the sample labeling model that meets the requirements, and classifying and labeling the unlabeled indicator data according to the correspondence between the indicator features of the preset indicator data and the labeled labels, so as to train the credit model according to the indicator data with the labeled labels to obtain a credit model that meets the requirements.
[0007] Furthermore, before establishing the indicator system of the credit model based on the credit data of the enterprise, the method includes: collecting the credit data of the enterprise through multiple channels; analyzing and integrating the credit data to form a data set, and storing it in a database; wherein the structural types of the credit data include semi-structured data and structured data.
[0008] Furthermore, the analysis and fusion processing of the credit data specifically includes: converting the credit data of the structural type of semi-structured data into structured data, so as to fuse the data with complementary relationship in the credit data, and deduplicate the data with redundant relationship in the credit data.
[0009] Furthermore, after determining the indicator data, the method includes: determining invalid data in the indicator data so as to remove the invalid data in the indicator data, wherein the invalid data refers to data that is irrelevant to the credit status of the enterprise; performing same value statistics and missing value statistics on the indicator data so as to remove fields whose same value rates exceed a preset range and fields containing the same numerical values, and remove fields whose field missing rates exceed a preset range.
[0010] Furthermore, determining the correspondence between the indicator features of the preset indicator data and the annotation label specifically includes: determining at least one indicator feature corresponding to the preset indicator data; determining the weight of the at least one indicator feature based on the classification information corresponding to the annotation label; and determining the correspondence between the at least one indicator feature and the annotation label based on the weight of the at least one indicator feature.
[0011] Furthermore, before obtaining a sample label annotation model that meets the requirements, the method further includes: dividing the preset indicator data into a training set and a test set; inputting the preset indicator data in the training set into a pre-constructed sample label annotation model, determining the optimization objective function and constraint conditions of the sample label annotation model, solving them through the SMO efficient optimization algorithm, and training the sample label annotation model; wherein the optimization objective function of the sample label annotation model is:
[0012]
[0013] The constraints of the label annotation model are:
[0014] C ≥ α ≥ 0, and
[0015] Furthermore, before obtaining a sample label annotation model that meets the requirements, the method also includes: inputting preset indicator data in the test set as test sample data into the trained sample label annotation model; comparing the label category output by the sample label annotation model with the pre-annotated label category; if the comparison result is within a preset error range, the trained sample label annotation model is a sample label annotation model that meets the requirements; if the comparison result exceeds the preset error range, adjusting the model training parameters, optimizing the iterative model, and retraining the sample label annotation model to determine a sample label annotation model that meets the requirements.
[0016] Furthermore, the credit model is trained according to the labeled indicator data to obtain a credit model that meets the requirements, specifically including: performing indicator correlation analysis, indicator importance analysis and indicator distribution verification processing on the labeled credit data; inputting the processed indicator data into a pre-built credit model, training the credit model, and determining a credit model that meets the requirements to obtain a corresponding credit scoring result.
[0017] One or more embodiments of the present specification provide a model labeling device based on a support vector machine, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above method.
[0018] One or more embodiments of the present specification provide a non-volatile computer storage medium, storing computer executable instructions, wherein the computer executable instructions are configured to: establish an indicator system of a credit model based on the credit data of an enterprise, and determine indicator data, wherein the indicator system is used to represent the credit status of the enterprise; classify and label preset indicator data in the indicator data; train a pre-constructed sample label labeling model based on the labeled preset indicator data to obtain a sample label labeling model that meets the requirements, and determine the correspondence between indicator features of the preset indicator data and the labeled labels, wherein the sample label labeling model is a support vector machine model; analyze the indicator features of unlabeled indicator data in the indicator data through the sample label labeling model that meets the requirements, and classify and label the unlabeled indicator data based on the correspondence between the indicator features of the preset indicator data and the labeled labels, so as to train the credit model based on the labeled indicator data to obtain a credit model that meets the requirements.
[0019] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0020] Based on the preset indicators with clear good and bad meanings, some samples are labeled, and then a binary classifier is trained based on SVM to label other unlabeled samples, which greatly saves labor costs and time for manual labeling. In addition, the support vector machine can be trained with small samples. A small number of real labeled samples are used as training samples to train the model, and this model is used to label other unlabeled samples. Compared with manual labeling, the labeling results are more accurate and objective, avoiding the subjective influence of manual labeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0022] Figure 1 A schematic diagram of a model labeling method based on a support vector machine provided in an embodiment of this specification;
[0023] Figure 2 A schematic diagram of another model labeling method based on a support vector machine provided in an embodiment of this specification;
[0024] Figure 3A structural schematic diagram of a model labeling device based on a support vector machine provided in an embodiment of this specification. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0026] With the rapid development of Internet technology, people's daily work and living habits have undergone qualitative changes. The development and application of Internet technology has penetrated into all walks of life at lightning speed, especially the financial industry. The traditional financial industry is facing severe tests of big data, the Internet, and unbalanced and asymmetric user experience. Big data risk control technology has become a focus of big data application that industry insiders pay the most attention to. Financial risk control models are an inevitable trend for the healthy growth of Internet finance.
[0027] The commonly used method for credit scoring models is logistic regression, which is one of the most common model methods in the field of machine learning and is often used as a benchmark model for processing various tasks. In practical applications, the performance of the model finally adopted for various tasks often far exceeds that of the logistic regression method, but the complexity of its model structure and the training time also exceed those of the logistic regression method; due to its high interpretability, it is widely used in risk control modeling.
[0028] It should also be noted that when using logistic regression to build a credit scoring model, a large amount of labeled data is required in the feature engineering and model training process. However, in actual application environments, most labeled data cannot be obtained in many cases, and the labels of some samples can only be determined by some key indicators (whether it has been in the default database recently, tax rating, etc.); this will make the training samples for the logistic regression credit scoring model insufficient or impossible to train.
[0029] The embodiment of this specification provides a model labeling method based on support vector machine. Figure 1 A flow chart of a model labeling method based on support vector machine is shown in Figure 1. Figure 1 As shown, it mainly includes the following steps:
[0030] Step S101, establishing an indicator system of a credit model based on the credit data of the enterprise, and determining the indicator data.
[0031] To score the credit of users and enterprises through the credit model, various credit data related to the users or enterprises are required. Therefore, the credit data of the enterprises is collected through multiple channels before step S101.
[0032] In one embodiment of this specification, multi-source credit data is collected through multiple channels, and the user's multi-source data includes government data, Internet data, and third-party data. The user's government data includes information such as industry and commerce, social security, provident fund, administrative penalties, and enterprise certification. The user's Internet data includes judicial, business, investment, intellectual property data, and other data. The user's third-party data includes information such as the user's external guarantees, water and electricity consumption, equity pledge, land mortgage and transfer, and important shareholder pledges.
[0033] It should be noted that multi-source data includes both stored stock data and API interface data, including structured basic information, changes, blacklists, identification information, and other data, as well as semi-structured data such as judicial documents, court notices, etc. Therefore, it is necessary to process data of different structures.
[0034] In one embodiment of the present specification, semi-structured data needs to be transformed into structured data and stored in a database through text data processing, data extraction, data structuring methods, etc. The stored structured data needs to be processed through data alignment, fusion comparison and other methods to establish a unified standard data table, and a standard data table covering multiple ranges is established for information of a certain dimension.
[0035] After converting semi-structured data into structured data, the data between different data sources are fused and compared to establish a unified standard data set. The data fusion and comparison process mainly includes the fusion between data sources, aligning and fusing data with complementary relationships, deduplicating data with redundant relationships, and selecting data with better data quality. After fusion and comparison, multi-dimensional data forms a standard data set and is stored in a standard database.
[0036] According to the credit data of the enterprise, an indicator system of the credit model is established to determine the indicator data, wherein the indicator system is used to represent the credit status of the enterprise. After the credit data is processed and stored, an indicator system for credit scoring is constructed based on the established multi-source data standard library. The data for constructing the indicators mainly comes from data such as industry and commerce, changes, administrative penalties, dishonesty, judicial affairs, liabilities, and taxes; in addition, relationship data such as investment, guarantees, branches, and legal persons are also used to construct some indicators. It should be noted that the indicator system refers to a set of indicators that measure the business status of an enterprise. When solving complex business problems in practice, it is necessary to use multiple indicators to evaluate the business from different dimensions, that is, to use the indicator system. In other words, the indicator system is to sort out the business from different dimensions and organize the indicators in a systematic way.
[0037] In the obtained indicator data, due to different data sources, there may be fields with the same value and invalid values between data from different sources. In order to convert the original data into training data for the model, the indicator data needs to be processed to ensure the accuracy of the indicator data.
[0038] In one embodiment of the present specification, invalid data in the indicator data is determined so as to remove the invalid data in the indicator data, wherein the invalid data refers to data that is not related to the credit status of the enterprise, such as information such as telephone code and address code. When processing invalid values in the model input indicators, some quantifiable indicators can be numerically quantified; the indicator data is subjected to the same value statistics and missing value statistics, so as to remove fields whose same value ratio exceeds a preset range and fields containing the same numerical value, and remove fields whose field missing rate exceeds a preset range. For example, the missing value statistics are performed on the model input indicators, and the training indicators of the fields containing the same value and the fields whose same value ratio is higher than 80% are removed; the same value ratio statistics are performed on the remaining indicators, and the features whose attributes have only one value are removed, and the indicators whose attribute same value ratio is greater than 80% are removed.
[0039] Step S102: classify the preset indicator data in the indicator data and label them.
[0040] In one embodiment of the present specification, the preset indicator data is classified, wherein the preset indicator data is an indicator with a clear meaning. For example, the corresponding sample data is labeled according to indicators with clear good or bad meanings such as whether to enter the default database, taxpayer level, and whether to owe taxes within a preset time period. It should be noted that the coverage rate of such indicators is low, and samples labeled only by such indicators cannot be used for credit model training.
[0041] Step S103, training a pre-built sample label annotation model according to the annotated preset indicator data to obtain a sample label annotation model that meets the requirements, and determining the corresponding relationship between the indicator features of the preset indicator data and the annotated labels.
[0042] Since the coverage rate of indicators with clear good and bad meanings is low, it is impossible to train the credit model only with such samples. Therefore, the embodiment of this specification uses support vector machine (SVM) based on limited sample information to minimize the sample point error while improving the generalization ability of the model, thereby obtaining reliable analysis results of small sample data.
[0043] It should be noted that support vector machine is a generalized linear classifier that performs binary classification of data in a supervised learning manner. Its decision boundary is the maximum margin hyperplane for solving learning samples. SVM uses hinge loss function to calculate empirical risk and adds regularization term to the solution system to optimize structural risk. It is a classifier with sparsity and robustness. SVM can perform nonlinear classification through kernel method and is one of the common kernel learning methods. Its characteristic is that it can improve the generalization ability of the model while minimizing the error of sample points based on limited sample information, so as to obtain reliable analysis results of small sample data.
[0044] In one embodiment of the present specification, a sample label annotation model is pre-constructed and the model is trained to obtain a sample label annotation model that meets the requirements. It should be noted that the sample label annotation model is a SVM model.
[0045] First, construct training samples. Divide the processed indicator data with clear meanings into training sets and test sets, use the samples with labels in the training set as training samples, and train the sample labeling model.
[0046] Next, find the maximum margin. The separating hyperplane can be written as wTx+b. To calculate the distance from point A to the separating hyperplane, we must give the length of the normal or perpendicular line from the point to the separating plane, which is |wTx+b| / ||w||. The constant b here is similar to the ending w0 in logistic regression. The vector w and the constant b together describe the separating line or hyperplane for the given data.
[0047] Then comes the solution optimization of the classifier. Input the data into the SVM classifier, the classifier will output a category label, and use the unit step function to act on wTx+b to get f(wTx+b), where f(u) outputs -1 when u<0, and outputs +1 otherwise. The labels here use -1 and +1, which only differ by one sign, which is convenient for mathematical processing. In one embodiment of the present specification, a unified formula can be used to represent the distance from the interval or data point to the separating hyperplane.
[0048] When the distance from the data point to the separation plane is calculated and the placement of the separation plane is determined, the interval is calculated by label*(wTx+b). If the data point is in the positive direction (i.e., +1 class) and is far away from the separation hyperplane, wTx+b is a large positive number, and label*(wTx+b) will also be a large positive number. If the data point is in the negative direction (i.e., -1 class) and is far away from the separation hyperplane, label*(wTx+b) is still a large positive number because the class label is -1.
[0049] In the actual training process, we need to find w and b in the classifier definition. Therefore, we need to find the data point with the smallest interval. When we find the data point with the smallest interval, we need to maximize the interval. It can be written as:
[0050]
[0051] For the convenience of solving, the above formula can be converted into another form that is easier to solve. Fix one of the factors and maximize the other factors. If the label*(wTx+b) of all support vectors is equal to 1, the final solution can be obtained by maximizing ||w||. However, not all data points have label*(wTx+b) equal to 1. Only those points closest to the separating hyperplane have a value of 1. The farther the data point is from the hyperplane, the larger its label*(wTx+b) value is.
[0052] In the above optimization problem, given the constraints and then find the optimal value, this problem is an optimization problem with constraints. The constraints here are label*(wTx+b)>=1.0. By introducing a Lange multiplier, it can be expressed based on the constraints. Since the constraints here are based on data points, the hyperplane can be in the form of data points. So the optimization objective function can finally be written as:
[0053]
[0054] The constraints are:
[0055] α ≥ 0, and
[0056] In this case, the data must be linearly separable. However, in reality, such data rarely exists. At this time, slack variables can be introduced to allow some data points to be on the wrong side of the separation plane. The optimization objective here can remain unchanged, but the new constraints become:
[0057] C ≥ α ≥ 0, and
[0058] The constant C is used to control the weight of the two goals of "maximizing the margin" and "ensuring that the function margin of most points is less than 1.0". In the implementation code of the optimization algorithm, the constant C is a parameter, so different results can be obtained by adjusting the parameter. Once all alphas are found, the separating hyperplane can be expressed by these alphas.
[0059] After that, the solution is solved by the SMO efficient optimization algorithm. The goal of the SMO algorithm is to find a series of alphas and b. After finding multiple alphas, the weight vector can be calculated and the separating hyperplane can be obtained. The working principle of the SMO algorithm is: two alphas are selected for optimization in each cycle. Once a bunch of alphas that meet the requirements are found, one of them is increased and the other is decreased. Meeting the requirements means that the two alphas must meet certain conditions. One of the conditions is that the two alphas must be outside the interval boundary, and the second condition is that the two alphas have not been intervalized or are not on the boundary.
[0060] After the model training is completed, the preset indicator data in the test set is used as the test sample data and input into the trained sample labeling model, and the label category output by the sample labeling model is compared with the pre-labeled label category. If the comparison result is within the preset error range, the trained sample labeling model is a sample labeling model that meets the requirements; if the comparison result exceeds the preset error range, the model training parameters are adjusted, the iterative model is optimized, and the sample labeling model is trained again until a sample labeling model that meets the requirements is determined.
[0061] In one embodiment of the present specification, after obtaining a sample label annotation model that meets the requirements, the corresponding relationship between the indicator features of the preset indicator data and the annotation label is determined. Determine at least one indicator feature corresponding to the indicator data with a clear meaning; for example, whether a user is dishonest is an indicator data with a clear good or bad meaning. If the user is dishonest, the user is labeled with a label that is not conducive to his credit and is classified into a category with bad credit. There may be multiple indicator features in such indicator data. According to the classification information corresponding to the annotation label, determine the weight of at least one indicator feature. In the indicator data, the indicator data can be divided into multiple features, and the importance of each feature to the classification result is different. The weight corresponding to the indicator feature can be determined according to the classification information of the final label, for example, feature A accounts for 80% and feature B accounts for 0.1%; according to the weight of at least one indicator feature, determine the corresponding relationship between at least one indicator feature and the annotation label.
[0062] Step S104, using a sample labeling model that meets the requirements, analyzes the indicator characteristics of the unlabeled indicator data in the indicator data, and classifies and labels the unlabeled indicator data according to the correspondence between the indicator characteristics of the preset indicator data and the labeled labels, so as to train the credit model based on the labeled indicator data and obtain a credit model that meets the requirements.
[0063] In one embodiment of the present specification, the unlabeled indicator data in the indicator data are input into a sample labeling model that meets the requirements, and the unlabeled indicator data are classified and labeled with corresponding labels through the sample labeling model.
[0064] In one embodiment of the present specification, the indicator features of unlabeled indicator data in the indicator data are analyzed by a sample labeling model that meets the requirements, and the unlabeled indicator data are classified and labeled with corresponding labels based on the correspondence between the indicator features in the indicator data with clear meanings obtained in step S103 and the labeled labels.
[0065] After all indicator data are classified and labeled, the credit scoring model is trained. Through correlation analysis and collinearity analysis, indicators with high correlation and collinearity are removed; secondly, xgboost indicator importance analysis is performed to screen out indicators that play a key role in the model; then, the indicators are tested for distribution and converted, and the model is trained based on logistic regression; the corresponding credit score is generated through scorecard conversion.
[0066] The embodiments provided in this specification have the following beneficial results: Compared with the traditional labeling method, when constructing the good and bad labels of the credit scoring model, firstly, labels are labeled for some samples based on indicators with clear good and bad meanings, and then a binary classifier is trained based on SVM to label other unlabeled samples, which greatly saves labor costs and time for manual labeling. In addition, the support vector machine can be trained with small samples, and the model is trained with a small number of real label samples as training samples. This model is used to label other unlabeled samples. Compared with manual labeling, the labeling results are more accurate and objective, avoiding the subjective influence of manual labeling; in addition, with the convergence of massive data and the continuous advancement of science and technology, supervised learning has been applied to many fields, and many aspects will exist, etc. This method is applicable to all scenarios. From the perspective of data, the importance of features is quantitatively analyzed, and the application prospects are extremely broad.
[0067] The embodiment of this specification also provides another model labeling method based on support vector machine, Figure 2 This is a flow chart of another model labeling method based on support vector machine, such as Figure 2 As shown, it mainly includes:
[0068] First, determine the enterprise credit score indicators and training samples, and clean the data. When cleaning the data, handle invalid values, detect outliers, handle missing values, handle identical values, and fill missing values.
[0069] After data cleaning, the sample data is labeled using the SVM labeling model. Specifically, labels are labeled for indicators with clear meanings, and training samples are selected from indicators with clear meanings to train the SVM labeling model. After training, the model needs to be verified. The classification performance of the model is evaluated to determine whether the trained SVM labeling model is a SVM labeling model that meets the requirements. If the classification performance evaluation is passed, the unlabeled data is input into the SVM labeling model to label all data.
[0070] All samples are labeled with corresponding labels to train the credit scoring model. Through correlation analysis and collinearity analysis, the indicators with high correlation and collinearity are removed; the second is xgboost indicator importance analysis to screen out the indicators that play a key role in the model; then, the indicators are tested for distribution and converted, and the model is trained based on logistic regression; the corresponding credit score is generated through scorecard conversion.
[0071] One or more embodiments of this specification provide a model labeling device based on a support vector machine, such as Figure 3 As shown, the device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the above method.
[0072] One or more embodiments of the present specification provide a non-volatile computer storage medium, storing computer executable instructions, wherein the computer executable instructions are configured to: establish an indicator system of a credit model based on the credit data of an enterprise, and determine indicator data, wherein the indicator system is used to represent the credit status of the enterprise; classify and label preset indicator data in the indicator data; train a pre-constructed sample label labeling model based on the labeled preset indicator data to obtain a sample label labeling model that meets the requirements, and determine the correspondence between indicator features of the preset indicator data and the labeled labels, wherein the sample label labeling model is a support vector machine model; analyze the indicator features of unlabeled indicator data in the indicator data through the sample label labeling model that meets the requirements, and classify and label the unlabeled indicator data based on the correspondence between the indicator features of the preset indicator data and the labeled labels, so as to train the credit model based on the labeled indicator data to obtain a credit model that meets the requirements.
[0073] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0074] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0075] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A model labeling method based on support vector machine, characterized in that: The method comprises: Establishing an indicator system of a credit model based on the credit data of the enterprise and determining indicator data, wherein the indicator system is used to represent the credit status of the enterprise; Classifying the preset indicator data in the indicator data and labeling them; According to the annotated preset indicator data, a pre-constructed sample label annotation model is trained to obtain a sample label annotation model that meets the requirements, and the corresponding relationship between the indicator characteristics of the preset indicator data and the annotation label is determined, wherein the sample label annotation model is a support vector machine model; By using the sample labeling model that meets the requirements, the indicator characteristics of the unlabeled indicator data in the indicator data are analyzed, and according to the corresponding relationship between the indicator characteristics of the preset indicator data and the labeled labels, the unlabeled indicator data are classified and labeled, so as to train the credit model according to the indicator data with the labeled labels to obtain a credit model that meets the requirements; The determining of the correspondence between the indicator feature of the preset indicator data and the annotation label specifically includes: Determine at least one indicator feature corresponding to the preset indicator data; Determining a weight of the at least one indicator feature according to the classification information corresponding to the annotation label; Determining a correspondence between the at least one indicator feature and the annotation label according to a weight of the at least one indicator feature; The step of training the credit model according to the labeled indicator data to obtain a credit model that meets the requirements specifically includes: Conduct indicator correlation analysis, indicator importance analysis, and indicator distribution verification on the labeled credit data; Inputting the processed indicator data into a pre-built credit model, training the credit model, and determining a credit model that meets the requirements to obtain a corresponding credit scoring result; Before obtaining the sample label annotation model that meets the requirements, the method further includes: Dividing the preset indicator data into a training set and a test set; Input the preset indicator data in the training set into the pre-built sample label annotation model, determine the optimization objective function and constraint conditions of the sample label annotation model, solve them through the SMO efficient optimization algorithm, and train the sample label annotation model; Among them, the optimization objective function of the sample labeling model is: The constraints of the sample labeling model are: Before obtaining the sample label annotation model that meets the requirements, the method further includes: Input the preset index data in the test set as test sample data into the trained sample labeling model; Comparing the label category output by the sample labeling model with the pre-labeled label category; If the comparison result is within a preset error range, the trained sample labeling model is a sample labeling model that meets the requirements; If the comparison result exceeds a preset error range, the model training parameters are adjusted, the iterative model is optimized, and the sample label annotation model is trained again to determine a sample label annotation model that meets the requirements.
2. A model labeling method based on support vector machine according to claim 1, characterized in that: Before establishing the indicator system of the credit model according to the credit data of the enterprise, the method includes: Collect the credit data of enterprises through multiple channels; The credit data is analyzed and integrated to form a data set, which is then stored in a database; wherein the structure types of the credit data include semi-structured data and structured data.
3. A model labeling method based on support vector machine according to claim 2, characterized in that: The analyzing and integrating the credit data specifically includes: Credit data with a structure type of semi-structured data is converted into structured data, so as to perform data fusion on data with complementary relationships in the credit data and perform deduplication processing on data with redundant relationships in the credit data.
4. The model labeling method based on support vector machine according to claim 1, characterized in that: After determining the indicator data, the method includes: Determining invalid data in the indicator data so as to remove the invalid data from the indicator data, wherein the invalid data refers to data irrelevant to the credit status of the enterprise; The indicator data is subjected to same value statistics and missing value statistics, so as to remove fields whose same value rate exceeds a preset range and fields containing the same numerical value, and to remove fields whose field missing rate exceeds a preset range.
5. A model labeling device based on support vector machine, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.
6. A non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to: establish an indicator system of a credit model based on the credit data of an enterprise, and determine indicator data, wherein: The indicator system is used to represent the credit status of the enterprise; Classifying the preset indicator data in the indicator data and labeling them; According to the annotated preset indicator data, a pre-constructed sample label annotation model is trained to obtain a sample label annotation model that meets the requirements, and the corresponding relationship between the indicator characteristics of the preset indicator data and the annotation label is determined, wherein the sample label annotation model is a support vector machine model; By using the sample labeling model that meets the requirements, the indicator characteristics of the unlabeled indicator data in the indicator data are analyzed, and according to the corresponding relationship between the indicator characteristics of the preset indicator data and the labeled labels, the unlabeled indicator data are classified and labeled, so as to train the credit model according to the indicator data with the labeled labels to obtain a credit model that meets the requirements; The determining of the correspondence between the indicator feature of the preset indicator data and the annotation label specifically includes: Determine at least one indicator feature corresponding to the preset indicator data; Determining a weight of the at least one indicator feature according to the classification information corresponding to the annotation label; Determining a correspondence between the at least one indicator feature and the annotation label according to a weight of the at least one indicator feature; The step of training the credit model according to the labeled indicator data to obtain a credit model that meets the requirements specifically includes: Conduct indicator correlation analysis, indicator importance analysis, and indicator distribution verification on the labeled credit data; Inputting the processed indicator data into a pre-built credit model, training the credit model, and determining a credit model that meets the requirements to obtain a corresponding credit scoring result; Before obtaining the sample label annotation model that meets the requirements, the method further includes: Dividing the preset indicator data into a training set and a test set; Input the preset indicator data in the training set into the pre-built sample label annotation model, determine the optimization objective function and constraint conditions of the sample label annotation model, solve them through the SMO efficient optimization algorithm, and train the sample label annotation model; Among them, the optimization objective function of the sample labeling model is: The constraints of the sample labeling model are: Before obtaining the sample label annotation model that meets the requirements, the method further includes: Input the preset index data in the test set as test sample data into the trained sample labeling model; Comparing the label category output by the sample labeling model with the pre-labeled label category; If the comparison result is within a preset error range, the trained sample labeling model is a sample labeling model that meets the requirements; If the comparison result exceeds a preset error range, the model training parameters are adjusted, the iterative model is optimized, and the sample label annotation model is trained again to determine a sample label annotation model that meets the requirements.
