A two-stage adaptive sampling method for unbalanced SAR target recognition
Through the two-stage adaptive sampling method, combined with synthetic oversampling and self-determined step learning strategies, the problem of data imbalance in SAR target recognition is solved and the recognition performance and robustness are improved.
Patent Information
- Application Number
- CN202210885949.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In SAR target recognition, due to the imbalance of data categories, the recognition model is biased towards the majority class, and the recognition performance is seriously attenuated. Existing methods only start from the perspective of the majority class or minority class and cannot effectively solve the problem of class imbalance.
A two-stage adaptive sampling method is adopted to expand minority class samples through improved synthetic oversampling technology. During the training process, based on a self-defined step learning strategy, simple samples of the majority class are prioritized and gradually incorporated into minority class samples to construct Relatively balanced data set to reduce imbalance.
It effectively improves the SAR target recognition performance under category imbalance conditions, reduces learning bias and overfitting, and improves the robustness of recognition.
Smart Images

Figure CN115421141B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of radar image processing, and in particular relates to an unbalanced SAR target recognition method of two-stage adaptive sampling. Background Art
[0002] Synthetic Aperture Radar (SAR) is an active microwave imaging system. It has been widely used in military and civilian fields due to its strong penetration and all-weather capability. Since SAR images are susceptible to coherent speckle noise, geometric distortion, etc., it is difficult to achieve robust feature extraction and accurate target classification by manual methods alone. In the early days, scholars designed a three-stage SAR automatic target recognition (ATR) process including detection, identification, and classification, while related research on SAR target recognition focused more on the classification stage.
[0003] With the rapid development of machine learning theory, learning-based methods usually achieve better target recognition performance than traditional methods and have become the mainstream of SAR target recognition. The balance of training data for the task to be learned is a prerequisite for the recognition model to obtain robust performance. However, in actual application scenarios, especially in military scenarios, due to many factors such as the limited capture capability of sensors and the non-cooperative characteristics of targets, the collected SAR target samples often have imbalanced category data. In the case of imbalanced training data categories, the number and information of minority class target samples are small, which leads to a lack of identification information during classification. The recognition model will be extremely biased towards the classification of majority class samples, resulting in serious attenuation of the model's recognition performance. The existing methods for solving the class imbalance problem mainly start from the two levels of data and algorithm, but these methods only consider solving the class imbalance problem from the perspective of majority class or minority class, which makes its recognition performance poor. Therefore, in order to solve the SAR target recognition problem under class imbalance conditions, the present invention proposes an unbalanced SAR target recognition method with two-stage adaptive sampling. Summary of the invention
[0004] Aiming at the above problems in SAR target recognition, a two-stage adaptive sampling unbalanced SAR target recognition method is proposed. Firstly, an improved synthetic oversampling technique is designed to expand the samples of minority class targets from the perspective of data manifold to reduce the imbalance between majority class and minority class data; then, a simple sample selection strategy based on self-determined step size learning is proposed. In the process of training the recognition model, the majority class samples with small loss and large amount of information are preferentially selected, and simple samples are gradually incorporated until the pre-set sample size is met. To a certain extent, the quantitative difference between the majority class and the minority class is further balanced, and a relatively balanced data set is constructed; finally, the target recognition model obtained in the training stage can complete the class label inference of the new sample. This method can provide a guarantee for robust SAR target recognition under the condition of imbalanced sample categories.
[0005] The technical solution of the present invention is a two-stage adaptive sampling unbalanced SAR target recognition method, the method steps comprising:
[0006] Step 1: Collect SAR image training samples D = (x i ,y i ),i=1,2,3,...,N, where x i is the i-th SAR image target sample, y i Represents sample x i The class label, N is the total number of samples; and the target area is cropped;
[0007] Step 2: Expand the minority class target samples and move the boundary of the classification decision to the sample instances that are more difficult to learn, thereby reducing the learning bias caused by the imbalanced distribution of the original data;
[0008] Step 2.1: Use the following formula to determine the total number of synthetic minority class samples required to process the minority class targets:
[0009] M=(N d -N s )×χ
[0010] Among them, N s N is the number of samples of the minority class that need to be processed. d is the number of samples of the majority class selected, χ is a randomly generated number used to characterize the balance level of the data set after data synthesis, and χ = 1 means that the synthesized data set is a balanced data set;
[0011] Step 2.2: Define the minority class samples whose number of surrounding majority class samples is greater than the set threshold as difficult samples with high learning difficulty, and adaptively synthesize more data for the minority class samples with high learning difficulty; first, for each minority class sample x i Search its K neighbors, r iRepresents the majority class samples around the minority class samples, and calculates the proportion of the majority class in the K neighbors:
[0012]
[0013] Among them, Δ i For x i The number of samples of the majority class in the K neighbors of ;
[0014] Step 2.3: i Standardization is performed to facilitate uniformity of the degree of adaptation;
[0015] It is used to characterize the degree of adaptability, and its expression is:
[0016]
[0017] Step 2.4: Adaptation based on different minority class samples Calculate the number of synthetic samples M for each minority class sample i , so that data augmentation focuses on minority class samples that are difficult to learn, the synthesis formula is as follows:
[0018]
[0019] Step 2.5: To enhance the minority class features, a synthetic oversampling method is used to calculate the number of synthetic samples M for each minority class sample in the class. i Adaptively amplify and synthesize new samples by random linear interpolation:
[0020] x new =x i +rand(0,1)×|x zi -x i |
[0021] Among them, x i represents a minority class sample selected this time, rand(0,1) represents a random number between (0,1), x zi Indicates that from x i A sample randomly selected from the K nearest neighbors;
[0022] Step 2.6: Adaptively synthesize samples for each minority class, combine the newly synthesized minority class samples with the majority class data, and merge them to form a new sample set;
[0023] Step 3: During the classification model training process, simple sample selection is performed on the target samples of the majority class to train the model to further balance the data set;
[0024] Step 3.1: Calculate the error matrix W, where W is the error matrix between the predicted value output by the model classification layer and the true sample label value;
[0025] Step 3.2: In order to select simple samples from the majority class for model training during the iterative learning process of the model, set the iteration step size to λ, λ is between 0 and 1, and gradually iterate λ until the iteration requirements are met. The value of λ gradually increases, and more and more samples will be included in the training process; define the iteration step size parameter as μ, and after each iteration, λ is updated to λ+μ. The calculation formula of the iteration step size parameter is:
[0026]
[0027] Among them, λ0 is the initial step size, num e is the training cycle size for network training;
[0028] Step 3.3: Set a simple sample measurement threshold to determine simple samples in the self-paced learning process. Samples less than the threshold are determined as simple samples in this iteration; set the threshold thred to determine which samples will be included in this training process. The calculation formula of the threshold thred is:
[0029] thred=min(W)+λ×(max(W)-min(W))
[0030] Step 3.4: To achieve simple sample selection and model iterative training for the majority class target, design an objective function based on a self-determined step size;
[0031] By adding a regularization term to the objective function, the recognition model can automatically select simple samples during the iteration process. The objective function is as follows:
[0032]
[0033] Among them, f(x i ,w) represents the learning model, w represents the parameters of the model, L(y i ,f(x i ,w)) represents the loss function of the i-th minority class sample, v i Indicates whether this sample is selected into the majority class training set, v i =1 means this sample is selected this time, v i =0 means no selection this time, E(w,v,λ) represents the objective function;
[0034] Step 4: Based on the above steps, the SAR target recognition model is obtained. For a sample x to be identified, the softmax classification model is applied to convert the output into a probability distribution with positive values and a sum of 1, and the predicted probability value of each classification is output. The probability of belonging to the jth classification is:
[0035]
[0036] Where C is the number of sample categories, and exp(·) represents the normalized exponential function to ensure the non-negativity of probability.
[0037] In summary, the beneficial effects of the present invention are as follows:
[0038] The present invention proposes a two-stage adaptive sampling imbalanced data processing method for solving the problem of imbalanced SAR image target recognition. Compared with the existing methods, the present invention reduces the imbalance of data through a two-stage processing method from the perspectives of minority class targets and majority class targets. Specifically, the present invention adopts the idea of interpolation to adaptively synthesize minority class target samples that are difficult to identify to strengthen the minority class edge, and move the boundary of the classification decision to the sample instance that is more difficult to learn, thereby reducing the learning bias caused by the imbalanced distribution of the original data, thereby avoiding the situation where the majority class is confused with the minority class, and reducing the possibility of overfitting and sample overlap; at the same time, in order to further improve the balance of the data, the present invention proposes a sample selection strategy based on self-step learning in the classification model training stage, selects the most informative simple samples from the majority class target samples, and jointly trains the recognition model with the amplified minority class samples. The invention can effectively improve the SAR target recognition performance under class imbalance conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a line graph of the recognition rate results under different IR ratios;
[0040] Figure 2 Flow chart of the method of the present invention. DETAILED DESCRIPTION
[0041] The following will be described in detail with reference to the accompanying drawings and specific implementation steps to better reflect the technical points of the present invention. The present invention is a two-stage adaptive sampling unbalanced SAR target recognition method. The overall process of the method is as follows: Figure 1 As shown, each step is specifically implemented in the following manner:
[0042] Step 1: Collect SAR image training samples D = (x i ,y i ),i=1,2,3,...,N, N is the total number of samples. Among them, x i is the i-th SAR image target sample, y i Represents sample x i The dataset is unbalanced, and there is an imbalanced ratio (IR) between different majority and minority classes:
[0043]
[0044] Step 1.1: Considering that the target area usually occupies relatively few pixels in a SAR image, the SAR image is cropped into slices of size 64×64.
[0045] Step 2: Use improved synthetic oversampling technology to expand minority target samples;
[0046] Step 2.1: Use the following formula to determine the total number of synthetic minority class samples required for a minority class target to be processed:
[0047] M=(N d -N s )×χ
[0048] Among them, N s N is the number of samples of a minority class that needs to be processed. d is the number of samples of the majority class selected, χ is a randomly generated number used to characterize the balance level of the data set after data synthesis, and χ=1 means that the synthesized data set is a balanced data set;
[0049] Step 2.2: In the imbalanced problem, define the minority class samples with more majority class samples around as difficult samples with high learning difficulty, and adaptively synthesize more data for the minority class samples with higher learning difficulty. First, for each minority class sample x i Search its K neighbors, r i It is used to characterize the majority class samples around the minority class target samples and calculate the proportion of the majority class in the K neighbors:
[0050]
[0051] Among them, Δ i For x i The number of samples of the majority class in the K neighbors of ;
[0052] Step 2.3: i Standardization is performed to unify the degree of adaptation. i Large minority samples are difficult samples, with a high degree of adaptability, and more samples need to be adaptively synthesized. Defining density distribution The number of samples required to synthesize different minority class instances is measured according to the difficulty of learning each sample. Normalization is used to characterize the degree of adaptation, and its expression is:
[0053]
[0054] Step 2.4: Adaptation based on different minority class samples Calculate the number of synthetic samples M for each minority class sample i , forcing data augmentation to focus on minority class samples that are difficult to learn, the synthesis formula is as follows:
[0055]
[0056] Step 2.5: To enhance the minority class features, synthetic oversampling technology is used to calculate the number of synthetic samples M for each minority class sample in the class. i Adaptively amplify and synthesize new samples by random linear interpolation:
[0057] x new =x i +rand(0,1)×|x zi -x i |
[0058] Among them, x i represents a minority class sample selected this time, x zi Indicates that from x i A sample randomly selected from the K nearest neighbors.
[0059] Step 2.6: Adaptively synthesize samples for each minority class, combine the new samples with the majority class data, and merge them to form a new sample set;
[0060] Step 3: During the classification model training process, simple sample selection is performed on the target samples of the majority class to further balance the data set;
[0061] Step 3.1: Calculate the error matrix W, which is the error matrix between the predicted value output by the model classification layer and the true sample label value. W is used to set the threshold thred for selecting simple samples.
[0062] Step 3.2: In order to select simple samples of the majority class of targets during the iterative learning process of the model, set the iteration step length to λ, which is between 0 and 1. Iterate λ step by step until the iteration requirements are met. The value of λ gradually increases, and more and more samples will be included in the training process. Define the iteration step length parameter as μ, and after each iteration, λ is updated to λ+μ. The calculation formula of the iteration step length parameter is:
[0063]
[0064] Among them, λ0 is the initial step size, num e is the training epoch size for network training.
[0065] Step 3.3: Set a simple sample measurement threshold to determine simple samples in the self-paced learning process. Samples less than the threshold are determined as simple samples in this iteration. Set the threshold thred to determine which samples will be included in this training process. The calculation formula of the threshold thred is:
[0066] thred=min(W)+λ×(max(W)-min(W))
[0067] Step 3.4: To achieve simple sample selection and iterative model training for most classes, design an objective function based on a self-defined step size. When the value of λ is very small, the objective function will be more inclined to select samples with relatively small losses during the optimization process. As the number of iterations increases, the value of λ gradually increases, and more and more samples will be included in the training process. By adding a regularization term to the objective function, the recognition model can automatically select simple samples during the iteration process. The objective function is as follows:
[0068]
[0069] Among them, f(x i ,w) represents the learning model, w represents the model parameters to be learned, L(y i ,f(x i ,w)) represents the loss function of the i-th minority class sample, v i Indicates whether this sample is selected into the majority class training set, v i =1 means this sample is selected this time, v i =0 means no selection this time;
[0070] Step 4: Based on the above steps, a SAR target recognition model can be obtained. For a sample x to be identified, the probability that it belongs to the jth category can be given by the following formula:
[0071]
[0072] Among them, C is the number of sample categories;
[0073] 1. Simulation conditions:
[0074] This simulation uses the measured OpenSARShip2.0 standard data set. In order to simulate the SAR target recognition task under the condition of class imbalance, SAR images of some categories in the VV channel are selected for experiment. The data selected in this experiment are shown in Table 1, and the parameters of the CNN classification model in the present invention are shown in Table 2. The experimental platform is a Win10 64-bit computer system, 16GB memory, GPU model is NVIDIA GeForce GTX3050, PyCharm software environment, and all simulation experiments are completed using Python language based on the PyTorch framework.
[0075] Table 1 Unbalanced SAR target dataset containing five types of ship targets
[0076]
[0077] Table 2 CNN classification model in the present invention
[0078]
[0079] This experiment uses four evaluation indicators, namely, Sensitivity, Specificity, G-mean, and F-measure, to evaluate the performance of the proposed method. The definition of the above evaluation image indicators is based on the mixed matrix of the majority class and minority class data sets, which is used to evaluate the recognition accuracy of the minority class. The matrix is shown in Table 3.
[0080] Table 3 Mixture matrix based on majority and minority class datasets
[0081]
[0082] The specific formula of the evaluation index is as follows:
[0083] The accuracy of minority class samples is
[0084] The accuracy of most class samples is
[0085] The geometric mean accuracy is
[0086] The harmonic mean of precision and recall for the minority class is
[0087] The performance evaluation index F-measure is a commonly used performance evaluation index criterion for imbalanced classification recognition problems. This index will consider the precision and recall of the minority class at the same time. Only when the precision and recall are relatively large, F-measure will be large, that is, the precision and recall of the minority class must reach a relative balance, and the value of F-measure will be maximized. This performance index can comprehensively reflect the classification results of the majority and minority class samples, and more fully reflect the performance results of the minority class. The performance evaluation index G-mean comprehensively considers the overall classification performance of the majority and minority class samples. The value of G-mean increases monotonically with the accuracy of the majority and minority classes. Therefore, the increase of the performance index G-mean must meet the simultaneous increase of the accuracy of the majority and minority class samples. If the classifier is too biased towards one of the classes during recognition, the value of G-mean will gradually decrease. Compared with the simple recognition rate result, Sensitivity, Specificity, G-mean, and F-measure are less affected by data distribution and can more effectively reflect the recognition performance of the minority class. 2. Simulation content and results:
[0088] Simulation 1: Evaluating the effectiveness of a two-stage adaptive sampling unbalanced SAR target recognition method.
[0089] In this simulation, several traditional methods for unbalanced data sets are used as comparison methods, and the baseline method is to directly use CNN to extract features for classification. Method 1 is to use simple oversampling to process minority classes. First, the minority class samples are directly copied to achieve data set amplification, and then feature extraction and classification are performed through the CNN model. Method 2 is to simply downsample the majority class. The majority class is randomly deleted to reduce the number of majority class samples, and then input into the CNN model after processing. Method 3 is a synthetic oversampling method. For each minority class sample, a sample is randomly selected from its nearest neighbor, and then a point is randomly selected on the line between the two samples as a newly synthesized minority class sample, which is then input into the CNN model after synthesis. This method treats all minority class samples equally, which is very likely to cause aliasing of synthesized samples. Method 4 is to use adaptive synthetic oversampling to process minority classes, and then input into CNN for classification and recognition after processing. In order to avoid the contingency of the experiment, all experiments were repeated 10 times, and the average recognition rate was calculated. The experimental results are shown in Table 4. It can be seen from Table 4 that the method proposed in the present invention can obtain the best recognition performance than all the comparison methods. Table 5 shows the four performance indicators of each method in this experiment. According to the results of the recognition rate and evaluation indicators of this simulation, under the experimental conditions of the unbalanced data set set in the experiment, the use of a two-stage adaptive sampling unbalanced SAR target recognition method is beneficial to improving the recognition rate of minority categories and the overall recognition rate.
[0090] Table 4 Comparison of recognition rates of different methods
[0091] Recognition rate (%) Baseline Method Method 1 Method 2 Method 3 Method 4 Proposed method Cargo 69.9 58.7 78.4 73.5 72.5 82.9 Tanker 70.2 65.4 73.5 73.4 71.8 87.8 Fishing 61.2 61.9 62.9 63.9 68.1 66.5 Dredger 19.2 26.9 21.2 32.9 47.2 47.9 Tug 30.1 34.6 32.6 45.6 46.2 46.6 Min 36.8 41.8 38.9 47.5 53.8 53.7 Total 50.1 49.5 53.7 57.9 61.2 66.3
[0092] Table 5 Comprehensive performance comparison results of different methods
[0093]
[0094] Simulation 2: Evaluate the robustness of the present invention under different imbalance ratios of training data.
[0095] In this simulation, the imbalance ratio between the majority class and the minority class is set to gradually increase, and the method of the present invention is compared with methods 1, 4, and 5. The experimental results show that as the class imbalance ratio increases, the recognition performance of all methods decreases. Compared with the comparison method, the method proposed in the present invention can still maintain the best recognition performance.
Claims
1. A two-stage adaptive sampling unbalanced SAR target recognition method, the method steps comprising: Step 1: Collect SAR image training samples D = (x i ,y i ),i=1,2,3,...,N, where x i is the i-th SAR image target sample, y i Represents sample x i The class label, N is the total number of samples; and the target area is cropped; Step 2: Expand the minority class target samples and move the boundary of the classification decision to the sample instances that are more difficult to learn, thereby reducing the learning bias caused by the imbalanced distribution of the original data; Step 2.1: Use the following formula to determine the total number of synthetic minority class samples required to process the minority class targets: M=(N d -N s )×χ Among them, N s N is the number of samples of the minority class that need to be processed. d is the number of samples of the majority class selected, χ is a randomly generated number used to characterize the balance level of the data set after data synthesis, and χ = 1 means that the synthesized data set is a balanced data set; Step 2.2: Define the minority class samples whose number of surrounding majority class samples is greater than the set threshold as difficult samples with high learning difficulty, and adaptively synthesize more data for the minority class samples with high learning difficulty; first, for each minority class sample x i Search its K neighbors, r i Represents the majority class samples around the minority class samples, and calculates the proportion of the majority class in the K neighbors: Among them, Δ i For x i The number of samples of the majority class in the K neighbors of ; Step 2.3: i Standardization is performed to facilitate uniformity of the degree of adaptation; It is used to characterize the degree of adaptability, and its expression is: Step 2.4: Adaptation based on different minority class samples Calculate the number of synthetic samples M for each minority class sample i , so that data augmentation focuses on minority class samples that are difficult to learn, the synthesis formula is as follows: Step 2.5: To enhance the minority class features, a synthetic oversampling method is used to calculate the number of synthetic samples M for each minority class sample in the class. i Adaptively amplify and synthesize new samples by random linear interpolation: x new =x i +rand(0,1)×|x zi -x i | Among them, x i represents a minority class sample selected this time, rand(0,1) represents a random number between (0,1), x zi Indicates that from x i A sample randomly selected from the K nearest neighbors; Step 2.6: Adaptively synthesize samples for each minority class, combine the newly synthesized minority class samples with the majority class data, and merge them to form a new sample set; Step 3: During the classification model training process, simple sample selection is performed on the target samples of the majority class to train the model to further balance the data set; Step 3.1: Calculate the error matrix W, where W is the error matrix between the predicted value output by the model classification layer and the true sample label value; Step 3.2: In order to select simple samples from the majority class for model training during the iterative learning process of the model, set the iteration step size to λ, λ is between 0 and 1, and gradually iterate λ until the iteration requirements are met. The value of λ gradually increases, and more and more samples will be included in the training process; define the iteration step size parameter as μ, and after each iteration, λ is updated to λ+μ. The calculation formula of the iteration step size parameter is: Among them, λ0 is the initial step size, num e is the training cycle size for network training; Step 3.3: Set a simple sample measurement threshold to determine simple samples in the self-paced learning process. Samples less than the threshold are determined as simple samples in this iteration; set the threshold thred to determine which samples will be included in this training process. The calculation formula of the threshold thred is: thred=min(W)+λ×(max(W)-min(W)) Step 3.4: To achieve simple sample selection and model iterative training for the majority class target, design an objective function based on a self-determined step size; By adding a regularization term to the objective function, the recognition model can automatically select simple samples during the iteration process. The objective function is as follows: Among them, f(x i ,w) represents the learning model, w represents the parameters of the model, L(y i ,f(x i ,w)) represents the loss function of the i-th minority class sample, v i Indicates whether this sample is selected into the majority class training set, v i =1 means this sample is selected this time, v i =0 means no selection this time, E(w,v,λ) represents the objective function; Step 4: Based on the above steps, the SAR target recognition model is obtained. For a sample x to be identified, the softmax classification model is applied to convert the output into a probability distribution with positive values and a sum of 1, and the predicted probability value of each classification is output. The probability of belonging to the jth classification is: Where C is the number of sample categories, and exp(·) represents the normalized exponential function to ensure the non-negativity of probability.
