SMOTE sampling method based on indirect probability density

Through the SMOTE sampling method of indirect probability density, combined with UnderBagging-alike undersampling ensemble and SVM classifier, it solves the problems of over-adaptation and information loss in class imbalance learning, achieves more accurate data distribution estimation and noise filtering, and improves Generalization performance and robustness of classifiers.

CN118861677AInactive Publication Date: 2024-10-29HARBIN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410821669.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing class imbalance learning methods have problems such as over-adaptation, information loss and noise propagation when dealing with complex data distribution. Especially in large-scale data and non-linear classification scenarios, it is difficult to effectively balance training data and improve classifier generalization. performance.

Method used

An indirect probability density SMOTE sampling method is proposed, which combines the UnderBagging-alike undersampling integration algorithm and the SVM classifier. Through random sampling, noise filtering and sample weight allocation, new samples are generated to achieve class balance, and the confusion information interception threshold is used λ=0.5 is used for noise filtering to ensure the importance of boundary samples.

Benefits of technology

It effectively avoids over-adaptation, retains information, improves the generalization performance and robustness of the classifier, and ensures accuracy and stability in category imbalanced data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SMS_1
    Figure SMS_1
  • Figure SMS_2
    Figure SMS_2
  • Figure QLYQS_1
    Figure QLYQS_1
Patent Text Reader

Abstract

The invention relates to an SMOTE sampling method based on indirect probability density. And carrying out indirect distribution information exploration on the original data set by using an UnderBagging-alike under-sampling integration estimation method based on an SVM (Support Vector Machine). And according to the distribution information, samples with the identification error probability exceeding 0.5 are regarded as noise samples to be screened out, weight distribution is carried out on the denoised minority class samples according to the distribution information, the number of new samples needing to be generated by each minority class sample is further determined, and an SMOTE algorithm is used for carrying out sample balance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0001] The present invention relates to a SMOTE sampling method based on indirect probability density, which has a better effect in processing the problem of class imbalance. Background technology:

[0002] The technology in the field of class imbalance learning is no longer just a theory. It has been applied to many real-world application fields, such as network intrusion detection, credit card fraud detection, abnormal behavior detection, spam filtering, text classification, medical diagnosis, etc., which are troubled by class imbalance problems. Important breakthroughs have been made through class imbalance learning technology.

[0003] Since the 1990s, class imbalance learning has achieved breakthroughs from zero to one and then to multiple technologies becoming mature and successfully solving various problems. These technologies mainly include data level, algorithm level and integrated learning.

[0004] Sample sampling is a data layer processing method that achieves a basic balance in the training set by adding minority class samples or reducing majority class samples to solve the problem of class imbalance. The method of adding minority class samples is called oversampling, and the method of reducing majority class samples is called downsampling or undersampling. There are two simplest and most practical sample sampling techniques, namely random oversampling (ROS) and random undersampling (RUS). However, random oversampling technology will increase the time complexity and space complexity overhead of classifier training, and it is easy to have the problem of classifier overfitting, while random undersampling technology will cause serious loss of classification information, resulting in a significant decrease in classification performance. In 2002, Chawla et al. proposed a new oversampling method: SMOTE (Synthetic Minority Oversampling TEchnique) to overcome the shortcomings of random oversampling. SMOTE abandons the traditional method of oversampling and duplicating existing samples, and instead generates new samples between two adjacent minority class samples, effectively solving the over-adaptation problem of the ROS method. Data-level methods modify the sample set to evenly distribute and delete difficult samples. Due to their distance-based design (e.g., NearMiss, Tomeklink), they may not be suitable for data sets with categorical features or missing values. In addition, when applied to large-scale data, the computational cost is large (e.g., SMOTE, ADASYN).

[0005] Algorithmic-level methods directly modify existing learning algorithms to mitigate bias toward majority objects. However, they require professional help in advance (e.g., setting the cost matrix in cost-sensitive learning). They may also fail when working with batch-trained classifiers (such as neural networks) because they cannot balance the class distribution on the training data. Traditional cost-sensitive learning algorithms rely heavily on the cost matrix, which often ignores the location information in the feature space, so there is still a lot of room for performance improvement. There are two main ways to solve this problem: (a) quantify the prior distribution information of the samples and generate a new fuzzy cost weighted matrix; (b) combine the classifier with the Boosting ensemble learning model and continuously adjust the weights to improve the generalization performance of the classifier.

[0006] The ensemble method combines one of the previous methods with an ensemble learning algorithm to form an ensemble classifier. Some of them have high training costs and poor applicability in actual tasks (e.g., SMOTEBagging). When the data set is very noisy, it may lead to underfitting or overfitting (e.g., EasyEnsemble, BalanceCascade). In 2003, Chawla et al. proposed the SMOTEBoost method, which combines the SMOTE method with Boosting. The SMOTE algorithm was used to oversample the original training set before the traditional Boosting algorithm sample was weighted. In 2010, Seiffert et al. combined the Boosting algorithm with the random downsampling method and proposed the RUSBoost method, which performs better than SMOTEBoost. Random Forest has also been used to solve the problem of class imbalance. Sample sampling technology can be used to construct a balanced random forest, and cost-sensitive learning technology can be used to construct a weighted random forest. Summary of the invention:

[0007] The distribution of class-imbalanced data is usually complex and diverse, because there are many factors that may affect the overall data distribution, including class imbalance rate, noise ratio, intra-class subclusters, density changes, class overlap, etc. The fusion of these factors can make it more difficult to directly explore the true data distribution.

[0008] In order to solve the above problems, the present invention proposes a new indirect distribution information exploration strategy, which aims to make a more accurate estimate of the distribution information of imbalanced data. The present invention proposes UnderBagging based on the CIL algorithm. As an undersampling ensemble algorithm, undersampling first randomly extracts the majority class to construct a majority class subset, then combines each majority class subset with all minority samples to construct a balanced training set, and finally trains the learning model on each balanced training set and makes decisions by majority voting. UnderBagging can be regarded as a combination of random undersampling and Bagging ensemble. In this algorithm, all samples are utilized to avoid information loss; and approximately unbiased classification boundaries are generated on each training set. In UnderBagging, noise samples have a very high error rate, while safe samples usually have a fairly low error rate, and the error rate of samples near the boundary line tends to be moderate. This feature helps to accurately locate samples.

[0009] In order to avoid overfitting, the present invention makes adjustments to the UnderBagging algorithm, that is, undersampling of two classes at the same time. In the improved UnderBagging-alike algorithm, 2 / 3 of the minority class samples and the same number of majority class samples are randomly selected to form each training subset. At the same time, SVM is selected as the basic classifier for the following two reasons: 1) SVM is robust enough, and 2) SVM can handle nonlinear classification problems.

[0010] The confusion information can effectively reflect the position of each sample in the original data distribution. Usually, noise corresponds to high confusion information, safe samples correspond to low confusion information, and samples near the boundary line usually correspond to medium confusion information.

[0011] Therefore, in order to avoid noise propagation, the present invention designs a noise filtering mechanism by setting an interception threshold λ of obfuscated information. Specifically, the threshold λ should be set between 0 and 1, and should not be too large or too small. Through experiments, it is found that if the present invention gives λ an excessively large value, the noise will not be completely eliminated, and if the present invention specifies an excessively small λ, some boundary samples will be mistakenly deleted. Therefore, it is usually more reasonable to set λ to 0.5.

[0012] Another important issue is how to determine the selection probability of each minority sample, so as to generate samples more accurately. As mentioned above, samples near the boundary line are usually more important than those safe samples. Therefore, in SMOTE, new samples should be generated based on boundary samples as much as possible. Therefore, the formula for calculating the selection probability of each minority sample in the present invention is as follows:

[0013]

[0014] Among them, P i represents the selection probability of the i-th minority sample, CI i represents the confusion information of the sample, Z is the normalization factor,

[0015]

[0016] Among them, N +′ represents the number of minority samples after removing minority noise, so N +′ ≤N + After normalization, the sum of the selection probabilities of all retained minority samples is equal to 1.

[0017] Using the i-th minority sample as the seed sample, the formula for allocating the number of new samples required to generate it is as follows:

[0018] N i =(N -′ -N +′ )*P i

[0019] Among them, N i Represents the number of new samples required to generate the i-th minority class sample, N -′ Represents the number of majority samples after removing majority noise, N +′ Represents the number of minority samples after removing minority class noise.

[0020] The formula for generating new samples is as follows:

[0021] x new =x i +rand(0,1)*(x i -x′ i )

[0022] where x i is the selected seed sample, x′ i is one of the k nearest neighbors of the seed sample.

[0023] Beneficial effects:

[0024] 1. The present invention is a SMOTE sampling method based on indirect probability density. The UnderBagging-alike undersampling ensemble estimation method is used to explore the indirect distribution information of the original data set. Noise sample processing and sample weight allocation are performed according to the distribution information, and the number of new samples required to generate each minority class sample is further determined. It has a good effect on solving the category learning problem in the category imbalance problem.

[0025] 2. The UnderBagging-alike undersampling ensemble estimation method used in the present invention is based on SVM support vector machine. The biggest feature of SVM is that it can effectively solve high-dimensional problems in low-dimensional space through the inner product kernel function, that is, map data to a higher-dimensional space for better classification. SVM is a method based on small sample learning. The solution of SVM is sparse, that is, its final decision function is determined by only a few support vectors, so SVM has good robustness. In the improved UnderBagging-alike algorithm, 2 / 3 of the minority class samples and the same number of majority class samples are randomly selected to form each training subset. Repeat ten times to avoid overfitting and improve the generalization of the classifier.

[0026] 3. In order to avoid noise propagation, the present invention designs a noise filtering mechanism by setting an interception threshold λ=0.5 of confusing information, that is, samples with a ratio of misidentification greater than or equal to 0.5 will be regarded as noise samples and deleted.

[0027] 4. In the sample generation process, samples near the boundary line are usually more important than those safe samples. Therefore, in SMOTE, new samples should be generated based on boundary samples as much as possible. Therefore, the formula for calculating the sample selection probability pays more attention to boundary samples. Description of the drawings:

[0028] Figure 1 Flow chart of the SMOTE sampling method based on indirect probability density in an embodiment of the present invention. Specific implementation method:

[0029] Step 1: Use the UnderBagging-alike undersampling ensemble estimation method to indirectly explore the distribution information of the original data set.

[0030] Step 2: Filter the noise of the data set based on the confusion information to avoid the noise propagation phenomenon caused by noise samples during the oversampling process, which ultimately affects the learning effect of the classifier.

[0031] Step 3: According to the indirect distribution information of the samples, weights are assigned to the denoised minority samples in turn as a guarantee of the probability of being selected as seed samples.

[0032] Step 4: According to the weight of the samples, select seed samples for oversampling until the category balance is achieved.

Claims

1. A SMOTE sampling method based on indirect probability density, characterized in that: The method comprises the following steps: Step 1: Use the UnderBagging-alike undersampling ensemble estimation method to indirectly explore the distribution information of the original data set; Step 2: Filter the noise of the data set based on the confusion information to avoid the noise propagation phenomenon caused by noise samples during the oversampling process, which ultimately affects the learning effect of the classifier; Step 3: According to the indirect distribution information of the samples, weights are assigned to the denoised minority samples in turn as a guarantee of the probability of being selected as seed samples; Step 4: According to the weight of the samples, select seed samples for oversampling until the category balance is achieved.

2. The SMOTE sampling method based on indirect probability density according to claim 1, characterized in that: In step 1, indirect distribution information exploration is performed on the original data set, and the specific steps are as follows: Step 1-1 randomly selects 2 / 3 of the minority class samples and the same number of majority class samples to form each training subset; In step 1-2, each training subset is trained using an SVM support vector machine, and the number of correct and incorrect predictions for each sample is counted.

3. The SMOTE sampling method based on indirect probability density according to claim 1, characterized in that: In step 2, noise filtering is performed on the data set based on the confusion information. The specific steps are as follows: In step 2-1, all samples with a misidentification probability greater than 50% are removed as noise samples.

4. The SMOTE sampling method based on indirect probability density according to claim 1, characterized in that: In step 3, weights are assigned to the denoised minority class samples in sequence, and the specific steps are as follows: Step 3-1 Calculate the selection probability of the sample based on the correct and incorrect predictions of the sample. The formula is as follows P i =CI i / WITH Among them, P i represents the selection probability of the i-th minority sample, CI i Represents the confusion information of the sample, and Z is the normalization factor Among them, N +' represents the number of minority samples after removing minority noise, so N +' ≤N + , after normalization, the sum of the selection probabilities of all retained minority samples is equal to 1.

5. The SMOTE sampling method based on indirect probability density according to claim 1, characterized in that: In step 4, seed samples are selected for oversampling, and the specific process is as follows: Step 4-1 allocates the number of new samples required to generate for each minority class sample. The formula for allocating the number of new samples generated is as follows: N i =(N-'-N +' )*P i Among them, N i Represents the number of new samples required to generate the i-th minority class sample, N -' Represents the number of majority samples after removing majority noise, N +' Represents the number of minority samples after removing minority class noise; Step 4-2 oversamples the denoised minority samples. For each randomly selected neighbor sample x′ i , a new sample can be generated according to the following equation: x new =x i +rand(0,1)*(x i -x′ i ) where x i is the selected seed sample, x' i is one of the k nearest neighbors of the seed sample.