A small sample SAR image target detection method based on pruning meta-learning

By sparsifying and pruning YOLOv5 and combining it with the MAML algorithm, a lightweight detector is constructed, which solves the problems of misjudgment, missed determination and overfitting in ship target detection in small sample SAR images, and achieves rapid adaptation to new technologies. tasks and efficient detection.

CN114677592BInactive Publication Date: 2024-09-06XI AN JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210326006.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies have problems with misjudgment and missed detection in small-sample SAR image ship target detection. Deep learning methods require a large number of training samples, and the complex structure of traditional networks leads to overfitting and slow training speed, making it difficult to adapt to new tasks.

Method used

A small-sample SAR image target detection method based on pruned meta-learning is used. By sparse training and pruning processing of YOLOv5, combined with the MAML algorithm, a lightweight detector is constructed, and the meta-training data set is used for training to quickly adapt to new tasks and Improve generalization ability.

Benefits of technology

It improves the accuracy of SAR ship target detection and generalization ability across data sets, reduces computing resource requirements, overcomes the overfitting problem, and can achieve high detection accuracy on new tasks with small samples while maintaining detection of old tasks. performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114677592B
    Figure CN114677592B
Patent Text Reader

Abstract

The present invention discloses a small sample SAR image target detection method based on pruning meta-learning, which belongs to the field of radar technology. The present invention uses the Network Slimming algorithm to prune the single-stage target detector YOLOv5, and then combines meta-learning with the pruned lightweight detector, which solves the problems of overfitting caused by numerous parameters in the meta-training process. When facing new tasks with small samples, the network can be quickly fine-tuned to adapt to new tasks, and the accuracy of SAR ship target detection in the same data set and the generalization ability across data sets can be improved. When facing new tasks with small samples, the present invention can quickly fine-tune the network to adapt to new tasks and has stronger detection capabilities on new tasks. At the same time, the pruned network is added with the MAML algorithm, which solves the problems of overfitting caused by numerous parameters in the meta-training process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of radar technology, and in particular relates to a small sample SAR image target detection method based on pruning meta-learning. Background Art

[0002] Synthetic Aperture Radar (SAR) is an active microwave imaging radar with all-day and all-weather observation capabilities. With the development of SAR imaging technology, SAR image detection technology has been widely used in the military field. However, SAR images are quite different from traditional optical images. The target features are not obvious, the target size is small, and the coherent spots and overlaps in the imaging process can cause misjudgment and missed judgment of the target, which makes SAR image ship target detection difficult.

[0003] In recent years, with the development of deep learning, target detection algorithms based on convolutional neural networks (CNNs) have achieved excellent results and have been widely used in the field of remote sensing image target detection, overcoming the difficulties of traditional methods. At present, target detection algorithms based on CNNs can be divided into two categories: two-stage target detectors and single-stage target detectors. Two-stage target detection algorithms are represented by Faster R-CNN, Fast R-CNN, and Mask R-CNN. The two-stage target detector has good detection accuracy, but the stage of obtaining candidate boxes is time-consuming and labor-intensive, resulting in a slow detection speed. Single-stage target detection algorithms are represented by YOLO and SSD. Although the single-stage algorithm improves the detection speed, it sacrifices the detection accuracy. In order to improve the detection accuracy, the single-stage target detection algorithms YOLOv3, YOLOv4, and YOLOv5 have been launched one after another. Among them, YOLOv5 has achieved good results in small target detection and has significantly improved both speed and accuracy. It is one of the most advanced target detection technologies.

[0004] The target detection algorithm based on deep learning has achieved remarkable results in both detection accuracy and speed. However, the characteristic of deep learning methods is that they require a large number of training samples as support, but the acquisition cost of SAR ship images is high, the sampling conditions are complex, and the labeling process is time-consuming and labor-intensive. It is difficult to obtain a large number of labeled SAR ship samples, and the number of samples is small, which makes the traditional deep learning target detection algorithm not ideal. Most of the work focuses on the classification task of small sample data, while the task of small sample target detection has received little attention. Unlike the classification task, target detection mainly consists of two subtasks: classification and localization. Therefore, integrating small sample learning into target detection is a more challenging task.

[0005] Meta-learning can use meta-knowledge learned from a small number of samples as a priori for network models to achieve rapid learning of new tasks, effectively reducing training time while ensuring a certain degree of algorithm accuracy, and improving the generalization ability of the model. However, in order to cope with a large number of label tasks, traditional network structures represented by image detection often use deeper convolutional filters and network layers. After training, the parameters of such complex networks are often fixed, and meta-learning needs to modify network parameters when adapting to new scenarios. Too many parameters bring the risk of overfitting and slow down the adaptation speed. Therefore, networks that prioritize speed and computational space overhead have become one of the optimization directions. Summary of the invention

[0006] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a small sample SAR image target detection method based on pruned meta-learning.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] A small sample SAR image target detection method based on pruning meta-learning includes the following steps:

[0009] 1) Construct sparse training dataset, meta-training dataset and meta-testing dataset for SAR image ship detection; take SAR images as sample input and ship targets in SAR images as labels;

[0010] 2) Perform sparse training on the single-stage target detector YOLOv5, and then perform pruning to obtain a lightweight target detector;

[0011] 3) adding the MAML algorithm to the lightweight detector to obtain a meta-learner, and performing training using the meta-training data set to obtain a trained meta-learner;

[0012] 4) using the parameters of the meta-learner as initialization parameters, and using the support set of a task in the meta-test data set to perform a one-step update on the initialization parameters to obtain a meta-learner suitable for the current task;

[0013] The query set of the current task of the meta-test data set is input into the meta-learner to obtain the detection accuracy of the detection task and the positioning and classification of the detection task target.

[0014] Further, step 1) includes:

[0015] Randomly sample several samples from the SSDD dataset to construct a sparse training dataset;

[0016] Randomly sample several images from the SSDD dataset to construct a meta-training dataset;

[0017] Several images were sampled from SSDD, SAR-Ship-Dataset, AIR-SARShip-1.0, HRSID, and LS-SSDD-V1.0 datasets to construct the test dataset;

[0018] Among them, the data of the sparse training set, meta-training data set and meta-test test set do not overlap.

[0019] Further, step 2) specifically includes:

[0020] 201) selecting a network channel capable of performing pruning processing in the single-stage target detector YOLOv5 for pruning setting, constructing a new network loss function, taking the sparse training data set as input, training the single-stage target detector YOLOv5 according to the new network loss function, and obtaining a sparse network after the training is completed;

[0021] 202) Determine whether the obtained sparse network meets the pruning requirements. If so, prune the network channel to obtain a lightweight detector; otherwise, return to 201).

[0022] Further, in step 201), if the convolution result addition occurs in the network structure of the single-stage target detector YOLOv5, the network structure does not perform a pruning operation; otherwise, the γ parameter in the BN layer of the network structure is set as a scaling factor for network channel pruning;

[0023] In step 201), a new network loss function is constructed as shown in formula (1):

[0024]

[0025] Among them, the first three items in formula (1) are the loss functions of YOLOv5, including the border regression loss l reg , target confidence loss l conf And the classification loss l cls , where j is the jth sample, t*, c*, obj* represent the coordinates, category and confidence of the real target respectively; the last term is the regularization term of γ, and λ is the penalty coefficient;

[0026] The training process in step 201) is:

[0027] The network is back-propagated with formula (1) as the objective function, and the network weights θ and the scaling factor γ are jointly trained to obtain a sparse network.

[0028] Furthermore, the specific operation of pruning the network channel in step 202) is:

[0029] Obtain the maximum absolute value of each BN layer parameter γ that can prune the network channel, and set the minimum value of the maximum values ​​as the pruning upper limit value;

[0030] Set the pruning ratio t, sort by the absolute value of the proportional factor γ, take the proportional factor corresponding to the t% position in the proportional factors sorted from small to large as the pruning threshold, if the pruning threshold is greater than the minimum value, the pruning requirement is met, and the channels below the threshold are pruned; otherwise, the pruning requirement is not met, return to step 2), and reset the penalty coefficient λ.

[0031] Further, step 3) comprises the following steps:

[0032] (301) Perform one-way K-shot task division on the meta-training dataset;

[0033] (302) The training dataset with distribution p(T) is divided into multiple groups of tasks. Each group of tasks consists of multiple different tasks. Each task contains a support set and a query set. and queryset Both contain K SAR image samples, and the samples of the query set and the support set do not overlap;

[0034] Treat a task as a set of samples for a lightweight detector;

[0035] (303) The support set of a set of tasks Input into the meta-learner, calculate the total loss and perform back propagation, update the network parameters once to obtain a set of meta-learners in the intermediate state;

[0036] (304) The query set sample of the task Input into the meta-learner in the intermediate state, calculate the total network loss and perform back propagation to complete an update;

[0037] (305) Repeat steps (303) to (304) until all tasks are input and completed, completing the training.

[0038] Furthermore, the meta-learner of the intermediate state described in step (303) is specifically expressed as:

[0039]

[0040] Among them, i refers to the i-th task, θ is the parameter of the meta-learner, and θ′ i is the parameter of the intermediate state of the meta-learner, α refers to the internal learning rate, L(f θ ) is the loss function of the meta-learner, It is the gradient of the total loss generated by taking the support set samples as the input of the meta-learner with respect to the parameter θ.

[0041] Furthermore, the objective function of the meta-learner in step (304) is:

[0042]

[0043] in, is the loss obtained by using the query set samples as input to the meta-learner of the intermediate state.

[0044] Furthermore, the update of the meta-learner parameters in step (304) is specifically expressed as:

[0045]

[0046] where β is the external learning rate of the meta-learner.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] The small sample SAR image target detection method based on pruning meta-learning of the present invention uses the NetworkSlimming algorithm to prune the single-stage target detector YOLOv5, and then combines meta-learning with the pruned lightweight detector, which solves the problems of overfitting caused by numerous parameters in the meta-training process. When facing a new task with a small sample, the network can be quickly fine-tuned to adapt to the new task, and the accuracy of SAR ship target detection in the same data set and the generalization ability across data sets can be improved. When facing a new task with a small sample, the present invention can quickly fine-tune the network to adapt to the new task, and has a stronger detection ability on the new task. At the same time, the pruned network adds the MAML algorithm, which solves the problems of overfitting caused by numerous parameters in the meta-training process, speeds up the model training speed, reduces the requirements for computer resources, and improves the target detection accuracy of small sample SAR images. The meta-learner obtained by the present invention can overcome forgetting, and in addition to obtaining a higher detection accuracy on a new task with a small sample, it can also maintain the detection performance of the old task. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 The overall framework diagram of the small sample SAR image target detection method based on pruning meta-learning provided by the present invention;

[0050] Figure 2 A schematic diagram of one iteration of the meta-training provided by the present invention;

[0051] Figure 3 The figure is a comparison chart of the detection results of the present invention and the comparison algorithm on some new tasks and basic tasks in the test set, where: Figure 3 (a)~ Figure 3(e) Partial performance on SSDD, SAR-Ship-Dataset, AIR-SARShip-1.0, HRSID, and LS-SSDD-v1.0 datasets respectively;

[0052] Figure 4 This is a comparison chart of the detection results of the present invention and the YOLOv5 target detector with the MAML algorithm and the pruning algorithm added respectively on some new tasks and basic tasks in the test set, where: Figure 4 (a)~ Figure 4 (e) Partial performance on SSDD, SAR-Ship-Dataset, AIR-SARShip-1.0, HRSID, and LS-SSDD-v1.0 datasets respectively. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0055] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0056] See also Figure 1 As shown in Figure 1, the small sample SAR image target detection method based on pruning meta-learning proposed in this paper builds a complete small sample SAR image ship target detection framework. The overall framework is as follows Figure 1 As shown in the figure, it is mainly divided into four stages: building a data set, sparse training + pruning, meta-training, and meta-testing.

[0057] 1) Constructing datasets: constructing sparse training datasets, meta-training datasets, and meta-testing datasets for SAR image ship detection; SAR images are used as sample inputs, and ship targets in SAR images are used as labels;

[0058] 910 samples were randomly sampled from the SSDD dataset to construct a sparse training dataset, and 200 samples were sampled to construct a meta-training dataset; 50 samples were sampled from each of the (a) SSDD, (b) SAR-Ship-Dataset, (c) AIR-SARShip-1.0, (d) HRSID, and (e) LS-SSDD-V1.0 datasets to construct a test dataset. The data of the sparse training set, meta-training dataset, and test set do not overlap.

[0059] 2) Sparse training + pruning stage: Use the Network Slimming algorithm to sparsely train and prune the single-stage target detector YOLOv5 (You only look once) to obtain a lightweight target detector.

[0060] 2.1 Sparse Training

[0061] The Network Slimming algorithm is a channel-level sparse pruning method that achieves network compression by pruning network channels. Network Slimming introduces a scaling factor γ, which is a learnable parameter of the BN layer to sparse the network. γ corresponds to each channel of the network. A regularization term of γ is added to the loss function of the original network, and γ is sparsely regularized by training the network. Finally, γ with a small value and its corresponding channel are pruned.

[0062] Adding the Network Slimming algorithm to the single-stage target detector YOLOv5 (You only look once) to train the network sparsely, and obtaining the trained sparse network includes the following steps:

[0063] (1) Select some network channels in YOLOv5 that can perform pruning operations. If the convolution results are added in this part, the pruning operation cannot be performed on this part. Otherwise, the learnable parameters in the BN layer of the network channel are set to the scale factor γ of the network channel pruning;

[0064] (2) Add the regularization term of γ to the loss function of YOLOv5, set the value of λ, and construct a new network loss function. The new network loss function is:

[0065]

[0066] Among them, the first three items in formula (1) are the loss functions of YOLOv5, which mainly include the border regression loss lreg , target confidence loss l conf And the classification loss l cls , where j is the jth sample, θ is the network parameter, t*, c*, obj* represent the coordinates, category and confidence of the true target respectively; the last term is the regularization term of γ, and λ is the penalty coefficient.

[0067] (3) Using formula (1) as the objective function, the network is back-propagated to jointly train the network parameters θ and the scaling factor γ.

[0068] 2.2 Pruning

[0069] Get the maximum absolute value of the parameter γ of each BN layer in the prunable part, sort these maximum values ​​from small to large, and set the pruning upper limit to the minimum value of the maximum value. Set the pruning ratio. If the pruning ratio is t, t% of the channels in the entire network will be pruned. Sort the proportional factors γ according to the absolute value, and take the proportional factors at the t% position in the proportional factors sorted from small to large as the pruning threshold. If the pruning threshold is greater than the upper limit, the pruning requirements are met and the channels below the threshold are pruned; otherwise, the pruning requirements are not met, the penalty coefficient λ is reset, and the network is retrained for sparse training;

[0070] The lightweight detector obtained in the sparse training + pruning stage provides a network foundation for the next meta-training, avoiding underfitting or overfitting problems caused by too many parameters in meta-training and improving the generalization ability of the network. At the same time, it reduces network parameters, speeds up model training, and reduces the requirements for computer resources.

[0071] 3) Meta-training stage: Use the MAML algorithm to meta-train the lightweight detector and migrate its network weights to obtain a meta-learner and a set of parameters with strong generalization ability.

[0072] The MAML algorithm is an optimization-based meta-learning algorithm. The key to the MAML algorithm is to train a good set of model initialization parameters so that the model can achieve excellent performance when facing new tasks with a small number of samples by only performing several gradient updates on the parameters. The MAML algorithm is added to the lightweight detector to perform meta-training on the network. The specific steps of meta-training include the following steps:

[0073] (1) Transfer the weights of the lightweight object detector and initialize the weights of the meta-learner to the weights of the lightweight object detector.

[0074] (2) Based on the idea of ​​meta-training, the meta-training dataset is divided into one-way K-shot tasks. Each training round samples n different tasks from the meta-training dataset with a distribution of p(T). Each task contains a support set and a query set, where the support set and queryset Both contain K SAR image samples, and the samples of the query set and the support set do not overlap. One task serves as a sample of the meta-learner.

[0075] (3) Support set Input into the meta-learner, calculate the total loss and update the network parameters once to get the transition state of the meta-learner, which is specifically expressed as:

[0076]

[0077] Among them, i refers to the i-th task, θ is the parameter of the meta-learner, and θ′ i is the parameter of the meta-learner transition state, α refers to the internal learning rate of the meta-learner, L(f θ ) is the loss function of the meta-learner, is the gradient of the total loss with respect to the parameter θ using the support set as the input to the meta-learner.

[0078] (4) The query set of the i-th task Input into the meta-learner in the transition state to calculate the total loss of the network;

[0079] Repeat steps (3) to (4) until n tasks are completed, take the average of the total loss on the query set and back propagate to complete an update of the meta-learner. The meta-learner is a lightweight target detector with the MAML algorithm added, and the objective function is:

[0080]

[0081] in, is the loss obtained by using the query set as the input of the meta-learner in the intermediate state. An update of the meta-learner parameters is specifically expressed as:

[0082]

[0083] where β is the external learning rate of the meta-learner.

[0084] To explain the meta-training process more clearly, Figure 2 The training flow chart for one iteration of meta-training is shown in Figure 1. Taking 3 tasks as an example, the initial model parameters before the iteration are θ0 and after the iteration are θ1. When training a new set of tasks, first sample the tasks. Calculate the loss value Loss on the support set when the parameter is θ0 i (θ0), and use the internal learning rate α to update θ0 to get the updated parameter θ i '; Secondly, the sampling task T i q And calculate the parameter as θ i′The loss value Loss on the query set i (θ i ′); finally, the loss on the query set is averaged, and the initial parameter θ0 is updated to θ1 using the external learning rate β to complete an optimization.

[0085] The meta-training stage mainly uses the idea of ​​meta-learning to train the lightweight detector to obtain a set of initialization parameters with strong generalization performance. Through meta-training, a set of task-sensitive parameters is obtained. When faced with new tasks with small samples, the network can be quickly fine-tuned to adapt to new tasks. This means that the model will not only learn sample features for specific tasks, but learn learning capabilities through different tasks.

[0086] 4) Meta-testing phase: Perform meta-testing on the test data set to obtain the detection accuracy of the new task and the positioning and classification of the new task target.

[0087] After the meta-training is completed, the lightweight target detection model has obtained a set of initialization parameters with good generalization performance, which can quickly adapt to the state of the new task. When a small number of SAR image detection samples appear, the model can quickly adapt to the samples of the new task by fine-tuning the network with only a small number of new tasks. The detection accuracy and detection result prediction graphs on SSDD, SAR-Ship-Dataset, AIR-SARShip-1.0, HRSID and LS-SSDD-V1.0 are obtained by fine-tuning a small number of samples in the test dataset. The model maintains the detection performance on the old tasks and also has strong detection capabilities on new tasks.

[0088] Meta-testing mainly uses the initialization parameters obtained in the meta-training phase as the initial weights of the new task, and uses the training samples of the new task to fine-tune the network model, and then quickly and accurately detects the test samples of the new task and obtains the final detection results.

[0089] Example

[0090] In order to verify the effectiveness of the above method for detecting a small sample SAR image dataset, the following examples are designed:

[0091] The detection performance is evaluated on the new and old tasks of the test set, and the evaluation indicator is AP (average precision). To ensure the fairness of the experimental results, a consistent experimental setting is adopted. 1000 steps of sparse training iterations correspond to 1000 steps of traditional training, and 1000 steps of meta-training correspond to 1000 steps of fine-tuning. The initial learning rate is set to 0.001, the batch size is set to 48, the optimization method is stochastic gradient descent, the momentum is set to 0.937, and the regularization coefficient is set to 0.0005. Each training round of meta-training samples n different tasks from the meta-training dataset distributed as p(T), n is set to 4, and a task contains 24 samples. 12 of them are selected as the support set and the remaining 12 are used as the query set.

[0092] The present embodiment is compared with Faster R-CNN, YOLOv5, and Meta-SSD. The test results are shown in Table 1. It can be seen that the average accuracy of the present embodiment on the basic tasks and all new tasks is better than that of the comparison method. Therefore, it is shown that the present embodiment can learn sufficient prior knowledge from the meta-training data, learn a set of initial parameters with strong adaptability, can quickly adjust its own parameters to adapt to new tasks, and has stronger generalization ability. Figure 3 Graphs showing the detection results of some new tasks and basic tasks in the test set for this embodiment and the comparative example. Figure 3 Each row represents a different data set, and each column represents a different method. The first column is the actual location of the target in the image. Figure 3 It can be seen that Figure 3 (c) Figure 3 (e) is a very small target. Except for this method, other methods cannot detect the target, which verifies that the proposed method has strong detection ability on very small targets. On other data sets, the false detection rate and missed detection rate of the proposed method are low, and the confidence of marking the target is high, which further verifies that the proposed method has better detection ability and stronger generalization ability on small sample data sets.

[0093] Table 1 Small sample detection performance of different detection methods on basic tasks and old tasks

[0094]

[0095] In order to evaluate the impact of the MAML algorithm and the Network Slimming pruning algorithm on this embodiment, a set of ablation experiments was designed. In this application, the Network Slimming algorithm is uniformly written as NS. It can be seen that the addition of the MAML algorithm can improve the detection performance of the YOLOv5 target detector for new tasks, but its generalization ability is unstable, and the detection performance has decreased on the SAR-Ship-Dataset and AIR-SARShip-1.0. Although the detection performance of the fine-tuned network after pruning is improved on new tasks, it cannot overcome forgetting, that is, the detection performance on basic tasks is significantly reduced. This method can overcome forgetting and has stable generalization performance, that is, it has higher detection accuracy on new tasks. Figure 4 The following are the detection results of this embodiment and the YOLOv5 target detector with the MAML algorithm and the pruning algorithm added respectively on some new tasks and basic tasks in the test set. Figure 4 It can be seen that there are certain differences in the target features of different data sets. This method has the strongest detection ability whether it is on data sets with smaller differences or data sets with larger differences. Figure 4 (c) and Figure 4 (e) The target in the image is small and its features are not obvious. In this case, YOLOv5+MAML and YOLOv5+NS+finetune cannot detect the target, but this method can realize the recognition and positioning of the target. On other data sets, compared with the YOLOv5 detector with only MAML algorithm or pruning algorithm, this method has fewer missed detections and false detections, indicating that this method has better detection capabilities, that is, it can learn some basic features of the target through a small number of samples when facing new tasks, and only needs one step of update to obtain better detection results, which solves the problem that traditional deep learning methods require a large number of samples to train models.

[0096] Table 2 Ablation experiment results

[0097]

[0098]

[0099] The above contents are only for explaining the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.

Claims

1. A small sample SAR image target detection method based on pruning meta-learning, It is characterized in that The following steps are involved: 1) Construct sparse training dataset, meta-training dataset and meta-testing dataset for SAR image ship detection; take SAR images as sample input and ship targets in SAR images as labels; 2) Perform sparse training on the single-stage target detector YOLOv5, and then perform pruning to obtain a lightweight target detector; 3) adding the MAML algorithm to the lightweight detector to obtain a meta-learner, and performing training using the meta-training data set to obtain a trained meta-learner; 4) using the parameters of the meta-learner as initialization parameters, and using the support set of a task in the meta-test data set to perform a one-step update on the initialization parameters to obtain a meta-learner suitable for the current task; The query set of the current task of the meta-test data set is input into the meta-learner to obtain the detection accuracy of the detection task and the positioning and classification of the detection task target.

2. According to the small sample SAR image target detection method based on pruning meta-learning according to claim 1, It is characterized in that Step 1) includes: Randomly sample several samples from the SSDD dataset to construct a sparse training dataset; Randomly sample several images from the SSDD dataset to construct a meta-training dataset; Several images were sampled from SSDD, SAR-Ship-Dataset, AIR-SARShip-1.0, HRSID, and LS-SSDD-V1.0 datasets to construct the test dataset; Among them, the data of the sparse training set, meta-training data set and meta-test test set do not overlap.

3. According to the small sample SAR image target detection method based on pruning meta-learning according to claim 1, It is characterized in that Step 2) specifically includes: 201) selecting a network channel capable of performing pruning processing in the single-stage target detector YOLOv5 for pruning setting, constructing a new network loss function, taking the sparse training data set as input, training the single-stage target detector YOLOv5 according to the new network loss function, and obtaining a sparse network after the training is completed; 202) Determine whether the obtained sparse network meets the pruning requirements. If so, prune the network channel to obtain a lightweight detector; otherwise, return to 201).

4. According to the method for small sample SAR image target detection based on pruning meta-learning in claim 3, It is characterized in that In step 201), if the convolution result addition occurs in the network structure of the single-stage target detector YOLOv5, the network structure does not perform a pruning operation; otherwise, the γ parameter in the BN layer of the network structure is set as a scaling factor for network channel pruning; In step 201), a new network loss function is constructed as shown in formula (1): Among them, the first three items in formula (1) are the loss functions of YOLOv5, including the border regression loss l reg , target confidence loss l conf And the classification loss l cls , where j is the jth sample, t*, c*, obj* represent the coordinates, category and confidence of the real target respectively; the last term is the regularization term of γ, and λ is the penalty coefficient; The training process in step 201) is: The network is back-propagated with formula (1) as the objective function, and the network weights θ and the scaling factor γ are jointly trained to obtain a sparse network.

5. According to the method of small sample SAR image target detection based on pruning meta-learning in claim 3, It is characterized in that The specific operation of pruning the network channel in step 202) is: Obtain the maximum absolute value of each BN layer parameter γ that can prune the network channel, and set the minimum value among the maximum values ​​as the pruning upper limit value; Set the pruning ratio t, sort by the absolute value of the proportional factor γ, take the proportional factor corresponding to the t% position in the proportional factors sorted from small to large as the pruning threshold, if the pruning threshold is greater than the minimum value, the pruning requirement is met, and the channels below the threshold are pruned; Otherwise, if the pruning requirement is not met, return to step 2) and reset the penalty coefficient λ.

6. According to the method for small sample SAR image target detection based on pruning meta-learning in claim 1, It is characterized in that Step 3) comprises the following steps: (301) Perform one-way K-shot task division on the meta-training dataset; (302) The training dataset with distribution p(T) is divided into multiple groups of tasks. Each group of tasks consists of multiple different tasks. Each task contains a support set and a query set. The support set T i s and query set T i q Both contain K SAR image samples, and the samples of the query set and the support set do not overlap; Treat a task as a set of samples for a lightweight detector; (303) The support set T of a set of tasks i s Input into the meta-learner, calculate the total loss and perform back propagation, update the network parameters once to obtain a set of meta-learners in the intermediate state; (304) The query set sample T of the task i q Input into the meta-learner in the intermediate state, calculate the total network loss and perform back propagation to complete an update; (305) Repeat steps (303) to (304) until all tasks are input and completed, completing the training.

7. The small sample SAR image target detection method based on pruning meta-learning according to claim 6, It is characterized in that The meta-learner of the intermediate state described in step (303) is specifically expressed as: Among them, i refers to the i-th task, θ is the parameter of the meta-learner, and θ′ i is the parameter of the intermediate state of the meta-learner, α refers to the internal learning rate, L(f θ ) is the loss function of the meta-learner, It is the gradient of the total loss generated by taking the support set samples as the input of the meta-learner with respect to the parameter θ.

8. The small sample SAR image target detection method based on pruning meta-learning according to claim 6, It is characterized in that The objective function of the meta-learner in step (304) is: in, is the loss obtained by using query set samples as input to the meta-learner of the intermediate state.

9. The small sample SAR image target detection method based on pruning meta-learning according to claim 6, It is characterized in that The update of the meta-learner parameters in step (304) is specifically expressed as: where β is the external learning rate of the meta-learner.