A fast detection and recognition method for small samples and small targets in complex remote sensing land environments

By improving the Faster R-CNN model, adding deconvolution layers and data augmentation, optimizing anchor combination and negative sample selection, the problems of low accuracy and weak generalization ability of small sample target detection under complex backgrounds in remote sensing images are solved, achieving for more efficient land target detection.

CN113963265BActive Publication Date: 2024-09-06BEIJING INST OF TECH LEIKE AEROSPACE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111069804.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-13
Publication Date
2024-09-06
Estimated Expiration
2041-09-13

AI Technical Summary

Technical Problem

Land target detection in existing remote sensing images does not perform well under complex backgrounds, especially dark and light-colored vehicles, and small sample data results in weak model generalization capabilities and low accuracy.

Method used

The improved Faster R-CNN convolutional neural network model is adopted, the deconvolution layer structure is added, the anchor combination is optimized, the training data set is expanded through data augmentation and difficult negative sample mining, contextual information is added, and the negative sample selection mechanism is adjusted to form a joint The network is trained.

Benefits of technology

It improves the accuracy and recognition accuracy of small sample target detection, reduces the false alarm rate, and enhances the generalization ability and detection effect of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113963265B
    Figure CN113963265B
Patent Text Reader

Abstract

The invention discloses a method for rapid detection and recognition of small samples and small targets in a complex remote sensing land environment. Based on an improved Faster R-CNN convolutional neural network architecture, a detection and recognition network for vehicle targets in a complex remote sensing land environment is constructed. By performing certain transformations and disturbance expansions on training data and repeatedly training negative samples and difficult-to-distinguish samples, the network can fully learn the changes of targets while increasing the amount of training data, thereby solving the problems of weak generalization ability and poor accuracy of the model caused by a small amount of sample data. By adding small target features and mining difficult sample information, the problems of poor small target detection effect, high false alarm rate and low recognition accuracy of Faster R-CNN are solved. RPN and Fast R-CNN share the same 5-layer convolutional neural network, and the network model parameters are optimized, so that the entire detection process only needs to complete a series of convolution operations to complete the detection and recognition process, thereby reducing the operation time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of machine learning and deep learning, and specifically relates to a method for rapid detection and recognition of small samples and small targets in a complex remote sensing land environment. Background Art

[0002] Research institutions for the detection and extraction of land targets in satellite images are concentrated in Europe and the Asia-Pacific region. Most of them use radar data or high-resolution data to carry out related scientific research activities. They have solid basic research, rich case verification, and conduct quite comprehensive research. Whether it is in the establishment of models for land target extraction, algorithm development, or the extraction and classification of land targets in different spatial distribution forms and different motion states, they have rich research results.

[0003] Foreign researchers started the applied research on traffic data collection and traffic flow condition description from aerospace imagery early on. Most of them used SAR radar data, airborne video images, and high-resolution optical satellite images to carry out related research activities, and their research content is relatively comprehensive.

[0004] There are many foreign studies on land target detection based on satellite images, which are classified into four categories according to the land target detection methods: basic detection methods, machine learning methods, shape matching methods, and object-oriented methods. Among them, the basic detection methods include threshold method, background difference method, and gradient comparison method.

[0005] At present, domestic research on the extraction of land targets in satellite remote sensing images is mostly focused on the extraction of large land objects such as urban land and buildings. There have also been some research results on the extraction of road networks and transportation hubs with obvious features. However, there are not many studies on the detection of tiny land targets such as land targets and the extraction of vehicle speed.

[0006] In addition, the biggest problem in the existing remote sensing image land target extraction methods is how to extract dark and light cars in complex backgrounds. There have been some research results in the extraction of land targets with simple backgrounds based on thresholds and geometric shapes, and researchers have also begun to try object-oriented land target extraction methods. In terms of machine learning, there have been some research results in neural network learning methods, but there is still a lot of room for improvement and breakthroughs, which needs further research. Summary of the invention

[0007] In view of this, the present invention provides a method for rapid detection and identification of small samples and small targets in a complex remote sensing land environment, which can identify and detect small sample set targets in a complex remote sensing land environment.

[0008] The technical solution for implementing the present invention is as follows:

[0009] A method for rapid detection and recognition of small samples and small targets in a complex remote sensing land environment comprises the following steps:

[0010] Step 1: Obtain satellite wide-format image data, mark the targets in the image data, and split the marked data to form a training data set;

[0011] Step 2: Improve the Faster R-CNN convolutional neural network model architecture module, add a deconvolution layer structure in the detection stage, and optimize the anchor combination;

[0012] Step 3: Expand the training data set by data augmentation, hard negative sample mining, and adding contextual information;

[0013] Step 4: Select the first five layers of ZFNet as the shared convolutional layers of Faster R-CNN as the pre-trained CNN model;

[0014] Step 5: By setting a multi-scale anchor that meets the application, using the multi-layer network output features, changing the negative sample selection mechanism to perform RPN network training, and extracting negative sample features;

[0015] Step 6. Add a deconvolution layer after conv4-3 of the Fast R-CNN network;

[0016] Step 7: Fix the shared convolutional layer and tune the FC layer of Fast R-CNN so that the Faster R-CNN network and the RPN network share the convolutional layer and form a joint network;

[0017] Step 8: Use the training data set obtained in step 3 to train the neural network obtained in step 7;

[0018] Step nine: Input the image data to be detected into the network model trained in step eight for target recognition detection.

[0019] Furthermore, the satellite wide-format image data has a resolution of 0.3 meters.

[0020] Furthermore, the data augmentation in step three is specifically as follows: performing equal-interval angle rotation, small-scale scaling transformation, translation, contrast change, saturation change, brightness transformation, and various interactive change operations on the training sample images to obtain sufficient samples.

[0021] Furthermore, the mining of difficult negative samples in step three is specifically as follows: testing each sample, selecting positive and negative samples with larger errors in the results and adding them to the training to strengthen the training of difficult samples.

[0022] Furthermore, in step three, when preparing the training data set, a target area block of 50×50 pixels is selected as a positive sample, and a negative sample is a background area block of 50×50 pixels.

[0023] Beneficial effects:

[0024] 1. The present invention improves small sample target detection through data augmentation and difficult negative sample mining: by performing certain transformations and perturbation expansions on the training data, and repeatedly training negative samples and difficult samples, the amount of training data is increased while allowing the network to fully learn the changes in the target, solving the problem of weak model generalization ability and poor accuracy caused by small sample data volume.

[0025] 2. The present invention expands the samples of context information through target background information and improves the feature resolution of small targets through deconvolution design: by increasing small target features and mining difficult sample information, the problems of poor small target detection effect, high false alarm rate and low recognition accuracy of Faster R-CNN are solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a flow chart of the detection and identification method of the present invention.

[0027] Figure 2 This is the Faster R-CNN model diagram.

[0028] Figure 3 It is the classification error function and the bounding box error function when k takes different values.

[0029] Figure 4 Schematic diagram of the database; (a) database training positive samples, (b) database training negative samples.

[0030] Figure 5 Schematic diagram of the effect of sample area size on accuracy.

[0031] Figure 6 This is the ZFNet network structure diagram.

[0032] Figure 7 It is a visual feature map.

[0033] Figure 8 This is a schematic diagram of 12 anchors (different positions).

[0034] Fig. 9 Schematic diagram of the deconvolution layer.

[0035] Fig.10 Examples of test data: (a) test data 1, (b) test data 2.

[0036] Fig.11Figure 2 shows the detection results, (a) detection result 1, (b) detection result 2. DETAILED DESCRIPTION

[0037] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0038] Reference Figure 1 Flow chart, taking visible light remote sensing land vehicle detection as an example, an experiment is carried out, and the specific implementation steps of the method of the present invention are as follows:

[0039] S1: Based on the wide-band data of Google satellite data, with a resolution of 0.3 meters, the targets in the image data are annotated and the annotated data are split to form a training data set.

[0040] S2: Improved Faster R-CNN convolutional neural network model architecture module

[0041] Faster R-CNN consists of two neural networks: RPN (Region Proposal Network) is used to predict candidate regions that may contain targets in the input image; Fast R-CNN network is used to classify candidate regions and correct the bounding boxes of candidate regions. The weight parameters of the convolutional layers of these two networks are shared, which can greatly simplify the amount of computation. The image is first processed through a convolutional neural network (ZF network and VGG network are commonly used) to obtain a feature map, and then a sliding window scan is performed on the feature map using an anchor of a certain scale and ratio. For each window, the position of the target region and the target classification on the corresponding original image are calculated, and target detection is finally achieved. The Faster R-CNN model is shown in the figure below. Figure 2 shown.

[0042] Region-based convolutional neural networks (RCNNs) detect and recognize objects by using CNNs to extract regions that may contain objects from images. Fast R-CNN and Faster R-CNN use CNN networks to extract image features, followed by a region proposal layer, which optimizes the way to extract regions that may contain objects and improves the classifier for identifying objects, making object detection and recognition almost real-time.

[0043] RPN network: Use a shared convolutional network to extract features from the image, and then input the features into the RPN convolutional layer for compression. The Proposal layer collects k initial regions at each pixel position on the feature map of size w*h, and obtains a total of w*h*k initial regions called anchors. Use a classifier to select anchors that may contain targets, and then use bounding box regression to correct the anchor bounding box to obtain the target candidate region.

[0044] During the training phase of RPN, the Proposal layer first labels the generated anchor points. Anchor points that meet the following two conditions are labeled as positive samples, otherwise they are negative samples.

[0045] 1) The intersection rate (IoU) between the anchor and the target is the largest;

[0046] 2) The intersection rate between the anchor point and at least one target is not less than 0.7.

[0047] After marking the anchor points, equation (1) is used as the cost function of RPN to train the RPN network:

[0048]

[0049] Where i represents the index value of the anchor point; N cls is the number of anchor points; N reg The number of positive anchor points; P i is the prediction confidence, and its value range is 0 to 1; is the marked value, Take 1 to represent a positive sample, Take 0 to represent a negative sample; t i Correction value for the predicted anchor bounding box; is the correction value of the actual anchor point bounding box (the correction value of the bounding box is a four-dimensional vector, which includes the correction value of the center point position of the bounding box and the correction value of the width and height of the bounding box); L cls is the classification cost, which uses the cross entropy cost function to represent the error between the prediction confidence and the target value; L reg is the bounding box regression cost. The above formula combines the classification cost and the bounding box regression cost by balancing the weight λ. The RPN trained with this cost function can predict the target anchor points, and the target candidate regions (ROIs) can be obtained by correcting the bounding boxes of these anchor points. These candidate regions are input into the Fast-RCNN part for further detection.

[0050] The ROI pooling layer in Fast-RCNN uses spatial pyramid pooling, whose input is the feature map corresponding to the target candidate region, and the output is a feature vector of fixed length. The feature vector is input into the Softmax classifier and bounding box regression through the fully connected layer to predict the target category and bounding box correction value. Finally, non-maximum suppression is used to eliminate duplicate bounding boxes to obtain the detection result. The cost function for training Fast-RCNN is as follows:

[0051]

[0052] Among them, L cls is the classification cost; L regis the border regression cost; p is the classification prediction result; u represents the uth class; t u is the correction value predicted by the regression of the u-th class border; v is the actual correction value.

[0053] In order to solve the problems of poor small target detection effect, high false alarm rate and low recognition accuracy of Faster R-CNN, small target sample data is trained and contextual semantic information is added to improve the small target detection ability. By analyzing the influence of dropout ratio, nms and batch size on the recognition results, the training model parameters are optimized to enhance the network detection rate. In the detection stage, the deconvolution layer is added to improve the detection accuracy of small targets. In order to solve the problems of weak model generalization ability and poor accuracy caused by the small amount of sample data in the project, the training data is transformed and perturbed to increase the number of positive samples, and the information of difficult negative samples is mined to reduce the classification error. Since the detection of small targets will inevitably increase the scale and features, resulting in an increase in the amount of calculation, the anchor combination is selected as {8 2 ,16 2 ,32 2 ,64 2}, the amount of calculation is greatly reduced while meeting a certain detection rate.

[0054] S3: Training data preparation module

[0055] The terrestrial environment is complex and changeable, and the target information that can be obtained is limited. We can only analyze and monitor the target based on a small amount of collected target information. At the same time, because it is remote sensing data, it is necessary to detect and identify target information of smaller size. All these bring challenges to target detection and identification under deep learning. In response to application needs, on the one hand, in terms of data preparation, we increase data depth and improve data quality through data augmentation and difficult negative sample information mining to enhance detection and identification capabilities; on the other hand, we achieve application needs through subsequent network optimization. In terms of data preparation, we start from the following three points:

[0056] 1) Data augmentation for small samples

[0057] Training a CNN model with high recognition rate and strong generalization ability often requires a large number of labeled samples. At present, most deep learning models are oriented to natural scene image recognition tasks. They are well-researched, with huge amounts of data, and have achieved excellent results. However, there are few mature public remote sensing data sets for targets such as tanks, armored vehicles, and artillery in complex battlefield environments. The data that can be used is also a small amount of data annotated by limited manpower, which poses a challenge to training effective deep models.

[0058] In order to reduce the difference within the target class and improve the recognition accuracy, the method of fine classification is generally adopted. When annotating data, the "background" is finely classified into various trees, farmland, rivers, etc. according to the characteristics of the image; at the same time, in order to enhance the robustness of the network, according to the characteristics of the battlefield recognition target sample, after the sample annotation is completed, the training sample image is rotated at equal intervals, small-scale scaling transformation, translation, contrast change, saturation change, brightness change, and various interactive change operations are performed on the training sample image to obtain sufficient samples for network parameter training, that is, to enhance the network's recognition ability for targets under complex changes such as illumination, translation, and angle, and to perform certain transformations and perturbations on the training data. While increasing the amount of training data, the network can fully learn the changes of the target. For example, when training the tank recognition model, only 7 rotation transformations, 1 illumination transformation, and 1 mirror transformation of the tank training sample are added, so that the sample is expanded by (7+1)(1+1)(1+1)=32 times. Compared with before the augmentation change, the recognition accuracy is improved by more than 10%.

[0059] 2) Hard Negative Sample Mining

[0060] The data for training Fast-RCNN comes from the candidate regions predicted by RPN. Since RPN is a rough prediction and positioning of the target, the background areas in these candidate regions are far more than the target areas, and the ratio of background to foreground is as high as 100:1. For this situation of imbalance between positive and negative samples, the original Faster-RCNN extracts a certain ratio of positive and negative samples through random sampling to obtain a minibatch of fixed size, and then uses this minibatch to train Fast-RCNN. This method is simple and easy to implement, but lacks learning of difficult negative samples and difficult positive samples, and its classification accuracy and border accuracy still have room for improvement. In order to reduce misjudgment and improve the accuracy of the bounding box, the solution of the present invention proposes a self-service sampling method to improve the training effect of Faster-RCNN.

[0061] The specific implementation method is as follows: each sample is tested once before Faster-RCNN training, and positive and negative samples with large errors in the results are selected to be added to the training to strengthen the training of difficult samples. Different from the mining of difficult negative samples, this method adds the selection of difficult positive samples. The collection of difficult positive samples requires the comprehensive consideration of two factors: classification error and border error. If the sampling strategy is biased towards positive samples with large classification errors, the prediction probability in the training results will be high, the missed detection rate will be reduced, but the border accuracy may be reduced, and vice versa. Low confidence levels can easily lead to missed detections, and low border-target intersection rates can also easily lead to false detections. Therefore, when selecting difficult positive samples, the present invention will give priority to samples with a small intersection rate with the target to reduce false detections in the training results; when the sample has a large intersection rate with the target, it tends to select samples with low classification accuracy, thereby reducing missed detections in the training results. In this regard, the present invention designs a discriminant function, as shown in formula (3):

[0062] L(o,p)=L IoU (o)+L score (p) ⑶

[0063]

[0064] L score (p) = 1-p (5)

[0065] Among them, L IoU is the frame error; L score is the classification error, and its definitions are shown in formula (4) and formula (5). IoU Where o is the intersection rate between the sample and the target, k is L IoU For the sensitivity coefficient of the threshold value of 0.5, the intersection rate of 0.5 is usually used as the threshold for judging whether the border is correct, and this value is directly introduced into the formula. score Where p is the classification confidence, L score It is linearly negatively correlated with p. The value range of each sample's intersection rate with the target o and the prediction confidence p is 0 to 1. The discriminant function is used to calculate the discriminant value corresponding to each sample. When L(o, p) is greater than a certain threshold, it is judged as a difficult positive sample.

[0066] Figure 3 When k takes different values, L IoU and L score Function curve. In the figure, when k is 0, L IoU is a constant. At this time, the size of the discriminant function L is only related to the prediction confidence p and has nothing to do with the intersection rate o. When k is 10, the discriminant function L is more sensitive to samples with o less than 0.5, and these more samples are selected. When k is infinite, L IoUis a step function at 0.5, and samples with o less than 0.5 are completely prioritized as difficult samples. Therefore, the larger k is, the greater the influence of the intersection rate o on the discriminant function, and the proportion of samples with large border errors in the selected difficult positive samples is greater.

[0067] Negative samples only affect the classification error but not the bounding box error, so only samples with large classification errors need to be selected as hard negative samples. Since the prediction confidence of the background is not used during detection, but the background area is rejected by the confidence of the target category, the greater the prediction confidence of the negative sample in the target category, the greater the error. The hard negative samples with a prediction confidence not less than the threshold are selected by setting a threshold.

[0068] Finally, all the obtained positive and negative difficult samples are combined, and a certain number of samples are randomly selected from them to form a minibatch. The fixed ratio of foreground to background is not maintained during the selection, because the distribution of data reflects the difficulty of the category, and the category with more difficult samples should be learned more. When the number of difficult samples is insufficient, the negative samples are sorted from large to small according to the previously calculated prediction confidence, and the samples with higher sorting and larger errors are selected to complete the minibatch.

[0069] 3) Add sample data with context information

[0070] Here, we take the existing data of civilian vehicle training as an example. Taking the position of the vehicle target as the center, we select a certain length to extract a rectangular target area block as a training sample. Since the default input image size is 224×224 pixels, the extracted target area blocks are uniformly scaled to this size. Figure 4 (a)(b) are parts of the training positive and negative samples, respectively, where the original size of the region block is 30×30 pixels.

[0071] The feature information of small targets alone is often not enough. Sometimes, when it is difficult to judge, the regional features can help to judge. For this reason, we consider adding appropriate scene context information. We made appropriate regional expansion based on the positive samples. The influence of sample area size on accuracy is shown in the following figure. Figure 5 As shown in the figure (where all image blocks are resized to 224×224 pixels). It can be seen that the accuracy is highest when the sample area size is 50×50 pixels, so appropriately supplementing the contextual semantic information can effectively improve the accuracy. Therefore, when making the training set, we choose to extract a 50×50 pixel area block as the positive sample, and a 50×50 pixel background area block as the negative sample. The ratio of positive and negative samples in the training data set and the test data set is 1:2.

[0072] S4: Pre-trained CNN model

[0073] Both the RPN network and the detection network need to be initialized with a pre-trained ImageNet network. The networks commonly used are ZFnet (Zeiler and Fergus), AlexNet, and VGG16 (Simonyan and Zissermanmoda). Due to the small size of the dataset, the ZFnet network was selected. The ZFnet model was pre-trained using the collected relevant data. Both the region proposal network and the detection network are obtained by adding specific layers after the ZFnet output. These specific layers can extract the area that may contain the target from the input image and calculate the probability that the area is the target.

[0074] The network structure of ZFNet is actually not much different from that of AlexNet. The difference is that AlexNet uses a sparse connection structure of two GPUs, while ZFNet uses a dense connection structure of only one GPU. At the same time, because visualization can be used to select a good network structure, it is found through visualization that there is a large mixture of high-frequency and low-frequency information in the first layer of AlexNet, but almost no coverage of the intermediate frequency information; and in the second layer, the stride length of the first layer convolution is 4, which is too large, resulting in a lot of aliasing. Therefore, the first layer of AlexNet is changed, that is, the filter size of 11x11 is changed to 7x7, and the stride length of 4 is changed to 2, and the improved ZFNet (such as Figure 6 shown);

[0075] ZFNet also has significant improvements in network structure visualization feature maps, and classification performance has also been improved. Figure 7 Figure 1 is the feature visualization effect. Figure (a) is a feature visualization of an uncropped image after the first convolution layer. Note that one feature is completely white. Figure (b) is a feature visualization of the first convolution layer in AlexNet. Figure (c) is a feature visualization of the first convolution layer in ZFNet. It can be seen that there are more unique features and fewer meaningless features than before, such as the 3rd to 6th rows in the 3rd column. Figure (d) is a feature visualization of the second convolution layer in AlexNet. Figure (e) is a feature visualization of the second convolution layer in ZFNet. It can be seen that the features in (e) are cleaner and clearer, retaining more information in the first and second layers.

[0076] Based on the advantages of ZFNet and the small-scale data target of the present invention, the first five layers of ZFNet are selected as the shared convolutional layers of Faster R-CNN to obtain feature maps.

[0077] S5: RPN network training

[0078] The image training set is constructed using LZC images, but there are significant differences between the LZC image set and the pre-trained image set in terms of the number of categories and image styles. When training the RPN network with the LZC image set, the RPN is initialized directly using the pre-trained ZFnet model in the previous step, and the back-propagation algorithm is used to tune the region proposal network.

[0079] The input of the RPN network is an image of any size, and the output is a region box that may contain the target. A small convolution layer is added after CONV5 of ZFnet. For each position on the feature map (corresponding to a position on the original image), the small convolution layer performs a convolution operation, that is, a small window is opened at this position for convolution operation, and a 256-dimensional vector corresponding to the same position is obtained (due to 256 channels). This vector reflects the deep features in the small window at this position (corresponding to a window on the original image). This 256-dimensional feature vector can be used to predict: 1) The probability value of the small window at this position belonging to the target / background, that is, the score; 2) The deviation of the window containing the target near this position relative to the small window at this position, represented by 4 parameters, 2 translations, and 2 scaling.

[0080] The original network uses 9 benchmark small windows composed of 3 different sizes and 3 different ratios (1:1, 1:2, 2:1) to predict the position of the window containing the target, which can make the region proposal more accurate.

[0081] Faster R-CNN is not very effective in detecting small targets. There are three main reasons for this: First, the RPN network can only extract targets with larger pixel sizes. The target area size of the anchor corresponding to the original image is too large. The three anchor sizes are {1282, 2562, 5122}, and the corresponding ratio of each size is {1:1, 1:2, 2:1}; second, the small target has lost some information on the feature map output by conv5 after passing through the first five layers of the network; third, there is a lack of difficult sample mining steps and inappropriate negative sample selection (only those with IoU∈[0.1, 0.5] with positive samples are considered negative samples, ignoring a large number of distractors in the background). It is difficult for the classification network to distinguish small targets from suspected targets in complex backgrounds.

[0082] 1) For the first problem, if we want to increase the compatibility with small objects, we need to add anchors of smaller scales, but this will also increase the amount of computation, or we can directly replace them with smaller anchors;

[0083] The anchor size used by the original Faster R-CNN is {128 2 ,256 2 ,512 2}, the default setting value is too large for small targets. To this end, we first analyze the anchor scale suitable for small target detection. By analyzing the width and length of the bounding rectangle of the training data target, we can find that for most images, the size of the vehicle target inside is 20×20 pixels, but the width of the vehicle is sometimes less than 10 pixels. For this reason, the proposed anchor size is {8 2 ,16 2 ,32 2 ,64 2}, four scales, three ratios, so each position has 4*3=12 anchors, such as Figure 8 shown.

[0084] If only one anchor size is used at each position, the simulation results show that the mAP is reduced by at least 3% to 4%. As for how to choose the appropriate anchor size, six different combinations are used here, and simulation analysis is performed. The anchor ratios are still 1:1, 1:2, and 2:1, which are used in Faster R-CNN. The performance results are shown in Table 1. It can be found that using more anchor scales can achieve better results. Considering the amount of calculation and complexity, the anchor combination used in this invention is {8 2 ,16 2 ,32 2 ,64 2}.

[0085] Table 1 Detection results under different anchor scale combinations

[0086] Anchor Configuration Anchor size AP(%) 3scales <![CDATA[{8 2 ,16 2 ,32 2 }]]> 60.39 3scales <![CDATA[{16 2 ,32 2 ,64 2 }]]> 57。39 3scales <![CDATA[{32 2 ,64 2 ,128 2 }]]> 61。04 4scales <![CDATA[{8 2 ,16 2 ,32 2 ,64 2 }]]> 64。06 4scales <![CDATA[{16 2 ,32 2 ,64 2 ,128 2 }]]> 63。42 5scales <![CDATA[{8 2 ,16 2 ,32 2 ,64 2 ,128 2 }]]> 64。10

[0087] 2) For the second problem, the network output features of the first few layers of conv5 are used as input for the next stage;

[0088] 3) For the third problem, we need to change the negative sample selection mechanism, add negative samples from the background, and at the same time mine the difficult samples in training for the subsequent secondary training.

[0089] During the training process, a candidate target is judged as a positive sample or a negative sample based on IoU, which is defined as follows.

[0090]

[0091] Among them area(B p ∩B g ) represents the intersection of the area between the candidate target block and the ground truth box, area(B p ∪B g) represents the union of the two.

[0092] If the IoU between a candidate target and the ground truth box is greater than or equal to 0.7, then That is, this is considered a positive sample; if IoU is less than 0.3, then is a negative sample.

[0093] The original Faster R-CNN training was divided into two steps, and each step trained the RPN network and the classification network (Fast R-CNN) in turn. Now we add difficult sample training and divide the training process into three steps: the first step is to train the RPN network first, and then train the Fast R-CNN network; the second step is to repeat the previous step for training; the third step is to use the wrong samples in the second step as training samples and retrain the difficult samples.

[0094] In addition, when Faster R-CNN is actually detecting objects, the RPN stage will automatically filter out candidate objects with a size less than 16 by default, and a considerable number of small objects in actual detection are of this size. Filtering out small objects can improve the system's noise resistance, so in the process of optimizing Faster R-CNN parameters, filtering out small objects is still retained, but the threshold is reduced to 6 pixels.

[0095] S6: Fast R-CNN detection network training

[0096] According to the region proposal results generated in the previous step, an independent detection network is trained based on the Fast-RCNN method, and the detection network is also initialized using the ZFnet pre-trained model.

[0097] The input image is subjected to feature extraction of a 5-layer convolutional network. The 5th layer feature map (CONV5) is a 256×256 feature map. The corresponding deep features on CONV5 are taken out, and all the features in the 256 channels are concatenated into a high-dimensional (4096-dimensional) feature vector, called the FC6 feature layer. Another 4096-dimensional feature layer is added to form FC7. FC6 and FC7 are fully connected. The FC7 feature layer can predict: 1) the probability that the candidate region box belongs to each category, that is, the score; 2) the more appropriate position of the outer frame of the target object, which is represented by 4 parameters, including 2 translations and 2 scalings relative to the candidate region box. The detection network is fine-tuned using the back propagation algorithm based on the pre-labeled information.

[0098] In order to improve the detection accuracy of small targets, a deconvolution layer is added after conv4-3 (such as Fig. 9 As shown in Figure 2), the resolution of the feature map is increased, which improves the detection accuracy of small targets.

[0099] S7: CNN sharing and joint tuning of two networks

[0100] The two networks are trained separately and the parameters of the convolutional network are not shared. The RPN network is initialized using the detection network trained in (2), and the shared deep convolutional layer is fixed. The special part of the RPN network is tuned. In order to correspond to the detection network, this part is called the FC layer of the RPN network. In this way, the two networks share the deep convolutional layer.

[0101] Finally, the shared convolutional layers are fixed and the FC layers of Fast R-CNN are fine-tuned. In this way, the two networks share the convolutional layers and form a joint network.

[0102] S8: Detection and recognition integrated target extraction and classification

[0103] The network is trained using the training data set obtained from S3; based on the trained network results, the RPN network and the FastR-CNN network finally share the same 5-layer convolutional neural network, so that the entire detection process only needs to complete a series of convolution operations to complete the detection and recognition process, which completely solves the bottleneck problem of the original region proposal step with high time overhead, and has certain improvements in the detection of small targets.

[0104] The detection and recognition results are shown in Figure 10, and the implementation steps are as follows:

[0105] 1) Perform a series of convolution operations on the entire image to obtain the feature map CONV5;

[0106] 2) The region proposal network generates a large number of candidate region boxes on the feature map;

[0107] 3) After sorting the candidate region boxes according to the scores, non-maximum suppression is performed, and the top 300 boxes with higher scores are retained to obtain the target detection position;

[0108] 4) The features within the candidate region box on the feature map are taken out to form a high-dimensional feature vector. The detection network calculates the category score and predicts a more appropriate target peripheral frame position.

[0109] S9: Convolutional network experiments on self-collected data.

[0110] Based on the above optimization design, we autonomously obtain visible light remote sensing image data and test and verify the detection and recognition technology based on deep convolutional networks. We continuously monitor a certain intersection and obtain large-field images of the intersection at different time periods and angles. The size of each image is 1080*1920 pixels. We select 10 test data containing different small targets and targets in different states. Two of the test data are as follows: Fig.10 , Fig.11As shown in (a) and (b), it can be seen that there are small targets to be detected in the parking lot and road network in the scene.

[0111] For the test data of various small targets in the above complex large scenes, the automatic detection results of the detection and recognition technology based on deep convolutional networks are shown in the table. It can be seen that the detection rate of the above technology for the target is 86.1%, which meets the 80% index requirement. The detailed results are shown in Table 2. The detection results of typical test data are shown in the figure. It can be seen from the test results that the detection and recognition technology based on deep convolutional networks has achieved the expected detection effect for small targets in the scene, and has good performance in detecting vehicles in road networks and parking lots, but there will be a certain degree of missed detection for targets with low contrast with the background and targets with occlusion, which will also become the main direction of future algorithm improvement.

[0112] Table 2 Statistics of target detection results

[0113]

[0114]

[0115] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for rapid detection and identification of small samples and small targets in a complex remote sensing land environment, characterized in that: The following steps are involved: Step 1: Obtain satellite wide-format image data, mark the targets in the image data, and split the marked data to form a training data set; Step 2: Improve the Faster R-CNN convolutional neural network model architecture module, add a deconvolution layer structure in the detection stage, and optimize the anchor combination; Step 3: Expand the training data set by data augmentation, hard negative sample mining, and adding contextual information; Data augmentation is as follows: performing equal-interval angle rotation, small-scale scaling transformation, translation, contrast change, saturation change, brightness change, and various interactive change operations on the training sample images to obtain sufficient samples; The specific method of mining difficult negative samples is as follows: test each sample, select positive and negative samples with large errors in the results and add them to the training to strengthen the training of difficult samples; When making the training data set, we choose to extract a 50×50 pixel target area block as the positive sample, and a 50×50 pixel background area block as the negative sample; Step 4: Select the first five layers of ZFNet as the shared convolutional layers of Faster R-CNN as the pre-trained CNN model; Step 5: By setting a multi-scale anchor that meets the application, using the multi-layer network output features, changing the negative sample selection mechanism to perform RPN network training, and extracting negative sample features; Step 6. Add a deconvolution layer after conv4-3 of the Fast R-CNN network; Step 7: Fix the shared convolutional layer and tune the FC layer of Fast R-CNN so that the Faster R-CNN network and the RPN network share the convolutional layer and form a joint network; Step 8: Use the training data set obtained in step 3 to train the neural network obtained in step 7; Step nine: Input the image data to be detected into the network model trained in step eight for target recognition detection.

2. The method for rapid detection and identification of small samples and small targets in a complex remote sensing land environment as claimed in claim 1, characterized in that: The satellite wide-format image data has a resolution of 0.3 meters.