A ship detection method in synthetic aperture radar images based on Group-G0 model
By introducing the Group-G0 model and encoder-decoder structure into SAR image detection, combined with the optimization of the model and detection branches, the problems of low recall rate and small sample size of ship detection in the existing technology are solved, and efficient ship detection is achieved. detection.
Patent Information
- Application Number
- CN202011418137.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-07
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-12-07
AI Technical Summary
The existing ship detection algorithm based on deep learning has a low recall rate in SAR images, frequent missed detections, and requires a large number of training samples, making the small sample problem difficult to solve.
The synthetic aperture radar image ship detection method based on the Group-G0 model is adopted. By training the SAR ship detection network, the network parameters are jointly optimized by combining the detection results of the model branch and the detection branch, paying attention to the characteristics of regional-level information and pixel-level information. Correlation relationship, using the encoder-decoder structure to adaptively learn the pixel statistical model distribution parameters, to achieve detection driven by both model and data.
It improves the recall rate of ship detection, reduces the occurrence of missed detections, requires only fewer training samples, improves the generalization ability and robustness of the model, and solves the problem of small samples.
Smart Images

Figure CN112597815B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of radar image ship detection, and in particular relates to a synthetic aperture radar image ship detection method based on a Group-G0 model. Background Art
[0002] my country is a major maritime country. Ship target detection is an important part of implementing marine surveillance, and maritime security is of vital importance. A large number of ships enter and exit my country's waters every day, so ship target detection is of great strategic significance for marine monitoring, military reconnaissance, and intelligence acquisition. Synthetic aperture radar is a high-resolution imaging radar. It is an active microwave imaging sensor. Compared with traditional passive imaging sensors (such as infrared and optical sensors), its imaging process is not affected by environmental factors such as weather, light, and clouds. It can work under all-weather and all-day conditions to detect hidden objects. In recent years, it has been widely used in civil and military fields.
[0003] With the development of deep learning technology and computing power, target detection algorithms based on deep learning have made rapid progress. In recent years, target detection algorithms based on deep learning have gradually been applied to the field of ship detection in SAR images and have achieved great success. However, this detection method requires a large number of training samples to train the detection model, resulting in a low recall rate for ship detection and frequent missed detections. Summary of the invention
[0004] The purpose of the present invention is to provide a synthetic aperture radar image ship detection method based on the Group-G0 model to improve the recall rate of ship detection and reduce the occurrence of missed detection.
[0005] The present invention adopts the following technical scheme: a synthetic aperture radar image ship detection method based on Group-G0 model, comprising the following steps:
[0006] Acquire multiple SAR images containing ship-type targets for training; wherein each ship in the SAR image is marked with a marking box;
[0007] The SAR ship detection network is trained using SAR images containing ship-like targets.
[0008] Acquire the SAR image to be detected, and use the SAR ship detection network to extract the feature map of the SAR image to be detected;
[0009] The RPN network and Fast RCNN network are used to detect the feature map in turn to obtain a SAR image with a ship detection frame.
[0010] Furthermore, training a SAR ship detection network using SAR images containing ship-like targets includes:
[0011] The SAR ship detection network is used to extract multi-scale features from SAR images containing ship-like targets to obtain feature maps.
[0012] Use the RPN network and Fast RCNN network to classify and regress the feature maps in turn;
[0013] According to the classification and regression results, the parameters of the SAR ship detection network are optimized in combination with the second loss function to obtain a trained SAR ship detection network.
[0014] Furthermore, after obtaining the feature map, the following steps are also included:
[0015] An encoder composed of a convolutional neural network is used to generate a latent variable feature map of the same size as the SAR image;
[0016] Binarize the latent variable feature map to generate ship-like mask maps and non-ship-like mask maps;
[0017] After the ship-like mask image and the non-ship-like mask image are multiplied with the SAR image respectively, they are input into the decoder composed of the convolutional neural network;
[0018] The multiplied image is decoded by a decoder to obtain the G0 distribution parameter value of each pixel;
[0019] Based on the classification and regression results, the second loss function, the G0 distribution parameter value and the first loss function, the SAR ship detection network is alternately optimized to obtain a trained SAR ship detection network.
[0020] Furthermore, the RPN network and the Fast RCNN network are used in sequence to classify and regress the feature map, including:
[0021] Based on the feature map, the RPN network is used to predict several candidate target areas that may be foreground in the SAR image;
[0022] Based on the Fast RCNN network, the candidate target area is classified and regressed to obtain the target box of the ship in the SAR image.
[0023] Furthermore, the first loss function is:
[0024]
[0025] Among them, x i is a pixel point in the SAR image; z k is pixel x i The corresponding category latent variable has a value range of {0, 1}. When z1=1 and z2=0, it means that the pixel point x iFor non-ship pixels, when z1=0 and z1=1, it means that the pixel x i N is the pixel point of ship type; k is the number of samples of two types of pixels in the SAR image, N1 is the number of ship-like pixels in the SAR image, N2 is the number of non-ship-like pixels in the SAR image, and α i represents the shape parameter, γ i represents the scale parameter, and Γ represents the Gamma function.
[0026] Furthermore, the second loss function is:
[0027]
[0028] Among them, Loss_2 represents the second loss function, including the loss functions of the RPN network, Loss_RPN and Loss_FastRCNN. Loss_rpn_cla represents the classification loss of the RPN network, Loss_rpn_loc represents the regression loss of the RPN network, Loss_fast_rcnn_cla represents the classification loss of the Fast RCNN network, and Loss_fast_rcnn_cla represents the regression loss of the Fast RCNN network.
[0029] The beneficial effects of the present invention are as follows: the present invention trains the SAR ship detection network through SAR images containing ship-type targets marked with marking boxes, and jointly optimizes the network parameters of the SAR ship detection network based on the detection results of the model branch and the detection branch, focusing on the feature correlation relationship between regional-level information and pixel-level information, and only requiring fewer training samples to complete the optimization, which can improve the recall rate of ship detection and reduce the occurrence of missed detections. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a flow chart of a method for ship detection in synthetic aperture radar images based on a Group-G0 model according to an embodiment of the present invention;
[0031] Figure 2 Schematic diagram of the training process of the SAR ship detection network in an embodiment of the present invention;
[0032] Figure 3 This is a network architecture diagram of a SAR ship detection network in an embodiment of the present invention;
[0033] Figure 4 A network architecture diagram of a model branch in an embodiment of the present invention;
[0034] Figure 5 This is a comparison chart of the effects of the method of the present invention and the FPN method in the verification example of the present invention. DETAILED DESCRIPTION
[0035] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0036] In recent years, a large number of scholars have conducted research on ship detection in SAR images, among which the constant false alarm rate (CFAR) detection method and deep learning-based target detection method are the most representative.
[0037] The CFAR ship detection method is a classic target detection algorithm, which has been widely used for its simplicity and strong adaptability. The CFAR detection method includes two stages: modeling and adaptive threshold acquisition.
[0038] Firstly, the sea clutter in the image is modeled. Common distribution models include Gaussian distribution, Gamma distribution, K distribution, W-shart distribution, G0 distribution, etc. Among them, G0 distribution is widely used by scholars because of its good fitting effect for homogeneous, non-homogeneous and extremely non-homogeneous sea clutter.
[0039] Then, a fixed-size window is used to slide in the image, and the pixel points in the window area are modeled to obtain the statistical model distribution of the area. Then, the target pixel threshold of each area is obtained by setting a constant false alarm rate.
[0040] Although CFAR and its improved methods have made good progress in the field of SAR image applications, this type of method builds a statistical distribution model based on pixels and determines whether it is a target pixel by pixel based on a threshold. It lacks semantic feature constraints at the region level, which often leads to a high false alarm rate for ship detection.
[0041] With the continuous development of artificial intelligence, deep learning algorithms are gradually being applied to SAR image ship detection tasks. Among them, Convolutional Neural Network (CNN) is widely used in the field of deep learning due to its powerful representation and feature extraction capabilities. The purpose of CNN-based ship detection methods is to obtain the category (i.e., ship or non-ship) and position coordinates of the target (i.e., each pixel point), which is usually divided into one-stage detection methods and two-stage detection methods.
[0042] The one-stage ship detection algorithm is represented by the YOLO series of algorithms, which divides the image into grids, predicts the confidence of the target in the grid and the relative coordinates of the grid cells to achieve target detection; the two-stage detection algorithm is represented by Faster RCNN, which extracts features from the image, pre-extracts candidate region target boxes through RPN (Region Proposal Network), and then performs classification and regression through the Fast RCNN network to perform target detection. Although the above two types of classic algorithms have achieved certain success in the application of ship target detection, this type of CNN-based detection algorithm only extracts regional features based on manually labeled labels, lacks constraints based on pixel statistical models, which on the one hand causes missed detections and low recall rates, and on the other hand makes the model learned by the neural network lack of interpretability, weak generalization ability, and poor robustness.
[0043] Although the traditional CFAR method and the target detection method based on deep learning have achieved certain success in the application of ship target detection. However, the performance of CFAR detection algorithms depends on the accuracy of background clutter modeling. Although some scholars have proposed complex distributions (such as K distribution, G0 distribution, etc.) to solve the difficulty of modeling non-homogeneous sea clutter, the complexity of the statistical model expression makes it impossible for traditional parameter estimation methods (such as maximum likelihood estimation, EM estimation, etc.) to obtain analytical solutions, which has become one of the reasons that restrict CFAR detection algorithms. In addition, CFAR algorithms model the pixels of a certain area in the SAR image, and then calculate the pixel threshold that distinguishes the target and background in the area based on the false alarm rate pre-set in the domain to detect ships. This makes CFAR algorithms focus on mining the statistical distribution characteristics of pixels, lacking complementary information of regional features, which often causes a large number of false alarms in target detection results. In the target detection algorithm based on deep learning, feature acquisition is based on CNN. On the one hand, whether it is one-stage detection or two-stage detection, the feature extraction process uses learnable filters to extract regional-level features, which ignores the statistical distribution characteristics of the pixel level to a certain extent, which is easy to cause small-scale targets to be missed, resulting in a low recall rate. On the other hand, the learning process of the CNN-based model depends on the number of manually annotated labels. If the number of labels is too small, it is easy to fall into overfitting. However, in practical applications, it is too costly and difficult to obtain a large number of annotated SAR images, which will lead to the small sample problem.
[0044] Therefore, the present invention adopts a (pixel-region) dual-stream network architecture that jointly optimizes the model and regional features. While extracting multi-scale regional features from SAR images, the SAR image pixels are modeled using a SAR image statistical model based on Group-G0 distribution. The encoder-decoder structure is used to adaptively learn the parameters of the pixel statistical model distribution to achieve SAR image ship detection driven by both models and data.
[0045] The embodiment of the present invention discloses a synthetic aperture radar image ship detection method based on a Group-G0 model, comprising the following steps:
[0046] S110, obtaining multiple SAR images containing ship-like targets for training; wherein each ship in the SAR image is marked with a marking box; S120, training a SAR ship detection network through SAR images containing ship-like targets; S130, obtaining a SAR image to be detected, and using the SAR ship detection network to extract a feature map of the SAR image to be detected; S140, using the RPN network and the Fast RCNN network in turn to detect the feature map to obtain a SAR image with a ship detection box.
[0047] The present invention trains the SAR ship detection network by using SAR images containing ship-type targets marked with marking boxes, and jointly optimizes the network parameters of the SAR ship detection network based on the detection results of the model branch and the detection branch, focusing on the feature correlation relationship between regional-level information and pixel-level information. Only a small number of training samples are needed to complete the optimization, which can improve the recall rate of ship detection and reduce the occurrence of missed detections.
[0048] In the embodiment of the present invention, Figure 2 , Figure 3 As shown in Figure 1, after the underlying features are extracted using the feature pyramid network, they are sent to the model branch and the detection branch. Figure 4 As shown in the figure, the model branch is used to adaptively learn the parameters of the statistical model that each pixel obeys, and the detection branch is used to deeply mine the regional level features of the SAR image. The underlying features of the model branch and the detection branch are shared and interact with each other, and the feature subspace of the target is jointly optimized. The target features solved by optimization are used to realize SAR image target detection.
[0049] The model branch focuses on the parameter estimation of the pixel statistical model. The encoder is responsible for learning the latent variable features from the underlying features. Here, the latent variable is used to describe the category information of the image pixels, that is, the latent variable controls the image generation process. For example, if the information of the latent variable (category) is changed, the category of the pixel in the input image will also change. The decoder is responsible for reconstructing the input image statistical distribution parameters using the latent variables obtained by encoding.
[0050] The statistical distribution models of SAR images include Gaussian distribution, gamma distribution, Wishart distribution, G0 distribution, etc. Since G0 distribution is more inclusive than other distributions, it has a good fitting effect on homogeneous, non-homogeneous, and extremely non-homogeneous areas in SAR images, so the present invention adopts modeling based on G0 distribution. Based on the ship detection task, the present invention hopes to focus on the statistical model of the target itself. Single G0 cannot accurately model the image, so the hidden variable z is introduced to divide the entire SAR image pixel points into two categories, which obey two groups of G0 distributions respectively.
[0051] Considering that SAR images have semantic features at the pixel level, that is, each pixel has category information, for example, the pixel category of the ship area is ship, and the pixel category of the island area is land, etc. For the SAR image target detection task, we only care about whether each pixel is a ship. Therefore, in the image modeling process, the category information is introduced as the latent variable of the model, and the category is set to two categories: ship and background (i.e., non-ship). For simplicity, the G0 distribution with the introduction of category latent variables is named the Group-G0 distribution model. The modeling and parameter estimation process of SAR images based on Group-G0 will be introduced in detail below.
[0052] Specifically, the G0 statistical distribution model is as follows:
[0053]
[0054] Among them, n is the equivalent number of views, which can be obtained through prior knowledge of SAR images, α i , γ i is pixel x i The corresponding scale parameters and shape parameters are estimated adaptively through neural networks.
[0055] In addition, since samples of the same category have roughly the same statistical distribution characteristics, in the modeling process of the entire SAR image, the pixel information of the same category is modeled as a G0 statistical distribution cluster. The pixels in each G0 distribution cluster are independent of each other. The specific distribution is as follows:
[0056]
[0057] Among them, x i is a pixel point in the SAR image; z k is pixel x i The corresponding category latent variable has a value range of {0, 1}. When z1=1 and z2=0, it means that the pixel point x i For non-ship pixels, when z1=0 and z1=1, it means that the pixel x i N is the pixel point of ship type;k is the number of samples of two types of pixels in the SAR image.
[0058] N1 is the number of ship-like pixels in the SAR image, N2 is the number of non-ship-like pixels in the SAR image, α i represents the shape parameter, γ i represents the scale parameter, and Γ represents the Gamma function.
[0059] In the model branch, an encoder composed of a convolutional neural network is used to generate a latent variable feature map of the same size as the SAR image; the latent variable feature map is binarized to generate a ship-like mask map and a non-ship-like mask map; the ship-like mask map and the non-ship-like mask map are multiplied with the SAR image respectively, and then input into a decoder composed of a convolutional neural network; the multiplied image is decoded by the decoder to obtain the G0 distribution parameter value of each pixel; the SAR ship detection network is alternately optimized based on the classification and regression results, the second loss function, the G0 distribution parameter value and the first loss function to obtain a trained SAR ship detection network.
[0060] The detailed structure of the model branch parameter estimation network is as follows Figure 4 As shown in the figure, it is mainly composed of an encoder and a decoder. The encoder encodes the SAR image into a category map with semantic information through a convolutional neural network, and the decoding process decodes the encoding result into a statistical distribution parameter map about the G0 distribution through the network.
[0061] First, the encoding process of the model is introduced. The input image size is H×W×1, and the multi-scale features P2, P3, P4, and P5 are obtained through the feature pyramid network based on Resnet50. Each scale feature is upsampled and superimposed and fused with the adjacent features of the upper layer until it is upsampled to the size of the original image. Specifically, after the P5 feature is extracted by the convolution layer, it is sent to the deconvolution layer after batch normalization and upsampled to the size of P4. The upsampled feature map is then added to P4 to obtain the fused feature map P4'. P4' continues to repeat the above steps until it is encoded into a feature map with the same size as the original image and the number of channels as 1. The encoded probability map is then obtained through the activation function Sigmoid. The probability of each pixel represents the probability value of the pixel being a ship. By converting the probability Figure 2 The value is converted into two class masks m1 and m2, both of which are of size H×W×1. The probability threshold is set to 0.5, and those greater than 0.5 are ships, and those less than 0.5 are non-ships. m1 and m2 are complementary. At this point, the encoding process ends.
[0062] The decoding process uses the mask images m1 and m2 obtained by the encoder and multiplied by the original image as the input of the mask network, and predicts the parameter map of the G0 distribution of each pixel through the decoding network. The size of the parameter map is H×W×2, and the number of channels is 2, which represent the parameters α and γ of the G0 distribution respectively. The specific details of the decoding network are as follows Figure 4 As shown, it is built with two layers of convolution and batch normalization layers.
[0063] In the present invention, a neural network is used to adaptively estimate the shape parameter α and scale parameter γ of each pixel in the image. Specifically, after the SAR image is input into the network, first, the backbone network extracts the underlying shared features, and then sends them to the model branch and the detection branch respectively. After being sent to the model branch, the encoder composed of the convolutional network first obtains a latent variable feature map of the same size as the original image, that is, a category map composed of z corresponding to each pixel x. After binarizing the category map, the mask maps m1 and m2 of the ship and non-ship are obtained. Here, the mask represents the high-level semantic information of the input image and reflects whether each pixel is a target. In the decoding process, the encoded mask maps m1 and m2 are multiplied by the trained SAR image respectively to obtain two images, and then the two images are input into the decoder composed of the convolutional network, and the G0 statistical characteristic parameters obeyed by the input image are reconstructed to obtain logα. At this point, the estimation of the statistical distribution parameters of the pixel point G0 is completed.
[0064] The shape parameter α and the scale parameter γ are used to optimize the decoding process and thus affect the underlying pyramid features. The shape parameter α and the scale parameter γ are included in the first loss function. In the process of passing the loss function back, the underlying features will be continuously optimized. The underlying features are continuously optimized in the process of estimating the statistical distribution parameters at the pixel level, so that the underlying features contain pixel-level information.
[0065] The detection branch focuses on regional target feature extraction. Specifically, the SAR ship detection network is used to extract multi-scale features from SAR images containing ship-type targets to obtain feature maps; the RPN network and Fast RCNN network are used to classify and regress the feature maps in turn; according to the classification and regression results, the parameters of the SAR ship detection network are optimized in combination with the second loss function to obtain a trained SAR ship detection network. In this embodiment, the SAR ship detection network specifically adopts a feature pyramid network.
[0066] The present invention adopts a two-stage detection algorithm FPN (Feature Pyramid Networks for Object Detection), which is mainly composed of two sub-networks, RPN (Region Proposal Network) network and Fast RCNN network.
[0067] Specifically, based on the feature map extracted by the RAM ship detection network, the RPN network is used to predict several candidate target areas that may be foregrounds in the SAR image. Based on the Fast RCNN network, the candidate target areas are classified and regressed to obtain the target box of the ship in the SAR image.
[0068] More specifically, it includes predicting several target boxes in the feature map based on the RPN network, and calculating the offset of the target box relative to the anchor box and the probability that the target box is the foreground; determining the predicted target box of the ship in the SAR image according to the probability that the target box is the foreground; obtaining the corresponding area in the SAR image corresponding to the predicted target box of the ship, classifying the corresponding area based on the Fast RCNN network, and obtaining the detection box and regression value of the ship in the SAR image.
[0069] In the first stage, the region proposal network (RPN) extracts regions of interest (Proposals) based on the underlying features to achieve foreground and background classification and rough regression.
[0070] In the second stage, the Fast RCNN network will perform region of interest feature extraction (ROI) on the extracted proposals, and then perform fine regression and classification to finally obtain the coordinate information and category of the target in the image, thereby realizing SAR ship detection.
[0071] After the underlying shared features are input into the RPN network, the offset (dx, dy, dw, dh) of the target box relative to the anchor and the probability that the target box is the foreground are first predicted based on the pre-designed anchor box. In this embodiment, the 2000 candidate target boxes with the highest probability are selected based on strategies such as target box probability and non-maximum suppression (NMS).
[0072] The Fast RCNN network performs a cropping operation on the underlying features based on the target boxes selected in the first stage, crops the underlying features corresponding to the region of interest and normalizes them to a uniform size. Then the feature maps of these target boxes are sent to the convolutional network in the second stage for secondary regression and classification, and finally the category and coordinates of the target are obtained, and SAR target detection is completed.
[0073] After the network is built, it needs to be optimized. Here we introduce the optimization of the model branch and the detection branch respectively.
[0074] 1) Model branch optimization strategy
[0075] Since the SAR images in the experimental data set are single-look images (SLC), the number of views n is set to 1. z is the latent variable corresponding to x, z = 0 means that the pixel x is a non-ship pixel, z = 1 means that the pixel x is a ship pixel, α represents the shape parameter corresponding to x, and γ represents the scale parameter corresponding to x.
[0076] According to the maximum likelihood optimization criterion, it is necessary to maximize logP(x|z). Therefore, the loss function of the model branch (i.e., the first loss function) is:
[0077]
[0078] in,
[0079] Therefore, the overall optimization function of the model branch is:
[0080]
[0081] 2) Detection branch optimization strategy
[0082] The loss functions of the discriminant branch include the RPN network Loss and the Fast RCNN network Loss. The RPN network includes regression loss and classification loss. The regression loss uses Smooth L1 Loss, and the classification loss uses cross entropy loss. The regression loss and classification loss functions of the Fast RCNN network are the same as those of the RPN network, which is the second loss function:
[0083]
[0084] Among them, Loss_2 represents the second loss function, including the loss functions of the RPN network, Loss_RPN and Loss_FastRCNN. Loss_rpn_cla represents the classification loss of the RPN network, Loss_rpn_loc represents the regression loss of the RPN network, Loss_fast_rcnn_cla represents the classification loss of the Fast RCNN network, and Loss_fast_rcnn_cla represents the regression loss of the Fast RCNN network.
[0085] Therefore, the total objective function of the optimization in this embodiment is Loss_total=Loss_1+Loss_2, and the network is optimized using the Adam optimizer with the parameters set to default.
[0086] In summary, the present invention adopts a target detection method based on Group-G0 to realize SAR ship detection. By introducing category latent variables to model the SAR image and constructing a detection branch based on pixel parameter estimation of a neural network, the detection branch and the model branch share the underlying features. Under the joint action of the regional-level detection branch and the pixel-level model branch, the underlying feature subspace is continuously and alternately optimized, thereby realizing the extraction of interpretable underlying features and completing SAR ship detection based on this feature subspace.
[0087] In addition, this method introduces a model parameter estimation branch, which enables the neural network to pay more attention to the statistical model characteristics of the target itself in the process of learning the optimal solution, effectively avoiding the overfitting phenomenon that is easily caused by the original discriminant model relying solely on labels to find the target feature subspace, thereby greatly improving the generalization ability and robustness of the model.
[0088] The present invention (dual-stream network architecture) is different from the mainstream target detection algorithm that relies on manual labeling and uses CNN to only extract regional-level features of the target. The present invention designs a pixel-region dual-stream network architecture. While focusing on the target region-level feature extraction of the input image, the SAR image is pixel-modeled, and the model branch is used to realize the adaptive learning of the pixel statistical distribution model parameters. Under the joint action of the maximum likelihood function of the model branch and the detection branch detection loss, the underlying features are continuously optimized, and the target detection under the dual drive of the model and data is realized. The present invention proposes a Group-G0 SAR image statistical distribution model, and constructs a Group-G0 statistical distribution model by introducing category hidden variables in the SAR image pixel statistical distribution model. In addition, the model branch is designed to realize the adaptive estimation of the Group-G0 distribution parameters using a neural network.
[0089] The present invention adopts a feature learning framework driven by both model and data, so that the underlying shared features are continuously optimized under the joint action of the pixel-level feature information of the model branch and the region-level pixel information of the detection branch, thereby effectively improving the recall rate of the detection algorithm and greatly reducing the missed detection rate.
[0090] In addition, due to the addition of the model branch for parameter adaptive estimation, the target feature subspace extracted by the network no longer relies solely on manually annotated labels, but pays more attention to the statistical model itself that the target obeys, so that the interpretability of the features extracted by the network itself is enhanced. The present invention has unique advantages in solving the small sample problem. The small sample problem is that when the number of training set labels obtained is extremely limited, the mainstream deep learning target detection algorithm will fall into overfitting. In the present invention, by modeling the characteristics of SAR image data and introducing a SAR image data statistical model branch, the underlying features are constrained around the distribution of its statistical model, avoiding overfitting during the training process, thereby greatly enhancing the generalization ability of the model and effectively solving the small sample problem.
[0091] Verification example:
[0092] In order to illustrate the effectiveness of this method in solving the problem of small samples of SAR images, five large images taken by Gaofen-3 over five cities were selected as the data set for this experiment, and the five large images were divided into 29,399 small images of 1024×768 size. 4,644 images were randomly selected from the above 29,399 training sets as the small sample training set to verify the advantages of the method of the present invention in solving the small sample problem. The test set selected one of the five scenes as the test set, which was divided into 8,889 test images. The experimental results of the method proposed in this invention and other target detection methods are compared in Table 1.
[0093]
[0094]
[0095] In order to verify the efficiency of the method, the present invention is compared with the mainstream target detection algorithms Faster RCNN, YOLOV3, FCOS, and FPN. Table 1 shows the experimental results. According to the table, even for a small sample data set, when the number of manually labeled labels is extremely limited, the detection accuracy of the present method is still higher than that of other algorithms, which is sufficient to show that the present method has a good advantage in solving the small sample problem and demonstrates the generalization of the algorithm.
[0096] In addition, the method of the present invention and the FPN method are compared in a scene with strong speckle noise. The comparison results are as follows: Figure 5As shown in the figure, the FPN algorithm easily fails to detect ship targets in scenes with strong speckle noise, and it cannot detect targets that only partially appear at the edge. Compared with the original FPN, the method proposed in the present invention has good performance in ship recall performance in both nearshore and offshore scenes. The specific quantitative performance indicators are shown in Table 1. Compared with the FPN algorithm, the recall rate of the detection algorithm proposed in the present invention has increased by 4.21 percentage points, which reflects that the detection algorithm proposed in the present invention performs well in reducing missed target detection. It is observed that the precision indicator Precision has decreased. The reason is that after adding the model branch, the underlying feature extraction network, compared with the previous focus on the extraction of regional features, now needs to be responsible for the mining of pixel-level information at the same time, which will cause some false alarms in the results of ship detection. The overall performance of the detector is measured by the MAP indicator. The overall MAP indicator of the method proposed in the present invention has increased by 6 percentage points.
Claims
1. A method for ship detection in synthetic aperture radar images based on Group-G0 model, characterized in that: The following steps are involved: Acquire a plurality of SAR images containing ship-type targets for training; wherein each ship in the SAR images is marked with a marking frame; Training a SAR ship detection network using the SAR images containing ship-like targets; Acquire a SAR image to be detected, and use the SAR ship detection network to extract a feature map of the SAR image to be detected; The feature map is detected by using the RPN network and the Fast RCNN network in sequence to obtain a SAR image with a ship detection frame; Training a SAR ship detection network using the SAR image containing ship-type targets includes: Performing multi-scale feature extraction on the SAR image containing the ship-type target through a SAR ship detection network to obtain a feature map; Using the RPN network and the Fast RCNN network in turn to classify and regress the feature map; According to the classification and regression results, the parameters of the SAR ship detection network are optimized in combination with the second loss function to obtain a trained SAR ship detection network. After obtaining the feature map, it also includes: Using an encoder composed of a convolutional neural network to generate a latent variable feature map of the same size as the SAR image; Binarizing the latent variable feature map to generate a ship-like mask map and a non-ship-like mask map; After multiplying the ship-like mask image and the non-ship-like mask image with the SAR image respectively, the results are input into a decoder composed of a convolutional neural network; The decoder decodes the multiplied image to obtain a G0 distribution parameter value of each pixel; Alternately optimizing the SAR ship detection network based on the classification and regression results, the second loss function, the G0 distribution parameter value and the first loss function to obtain a trained SAR ship detection network; The first loss function is: Among them, x i is a pixel point in the SAR image; z k is pixel x i The corresponding category latent variable has a value range of {0, 1}. When z1=1 and z20, it means that the pixel point x i For non-ship pixels, when z1=0 and z1=1, it means that the pixel x i N is the pixel point of ship type; k is the number of samples of two types of pixels in the SAR image, N1 is the number of ship-like pixels in the SAR image, N2 is the number of non-ship-like pixels in the SAR image, α i represents the shape parameter, γ i represents the scale parameter, and Γ represents the Gamma function.
2. The method for ship detection in synthetic aperture radar images based on Group-G0 model as claimed in claim 1, characterized in that: Using the RPN network and the Fast RCNN network in turn to classify and regress the feature map includes: Based on the feature map, using an RPN network to predict several candidate target areas that may be foregrounds in the SAR image; Based on the Fast RCNN network, the candidate target area is classified and regressed to obtain the target frame of the ship in the SAR image.
3. The method for ship detection in synthetic aperture radar images based on Group-G0 model as claimed in claim 2, characterized in that: The second loss function is: Among them, Loss_2 represents the second loss function, including the loss functions of the RPN network, Loss_RPN and Loss_FastRCNN. Loss_rpn_cla represents the classification loss of the RPN network, Loss_rpn_loc represents the regression loss of the RPN network, Loss_fast_rcnn_cla represents the classification loss of the Fast RCNN network, and Loss_fast_rcnn_cla represents the regression loss of the Fast RCNN network.
