A soft classification method for imbalanced data based on multi-class exponential loss function
By introducing the SoftMax layer and cross-entropy loss function into SCNs, combined with the multi-category exponential loss function, the limitations of hard classification of SCNs in multi-classification problems and the over-fitting problem of imbalanced data sets are solved, and soft classification and automatic weak classification are achieved. The selection of the number of classifiers improves the learning ability and accuracy, and is suitable for multi-label classification.
Patent Information
- Application Number
- CN202410054663.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-01-12
AI Technical Summary
Stochastically configured neural networks (SCNs) have a hard classification method that limits their application scope in multi-classification problems. They are unable to handle samples with multi-category attributes and are prone to overfitting on unbalanced data sets. Existing improvement methods are mainly targeted at binary classification problems. , it is difficult to effectively solve the imbalanced data set problem in multi-classification problems.
Introducing the SoftMax layer and cross-entropy loss function, re-evaluating the degree of network modeling through the multi-category exponential loss function (SAMME), using the cross-entropy measurement model to select the weight of new nodes, realizing soft classification and automatically selecting the number of weak classifiers, overcoming the problem RMSE evaluates the impact of outliers on metrics and the limitations of hard classification.
It improves the learning ability and accuracy of SCNs, can effectively handle multi-label classification problems, automatically adjusts the number of weak classifiers, reduces calculation time, improves the recognition accuracy of minority class samples, and enhances the applicability and robustness of the model. Great sex.
Smart Images

Figure CN117892233B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of soft classification of imbalanced data sets, and in particular to an imbalanced data soft classification method based on a multi-category exponential loss function. Background Art
[0002] Random Configuration Neural Networks (SCNs) are an incremental and fast modeling method. The network structure consists of a hidden layer node that uses a "data-dependent" supervision mechanism to randomly configure the hidden layer node input weights and biases, gradually increasing the number of hidden layer nodes, and using the least squares method to calculate the output weights to complete the network construction. It overcomes the problem of parameter selection of traditional random models and is different from neural networks based on gradient descent. In recent years, it has shown significant advantages in pattern recognition, fault detection, and system modeling and prediction.
[0003] However, as a classification identifier, especially for multi-classification problems, the essence of SCNs is to build a network to fit the 0-1 label matrix. The main problems are as follows:
[0004] 1) Existing technologies use the difference between the network output matrix and the 0-1 label matrix as the network residual for updating. When the root mean square error (RMSE) between the network output and the 0-1 label matrix reaches a preset value, the network stops updating. When obtaining the predicted category, a hard classification method is used to directly take the largest network output value as the true category. In this way, when SCNs are applied to classification problems, each sample can only belong to one category. For many problems, this is too arbitrary and cannot be applied to scenarios where the same sample has multiple category attributes, limiting the scope of application of SCNs.
[0005] 2) In addition, the supervision mechanism of the SCNs network strengthens the constraint relationship between the hidden layer input weights and biases and the residuals of the network and the samples. The residuals of the network output and the label matrix become an important basis for configuring the hidden layer input weights and biases. The existing technology directly subtracts the output of the network from the label matrix as the residual of the current network, but in practical applications, the actual meaning of the network output should be the probability distribution of each category, so that the probability value of the sample belonging to this category or other categories can be obtained, which can more comprehensively describe the characteristics of the sample. For example, a picture may contain a dog and grass. In order to obtain comprehensive sample information, the network should approximate a probability distribution rather than a 0-1 matrix. The existing residual update method can be used to measure the similarity of two probability distributions, but it also makes the network output not a probability distribution.
[0006] 3) When SCNs generates a classification recognition model based on an imbalanced data set, the model will significantly overfit the category with a large number of samples. In real-world scenarios, whether it is fault diagnosis and disaster prediction, or pattern recognition problems, the sampled data sets are usually imbalanced. Existing SCNs models based on imbalanced data sets include the improved SCNs based on AdaBoost in the paper (Qu HQ, Feng TL, Wang YP, Zhang Y. AdaBoost-SCN algorithm for optical fiber vibration signal recognition. Applied Optics, 2019, 58(21): 5612–5623. [doi: 10.1364 / AO.58.005612]), or the improved SCNs based on AdaBoost in the paper (Dai, W., Ning, C., Nan, J. et al. Stochastic configuration networks for imbalanced data classification. Int. J. Mach. Learn. & Cyber. 13, 2843–2855 (2022). https: / / doi.org / 10.1007 / s13042-022-01565-z) introduces a class balancer to focus on minority class samples when modeling the network, but it can only solve the problem of unbalanced data sets in binary classification problems. In fact, in tasks such as pattern recognition or fault diagnosis, there are often more than two situations to be classified and identified.
[0007] 4) In the field of machine learning, there are many mature algorithms for solving the problem of unbalanced data sets, such as GBDT and AdaBoost, which provide good ideas for solving this type of problem. However, their essence is binary classification, that is, one category is classified each time. If there are K categories, K classifiers need to be trained, and the number of weak classifiers needs to be pre-set when used. If it is too small, the model will be under-fitted, and if it is too large, the model will be over-fitted. Therefore, for users who are not familiar with this field, this hyperparameter is difficult to determine. Summary of the invention
[0008] The purpose of the present invention is to provide an unbalanced data soft classification method based on a multi-class exponential loss function, by introducing a SoftMax layer and a cross entropy loss to re-evaluate the modeling degree of the network, so as to solve the influence of outliers on the index when RMSE is used as an evaluation index; by introducing the cross entropy to measure the difference between the model prediction and the true probability distribution, the weight of the newly added node of SCNs is selected according to the cross entropy, rather than the difference between the probability distribution predicted by the two models and the true probability distribution as the updating basis, thereby overcoming the original method of directly making a difference to obtain a network probability residual matrix containing negative values or greater than 1 that has no practical significance; finally, by introducing a multi-class exponential loss function (SAMME) and a stop modeling condition, the purpose of one-time multi-classification and automatic selection of the number of weak classifiers is achieved.
[0009] To achieve the above object, the present invention provides an imbalanced data soft classification method based on a multi-class exponential loss function, the steps of which are as follows:
[0010] S1. Load the unbalanced data class with N samples and M categories, identify the label column of the data set, convert it into a 0-1 label matrix T, and divide the unbalanced data class into a training set and a test set;
[0011] S2, according to the sample weight D m Train the mth weak learner BL m ;
[0012] S3, calculate the supervision index by the constraint formula and add the best node;
[0013] S4. Calculate output weight β * Get network output;
[0014] S5, update the network residual and evaluate the current modeling situation;
[0015] S6, update the objective function, calculate and determine whether the loss of the model is less than the given tolerance ε, if it is less than the given tolerance ε, the overall modeling process ends and the sample weight is updated, otherwise go to step S7;
[0016] S7. Calculate the classification error rate of the current sample weight.
[0017] Preferably, in step S2, according to the sample weight D m Train the mth weak learner BL m Specifically:
[0018] S21. Establish the mth weak learner BL m The network of L-1 hidden nodes, then the mth weak learner BL m The network output is expressed as:
[0019]
[0020] Where w j =[w j1 , ..., w jd ] T , b j =[b j1 , ..., b jd ] T are the input weights and biases of the hidden layer nodes, β j =[β j1 , ..., β jm ] T is the output weight between the hidden layer and the output layer, g j Represents the activation function, here it is the sigmoid activation function;
[0021] S22, the network output in step S21 is processed by the SoftMax layer, that is, The predicted value of the probability distribution of each category of its output is set to be strictly 1, and there is no probability exceeding 1 and negative probability. The network output after processing by the SoftMax layer is expressed as:
[0022]
[0023] The meanings of the parameters in the formula are the same as those in formula (1).
[0024] Preferably, in step S3, the supervision index is calculated by the constraint formula and the best node is added, specifically:
[0025] Randomly generate input weights w from an adjustable interval L and bias b L , and calculate the supervision index:
[0026]
[0027] in, ||·|| represents the Frobenius norm. In this case, e L-1 , q represents the network residual corresponding to the output when modeling the L-1th node, r is the scaling factor, u L Less than or equal to (1-r); according to the supervision index ξ from the candidate node pool L The hidden node with the maximum value is updated to the network.
[0028] Preferably, in step S4, the output weight β is calculated * Get the network output, specifically:
[0029] The best node selected according to the constraint inequality uses the least squares method to calculate the output weight:
[0030]
[0031] Among them, H is the hidden layer output and T is the label matrix:
[0032] HH T represents a non-singular matrix, H=[H 1 , H 2 , ..., H L ] T .
[0033] Preferably, in step S5, the network residual is updated to evaluate the current modeling situation, specifically:
[0034] S51, according to the network output expression of formula (2), the network residual e is updated using cross entropy L-1 , the updated network residual expression is:
[0035]
[0036] S52: According to the updated network residual in step S51, the cross entropy loss is used to evaluate the modeling situation at the current stage. The calculation formula of the cross entropy loss is:
[0037]
[0038] Preferably, in step S6, the objective function is updated:
[0039]
[0040] Computational model If the loss is less than the given tolerance ε, the overall modeling process ends, otherwise it goes to step S7, where BL represents the base learner and v represents the proportion of the base learner in the final output.
[0041] Preferably, in step S7, if the current loss of the model is greater than the given tolerance ε, the supervision indicator BL m Add a node and calculate the BL under the current sample weight m The classification error rate error m , the classification error rate calculation formula is as follows:
[0042]
[0043] If error m-1 >error m , then stop adding nodes to the mth model, save the parameters of the mth model, and calculate the error based on the current sample weightm , assign weight v to the mth model m :
[0044]
[0045] Where K represents the number of sample categories;
[0046] Update sample weight D m+1 :
[0047]
[0048] Let m = m + 1, D m =D m +1,
[0049] Then the m+1th model is based on Continue modeling;
[0050] If error m-1 <error m , return to step S3 to continue searching and updating nodes until the whole When the preset error is met, the modeling process ends.
[0051] Therefore, the present invention adopts the above-mentioned unbalanced data soft classification method based on multi-category exponential loss function, and the beneficial effects are as follows:
[0052] (1) The entropy-based modeling method has a fast update speed and stronger learning approximation ability. The expansion of SCNs from hard classification to soft classification does not increase the calculation time, and the accuracy is higher under the same nodes, indicating that the learned features are more effective.
[0053] (2) The present invention has a higher recognition accuracy for minority class samples and automatically establishes the number of weak classifiers according to the modeling situation without manual adjustment; the classifiers with higher classification accuracy are assigned larger weights, which makes the misclassified samples receive more and more attention, thereby improving the impact of sample imbalance on model recognition accuracy.
[0054] (3) The present invention is based on entropy updating and uses cross entropy as the evaluation criterion, so that the network output value is converted into a probability distribution, which effectively transforms SCNs from a hard classification method to a soft classification method, and can be applied to multi-label classification problems; in practical applications, the true category can be judged according to the probability value, which helps users to have a more comprehensive understanding of the characteristics of the sample and increases practicality.
[0055] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1It is a modeling and identification overall flow chart of an embodiment of an imbalanced data soft classification method based on a multi-class exponential loss function of the present invention;
[0057] Figure 2 It is a modeling flow chart of an embodiment of an imbalanced data soft classification method based on a multi-class exponential loss function of the present invention;
[0058] Figure 3 This is a comparison chart of recognition accuracy of an embodiment of an unbalanced data soft classification method based on a multi-class exponential loss function of the present invention;
[0059] Figure 4 It is a comparison diagram of modeling speeds using different losses in an embodiment of an unbalanced data soft classification method based on a multi-class exponential loss function of the present invention;
[0060] Figure 5 It is a graph showing the loss decrease in the training phase of an embodiment of an unbalanced data soft classification method based on a multi-class exponential loss function of the present invention;
[0061] Figure 6 It is a weight distribution diagram of each weak classifier in an embodiment of an unbalanced data soft classification method based on a multi-class exponential loss function of the present invention;
[0062] Figure 7 This is a recognition result diagram based on entropy update in an embodiment of an imbalanced data soft classification method based on a multi-category exponential loss function of the present invention. DETAILED DESCRIPTION
[0063] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.
[0064] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.
[0065] like Figure 1 , Figure 2 As shown in Figure 1, a soft classification method for imbalanced data based on a multi-category exponential loss function is shown in the following steps:
[0066] S1. Load the unbalanced data class with N samples and M categories, identify the label column of the data set, convert it into a 0-1 label matrix T, and divide the unbalanced data class into a training set and a test set;
[0067] Set the overall tolerance ε = 0.05 required before model building, the learning parameter r = 0.999, and the random allocation interval [-λ,λ] d , the maximum number of iterations T max =30; Initialize sample weight D 1 =(w 11,…,w 1i ,…w 1N ),w 1i =1 / n,i=1,2…n.
[0068] S2, according to the sample weight D m Train the mth weak learner BL m , specifically:
[0069] S21. Establish the mth weak learner BL m The network of L-1 hidden nodes, then the mth weak learner BL m The network output is expressed as:
[0070]
[0071] Where w j =[w j1 ,...,w jd ] T ,b j =[b j1 ,...,b jd ] T are the input weights and biases of the hidden layer nodes, β j =[β j1 ,...,β jm ] T is the output weight between the hidden layer and the output layer, g j Represents the activation function, here it is the sigmoid activation function.
[0072] S22, in order to convert the actual output of SCNs into a probability distribution, the network output in step S21 is processed by the SoftMax layer, that is, The predicted value of the probability distribution of each category of its output is set to be strictly 1, and there is no probability exceeding 1 and negative probability. The network output after processing by the SoftMax layer is expressed as:
[0073]
[0074] The meanings of the parameters in the formula are the same as those in formula (1).
[0075] S3. Calculate the supervision index by the constraint formula and add the best node, specifically:
[0076] If the loss fails to meet the ideal tolerance ε, the network will continue to randomly generate input weights w from the adjustable interval L and bias b L , and calculate the supervision index:
[0077]
[0078] in, ||·|| represents the Frobenius norm. In this case, e L-1,q Represents the network residual corresponding to the output when modeling the L-1th node, where r is the scaling factor and u L Less than or equal to (1-r); here e L-1,q Different from the original SCNs, the present invention uses cross entropy to update the residual, thereby changing the selection criteria of input weights and biases. L The hidden node with the maximum value is updated to the network.
[0079] S4. Calculate output weight β * Get the network output, specifically:
[0080] The best node selected according to the constraint inequality uses the least squares method to calculate the output weight:
[0081]
[0082] Among them, H is the hidden layer output and T is the label matrix:
[0083] HH T represents a non-singular matrix, H=[H 1 ,H 2 ,...,H L ] T .
[0084] S5. Update the network residual and evaluate the current modeling situation, specifically:
[0085] S51. The present invention believes that the actual meaning of the network output and the label matrix in the classification problem should be two probability distributions, while the network residual calculation formula (5) below is actually to directly make the difference between the two probability distributions, which has no practical meaning.
[0086] e L-1 =ff L-1 =[e L-1,1 ,e L-1,2 ,...,e L-1,m ] T ,e 0 =T (5),
[0087] Therefore, unlike the existing SCNs network residual update (5), the present invention uses the cross entropy to update the network residual e according to the network output expression of formula (2) L-1 , to indicate the similarity of the two probability distributions, the updated network residual is expressed as:
[0088]
[0089] It is more practical to use cross entropy to describe the difference between the probability distribution of the network output and the true probability distribution, so that the SCNs network approximates a probability distribution with practical significance instead of a 0-1 label matrix. And here, the network needs to learn only the gap between the true category. If the network predicts that the value of a certain category is 0.3, and the true probability is 0, then the calculation of formula (6) is still 0. If the predicted probability is 0.2 and the true is 1, the network residual is 0.8 according to the previous strategy, and it is calculated as 1.61 using formula (6), making the difference between the predicted distribution and the true distribution more prominent. This is why this strategy is used in subsequent experiments. The modeling speed of the present invention will be faster and the learning efficiency will be higher.
[0090] S52: According to the updated network residual in step S51, the cross entropy loss is used to evaluate the modeling situation at the current stage. The calculation formula of the cross entropy loss is:
[0091]
[0092] S6. Update the objective function:
[0093]
[0094] Computational model The loss of the model is determined, and whether the loss of the model is less than the given tolerance ε. If it is less than the given tolerance ε, the overall modeling process ends and the sample weight is updated. Otherwise, the process goes to step S7, where BL represents the base learner and v represents the proportion of the base learner in the final output.
[0095] At this time, unlike the original SCNs network output, the cross entropy update is combined with the SoftMax layer to make the SCNs network output a probability distribution without increasing the calculation time. This is a good way to transform SCNs from being applicable only to single-label classification problems to being applicable to multi-label classification problems. If only SoftMax is added to the output layer here, it will be found that the loss cannot converge during training.
[0096] S7. If the current loss of the model is greater than the given tolerance ε, the supervision indicator BL m Add a node and calculate the BL under the current sample weight m The classification error rate error m , the classification error rate calculation formula is as follows:
[0097]
[0098] The condition for each weak classifier of the present invention to stop modeling is that the classification error rate calculated based on the current sample weight is less than the classification error rate calculated by the previous weak classifier based on the previous sample weight. When selecting weak classification, other technologies will deliberately select algorithms with rough classification rules to meet the randomness requirements.
[0099] The present invention first improves SCN into a random configuration network based on entropy update with stronger classification ability, and then redesigns the overall convergence rule, that is, the classification error rate calculated according to the sample weight is monotonically decreasing with the increase of weak classifiers. The benefit of doing so can greatly save the number of weak classifiers needed, because the classification error samples that need to be paid attention to in each layer of the model with strong randomness and strong learning ability will be less, which improves learning efficiency. The experimental results in the following text will prove that this technology is unlike the method based on binary trees (i.e., two categories are divided at a time, and hundreds of learners need to be constructed to achieve ideal classification accuracy). The present invention only needs a dozen weak classifiers to obtain good classification performance.
[0100] If error m-1 >error m , then stop adding nodes to the mth model, save the parameters of the mth model, and calculate the error based on the current sample weight m , assign weights to the mth model:
[0101]
[0102] Where K represents the number of sample categories;
[0103] Update sample weight D m+1 :
[0104]
[0105] Let m = m + 1, D m =D m +1,
[0106] Then the m+1th model is based on Continue modeling;
[0107] If error m-1 <error m , return to step S3 to continue searching and updating nodes until the whole When the preset error is met, the modeling process ends.
[0108] In other ensemble learning algorithms, it is usually necessary to manually set the number of weak classifiers, which requires users to conduct repeated experiments to determine the optimal parameters. However, the present invention sets the stop condition to meet the overall loss, thereby achieving the purpose of automatically selecting the number of weak classifiers.
[0109] The present invention is verified on a human modal data set, which is 6 types of human modal data collected by a constant frequency sensor, and the sample ratio is 152:180:80:156:176:86. The samples are divided into a training set and a test set for 6-category recognition, and the SCNs and the present invention technology are compared. Figure 3 On the human modality recognition dataset, 1000 nodes are also modeled. The method adopted by the present invention only takes 629.99s, while the original SCN residual update-based method takes 778.98s, indicating that the present invention does not increase the calculation time by extending SCNs from hard classification to soft classification. And from the curve, it can be seen that the learning accuracy of the method provided by the present invention rises more steadily, and the accuracy is higher under the same nodes, indicating that the learned features are more effective.
[0110] like Figure 3 The left confusion matrix is the recognition result of the present technical method on the test set, and the right matrix is the recognition result of SCNs on the test set. Going down stairs and running are two minority sample categories. It can be seen that the recognition accuracy of the present method for the two minority sample categories is 22% and 16% higher than that of SCNs respectively.
[0111] from Figure 5 It can be seen that as the number of weak classes reaches 13, the overall loss of the network drops below 0.05, and the network automatically stops modeling, achieving the purpose of automatically establishing the number of weak classifiers according to the modeling situation without manual adjustment.
[0112] like Figure 6 In the subsequent classification, classifiers with higher classification accuracy are assigned larger weights, which makes misclassified samples receive more and more attention and improves the impact of sample imbalance on model recognition accuracy.
[0113] The present invention is verified on a public dataset of handwritten character recognition, which contains 70,000 samples, 10 categories, 7,000 images in each category, and a single image size of 28*28. Figure 7 When using the method provided by the present invention to classify and recognize handwritten characters, the predicted probability value of the sample belonging to each category can be output. In practical applications, the true category can be judged based on the probability value, which helps users to have a more comprehensive understanding of the characteristics of the sample and increases practicality.
[0114] Therefore, the present invention adopts the above-mentioned unbalanced data soft classification method based on the multi-class exponential loss function, and re-evaluates the modeling degree of the network by introducing the SoftMax layer and the cross entropy loss to solve the influence of outliers on the index when using RMSE as the evaluation index; by introducing the cross entropy to measure the difference between the model prediction and the true probability distribution, the weight of the newly added node of SCNs is selected according to the cross entropy, rather than the difference between the probability distribution predicted by the two models and the true probability distribution as the update basis, which overcomes the original method of directly making a difference to obtain a network probability residual matrix containing negative values or greater than 1 that has no practical significance; finally, by introducing the multi-class exponential loss function (SAMME) and the stop modeling condition, the purpose of one-time multi-classification and automatic selection of the number of weak classifiers is achieved.
[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A soft classification method for imbalanced data based on multi-class exponential loss function, characterized in that: Here are the steps: S1. When doing image classification tasks, first load the unbalanced data class, with the number of samples being N and the categories being M, identify the label column of the data set, convert it into a 0-1 label matrix T, and divide the unbalanced data class into a training set and a test set, output the predicted probability value of the sample belonging to each category, and determine its true category based on the probability value; S2, according to the sample weight D m Train the mth weak learner BL m ; S3, calculate the supervision index by the constraint formula and add the best node; S4. Calculate output weight β * Get network output; S5, update the network residual and evaluate the current modeling situation; S6, update the objective function, calculate and determine whether the loss of the model is less than the given tolerance ε, if it is less than the given tolerance ε, the overall modeling process ends and the sample weight is updated, otherwise go to step S7; S7, calculating the classification error rate of the current sample weight; In step S2, according to the sample weight D m Train the mth weak learner BL m Specifically: S21. Establish the mth weak learner BL m The network of L-1 hidden nodes, then the mth weak learner BL m The network output is expressed as: Where w j =[w j1 ,...,w jd ] T ,b j =[b j1 ,...,b jd ] T are the input weights and biases of the hidden layer nodes, β j =[β j1 ,...,β jm ] T is the output weight between the hidden layer and the output layer, g j Represents the activation function, here it is the sigmoid activation function; S22, the network output in step S21 is processed by the SoftMax layer, that is, The predicted value of the probability distribution of each category of its output is set to be strictly 1, and there is no probability exceeding 1 and negative probability. The network output after processing by the SoftMax layer is expressed as: The meanings of the parameters in the formula are the same as those in formula (1).
2. The unbalanced data soft classification method based on multi-class exponential loss function according to claim 1 is characterized in that: In step S3, the supervision index is calculated by the constraint formula and the best node is added, specifically: Randomly generate input weights w from an adjustable interval L and bias b L , and calculate the supervision index: in, ||·|| represents the Frobenius norm. In this case, e L-1,q Represents the network residual corresponding to the output when modeling the L-1th node, r is the scaling factor, u L Less than or equal to (1-r); according to the supervision index ξ from the candidate node pool L The hidden node with the maximum value is updated to the network.
3. The unbalanced data soft classification method based on multi-class exponential loss function according to claim 1 is characterized in that: In step S4, the output weight β is calculated * Get the network output, specifically: The best node selected according to the constraint inequality uses the least squares method to calculate the output weight: Among them, H is the hidden layer output and T is the label matrix: HH T represents a non-singular matrix, H=[H1,H2,...,H L ] T .
4. The unbalanced data soft classification method based on multi-class exponential loss function according to claim 1, characterized in that: In step S5, the network residual is updated to evaluate the current modeling situation, specifically: S51, according to the network output expression of formula (2), the network residual e is updated using cross entropy L-1 , the updated network residual expression is: S52: According to the updated network residual in step S51, the cross entropy loss is used to evaluate the modeling situation at the current stage. The calculation formula of the cross entropy loss is:
5. The method for soft classification of imbalanced data based on multi-class exponential loss function according to claim 1, characterized in that: In step S6, the objective function is updated: Computational model If the loss is less than the given tolerance ε, the overall modeling process ends, otherwise it goes to step S7, where BL represents the base learner and v represents the proportion of the base learner in the final output.
6. The method for soft classification of imbalanced data based on multi-class exponential loss function according to claim 1, characterized in that: In step S7, if the current loss of the model is greater than the given tolerance ε, the supervision indicator BL m Add a node and calculate the BL under the current sample weight m The classification error rate error m , the classification error rate calculation formula is as follows: If error m-1 >error m , then stop adding nodes to the mth model, save the parameters of the mth model, and calculate the error based on the current sample weight m , assign weight v to the mth model m : Where K represents the number of sample categories; Update sample weight D m+1 : Let m = m + 1, D m =D m +1, Then the m+1th model is based on Continue modeling; If error m-1 <error m , return to step S3 to continue searching and updating nodes until the whole When the preset error is met, the modeling process ends.
