Target Detection Method for UAV Aerial Image Analysis

By combining the enhanced bottleneck residual network and depth-separable convolution technology, the problem of low detection accuracy and efficiency in target detection in UAV aerial images is solved, and efficient target detection is achieved.

CN114998757BActive Publication Date: 2024-09-03TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210544941.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2024-09-03
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

Existing UAV aerial image target detection methods have shortcomings in detection accuracy and efficiency, especially the low efficiency caused by the limited computing power of UAV onboard equipment and the complexity of the model.

Method used

Using a lightweight combination of enhanced bottleneck residual network, pooling network, feature fusion network and prediction network, the amount of model parameters and calculations are reduced through depth-separable convolution and maximum pooling branch structures, and the cross-entropy loss function is introduced Weighting factors to improve detection accuracy and efficiency.

Benefits of technology

It significantly improves the detection accuracy and efficiency of target detection in UAV aerial images, while reducing the amount of network parameters and calculations, and solving the complexity problem of target detection on airborne equipment with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114998757B
    Figure CN114998757B
Patent Text Reader

Abstract

The present invention relates to a target detection method for unmanned aerial image analysis, and its main technical features are: obtaining training set samples and verification set samples; constructing an aerial image target detection network model: pre-training the aerial image target detection network model; model training the pre-trained aerial image target detection model to obtain an optimal network model, using the optimal network model to perform aerial image target detection: obtaining the category and position information of the target in the aerial image. The present invention constructs a lightweight backbone network based on an enhanced bottleneck residual module, uses deep separable convolution in a feature fusion network and a prediction network to reduce the number of network parameters and the amount of calculation, and uses CIoU loss to calculate the regression loss, thereby improving the detection accuracy of the model without additionally increasing the reasoning time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image processing, and in particular to a target detection method for analyzing unmanned aerial vehicle aerial images. Background Art

[0002] The target detection technology of drone aerial photography mainly combines drones with target detection technology. The drone carries optical imaging equipment to obtain high-resolution real-scene digital images of distant targets under non-contact conditions, and relies on target detection technology to analyze the aerial images, locate and identify key targets in the images. The target detection technology of drone aerial photography has the characteristics of flexibility, high efficiency, low operating cost, and wide application range, and has broad application prospects in many fields.

[0003] Thanks to the substantial improvement in the computing power of hardware devices and the emergence of massive annotated image data sets, deep learning methods represented by Convolutional Neural Networks (CNN) have been gradually used in various visual tasks, including object classification, object detection, semantic segmentation, etc., and have achieved performance that exceeds that of traditional manual feature construction methods. However, there are still some problems in using CNN for object detection in drone aerial images.

[0004] First, aerial image targets have the characteristics of variable scales, dense distribution, severe occlusion, and small scale. The current CNN-based target detection methods are mostly aimed at conventional images taken at horizontal angles. Directly using existing methods to detect targets in drone aerial images has the problem of low detection accuracy.

[0005] Secondly, the data processing methods for drone aerial image target detection can be divided into two categories: (1) Non-airborne processing: The aerial images collected by the drone are transmitted to the ground processing center via a wireless network, analyzed and judged by the server, and then the analysis results are transmitted to the drone. This method can use the powerful computing power of the server to run complex neural network models, thereby achieving higher detection accuracy. However, in the process of transmitting data to the ground processing center, there are problems such as high feedback delay, network transmission limited by bandwidth, and potential safety hazards in long-distance transmission. (2) Airborne processing: Autonomously perform aerial image target detection on the drone's onboard computing device. This type of method deploys the detection model directly on the mobile terminal, so it will not be affected by network bandwidth, greatly reducing latency, and improving data security and privacy, and has broad application prospects. However, the resources of drone onboard equipment are limited, and target detection methods with high complexity can only be run on the onboard computing device with extremely low efficiency.

[0006] In summary, how to use CNN lightweight technology to optimize the existing target detection method to maintain detection accuracy and reduce the number of model parameters and calculation amount is an urgent problem that needs to be solved. Summary of the invention

[0007] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a target detection method for unmanned aerial vehicle aerial image analysis, which solves the problems of limited computing power of unmanned aerial vehicle onboard equipment and complex existing target detection algorithm models, improves detection accuracy and detection efficiency, and significantly reduces the number of network parameters and calculation amount.

[0008] The present invention solves the existing technical problems by adopting the following technical solutions:

[0009] A target detection method for analyzing drone aerial images comprises the following steps:

[0010] Step 1: Prepare aerial image dataset: randomly divide a number of aerial images in proportion to obtain training set samples and validation set samples;

[0011] Step 2: Construct an aerial image target detection network model: The aerial image target detection network model consists of four parts: an enhanced bottleneck residual network, a pooling network, a feature fusion network, and a prediction network.

[0012] Step 3: Pre-train the aerial image target detection network model to obtain the initialization parameters of the enhanced bottleneck residual network;

[0013] Step 4: Perform model training on the initialized aerial image target detection model;

[0014] Step 5: Convergence judgment of the aerial image target detection network model: if the loss function does not converge, adjust the learning rate to optimize the network parameters and go to step 4; if the loss function converges, stop training, obtain the optimal network model and go to step 6;

[0015] Step 6: Use the optimal network model to detect aerial image targets: Use a drone to obtain aerial images, import the aerial images into the optimal network model for calculation, and obtain the category and location information of the targets in the aerial images.

[0016] Furthermore, the specific implementation method of step 1 is: use annotation software to annotate the aerial images collected by the drone, annotate the categories of objects in the aerial images and the positions of the detection frames, and randomly divide the annotated aerial images into a training set and a test set in a ratio of 8:2.

[0017] Furthermore, the enhanced bottleneck residual network extracts features from the input image to obtain an output feature matrix; the pooling network performs pooling and feature splicing on local area features of different scales in the same convolutional layer; the feature fusion network fuses features of different scales; and the prediction network performs final classification and regression on the feature matrix output by the feature fusion network.

[0018] Furthermore, the specific implementation method of step 2 includes the following steps:

[0019] Step 2.1, the enhanced bottleneck residual network extracts features from the input image to obtain the output feature matrix: the enhanced bottleneck residual network is composed of m enhanced bottleneck residual modules of different sizes stacked together. The enhanced bottleneck residual module first encodes the feature information through 3×3 deep convolution and ReLU6 activation function; then uses 1×1 point-by-point convolution and linear activation function for channel compression; next, uses 1×1 point-by-point convolution and ReLU6 activation function for channel expansion, and finally uses 3×3 deep convolution and linear activation function for feature extraction; when the step size of the second deep convolution is 1 When the step size of the second deep convolution is 2, the enhanced bottleneck residual module sets a 2×2 maximum pooling branch between the input and output to strengthen the fusion of the previous and next layer features and promote gradient back propagation. The 2×2 maximum pooling branch consists of 2×2 maximum pooling and 1×1 point-by-point convolution. The pooling layer is used to extract feature information, and the convolution layer is used to encode channel information. Then, the output of the pooling branch and the output of the deep convolution are added to obtain the output feature matrix.

[0020] Step 2.2: Pooling network performs maximum pooling operation on the feature matrix obtained in step 2.1 with four different window sizes, and then performs feature concatenation on the feature matrix obtained by the pooling operation to obtain the pooled feature matrix;

[0021] Step 2.3: Use the outputs of step 2.1 and step 2.2 as the input of the feature fusion network. The feature fusion network fuses the deep features with rich semantic information and the shallow features with more details to obtain three fused feature matrices.

[0022] Step 2.4: Perform 3×3 depth-wise separable convolution and 1×1 convolution operations on the three feature matrices output from step 2.3 to obtain prediction information.

[0023] Furthermore, the specific implementation method of step 3 is: pre-training the constructed aerial image target detection network model on a public target detection dataset to obtain initialization parameters of the enhanced bottleneck residual network.

[0024] Furthermore, the specific implementation method of step 4 is: use the training set to train the aerial image target detection network model, and during the network training process, use a composite loss function of confidence loss, regression loss and classification loss to guide model training.

[0025] Furthermore, in step 4, the confidence loss is calculated using the cross entropy loss function of the fusion focus loss, which assigns a positive sample weight factor α to adjust the loss of the positive sample, and adds a modulation factor γ to reduce the loss of simple samples; CIoU is used to calculate the regression loss; and the cross entropy loss is used to calculate the classification loss.

[0026] The advantages and positive effects of the present invention are:

[0027] The present invention is reasonably designed, and its lightweight backbone network is based on an enhanced bottleneck residual module. The enhanced bottleneck residual module uses deep separable convolution to reduce the number of network parameters and the amount of calculation, and adopts a maximum pooling branch structure to strengthen the front and back layer feature fusion and gradient back propagation; in the feature fusion network and the prediction network, the standard convolution is replaced by deep separable convolution, which further reduces the number of parameters and the amount of calculation of the model; two weight factors are introduced into the cross entropy loss function to alleviate the problem of decreased detection accuracy caused by the imbalance of positive and negative samples in the target detection network, and at the same time, the CIoU loss is used to calculate the regression loss, which improves the detection accuracy and efficiency of the model without increasing the reasoning time. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a flow chart of the target detection method of the present invention;

[0029] Figure 2 is a network structure diagram used in the present invention;

[0030] Figure 3 It is a schematic diagram of the enhanced bottleneck residual module.

[0031] In the figure, 101 is an enhanced bottleneck residual network; 102 is a pooling network; 103 is a feature fusion network; and 104 is a prediction network. DETAILED DESCRIPTION

[0032] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.

[0033] The design concept of the present invention is: in order to meet the deployment requirements on the onboard computing equipment of the UAV with limited resources, the present invention adopts the convolution technology with high computational efficiency to build a lightweight network. The depthwise separable convolution decomposes the convolution operation into two steps: depthwise convolution and 1×1 pointwise convolution. The depthwise convolution performs convolution operation on each input channel to encode the feature information. The 1×1 pointwise convolution changes the number of channels of the feature matrix and fuses the feature information between different channels through channel compression or channel expansion. The depthwise separable convolution greatly reduces the number of parameters and computation of the convolution layer by virtue of its layer-by-layer convolution operation mode, and is very suitable for designing lightweight networks.

[0034] Based on the above design concept, the present invention proposes a target detection method for drone aerial image analysis, such as Figure 1 As shown, the following steps are included:

[0035] Step 1: Prepare a dataset of drone aerial images. Randomly divide a number of aerial images in proportion to obtain training set samples and validation set samples.

[0036] In this embodiment, 3000 aerial images are collected by drone, and the resolution of the collected aerial images is adjusted to 2000×1500, and the format is png format. Use labeling software (such as LabelImg) to manually annotate the collected aerial images, mark the category of objects in the aerial images and the position of the detection frame, and randomly divide the annotated aerial images into training sets and test sets in a ratio of 8:2 for the next step of network processing. It should be noted that the preparation of aerial image data sets includes but is not limited to manual methods, and annotated aerial images can also be obtained by downloading public aerial image data sets (such as VisDrone2018, NWPU VHR-10).

[0037] Step 2: Build an aerial image target detection network model. Figure 2 As shown in the figure, the aerial image target detection network model consists of four parts: enhanced bottleneck residual network, pooling network, feature fusion network and prediction network. The enhanced bottleneck residual network extracts features from the input image to obtain an output feature matrix; the pooling network pools and concatenates local area features of different scales in the same convolutional layer, thereby more comprehensively extracting multi-scale features of the target; the feature fusion network fuses features of different scales; the prediction network performs final classification and regression on the feature matrix output by the feature fusion network. The specific processing method of this step is as follows:

[0038] Step 2.1: The enhanced bottleneck residual network extracts features from the input image to obtain an output feature matrix. The enhanced bottleneck residual network is composed of m enhanced bottleneck residual modules of different sizes stacked together. The structure of the enhanced bottleneck residual module is as follows: Figure 3As shown in the figure, the enhanced bottleneck residual module first encodes the feature information through 3×3 depth convolution and ReLU6 activation function; then uses 1×1 point-by-point convolution and linear activation function for channel compression; next, uses 1×1 point-by-point convolution and ReLU6 activation function for channel expansion, and finally uses 3×3 depth convolution and linear activation function for feature extraction; when the step size of the second depth convolution is 1, the enhanced bottleneck residual module adds the input and the output of the second depth convolution to obtain the output feature matrix; when the step size of the second depth convolution is 2, the enhanced bottleneck residual module sets a 2×2 maximum pooling branch between the input and output to strengthen the fusion of the previous and next layer features and promote gradient back propagation. The 2×2 maximum pooling branch consists of 2×2 maximum pooling and 1×1 point-by-point convolution. The pooling layer is used to extract feature information, and the convolution layer is used to encode channel information. Then the output of the pooling branch and the output of the depth convolution are added to obtain the output feature matrix.

[0039] In this step, the training set is input into the enhanced bottleneck residual network proposed in the present invention. The enhanced bottleneck residual network of this embodiment is constructed by 1 standard convolution layer and 20 enhanced bottleneck residual modules (EBR-Block), and its detailed structure is shown in Table 1: The enhanced bottleneck residual network is divided into nine layers in total, of which the first layer is a 3×3 standard convolution, the number of convolution kernel channels is 32, and the convolution kernel moving step is 2 (the unit is pixel, the same below). The remaining layers are all enhanced bottleneck residual modules proposed in the present invention, and each layer is composed of n stacked enhanced bottleneck residual modules, where the step size of the first module is s, and the step size of other modules is 1; in the enhanced bottleneck residual network, the expansion factor t of the enhanced bottleneck residual module of the second layer is 2, and the expansion factors of the remaining modules are set to 6.

[0040] Table 1 Detailed structure of EBRNet

[0041]

[0042] Step 2.2: Pooling network performs the maximum pooling operation on the feature matrix obtained in step 2.1 with four different window sizes, and then performs feature concatenation on the feature matrix obtained by the pooling operation to obtain the pooled feature matrix.

[0043] In this step, 1×1 convolution is used to compress the number of channels of the feature matrix output in step 2.1 to 640, and then the maximum pooling calculation with window sizes of 1×1, 5×5, 9×9, and 13×13 is performed through the pooling network to obtain four feature matrices of the same size. The calculation process keeps the size of the output feature matrix unchanged by padding the boundaries. The step size of the pooling operation is 1, and then the obtained feature matrices are concatenated to make full use of global features and multi-scale local area features to avoid information loss caused by large differences in target sizes.

[0044] Step 2.3: Use the outputs of step 2.1 and step 2.2 as the input of the feature fusion network. The feature fusion network fuses the deep features with rich semantic information and the shallow features with more details to obtain three fused feature matrices.

[0045] In this step, the feature matrix obtained in step 2.2 is input into the feature fusion network. The feature fusion network replaces the standard convolution in the path aggregation network with a depthwise separable convolution to reduce the number of network parameters and computational complexity. The convolution kernel size of the depthwise separable convolution is 3×3. Batch normalization is performed after the depthwise separable convolution to ensure the stability of the model training. At the same time, the Leaky ReLU activation function is used to enhance the nonlinear expression ability of the network.

[0046] Step 2.4: Perform 3×3 depth-wise separable convolution and 1×1 convolution operations on the three feature matrices output from step 2.3 to obtain prediction information.

[0047] After feature fusion, this step performs prediction on three feature matrices. The prediction network includes two operation units. The first operation unit performs 3×3 depth-separable convolution, batch normalization, and Leaky ReLU activation function operations, and the second operation unit performs 1×1 convolution and Sigmoid activation function operations.

[0048] Step 3: Pre-train the aerial image target detection network model: Pre-train the constructed aerial image target detection network model on the target detection public dataset to obtain the initialization parameters of the enhanced bottleneck residual network.

[0049] In this step, the constructed network model is pre-trained. The training set is a public dataset for target detection (such as the ImageNet dataset). The training is initialized for a cycle (such as 300 cycles). In the first 5 cycles, the learning rate is increased from 1×10 -5 Increase linearly to 1×10 -4 , and then the learning rate is scheduled by the cosine learning rate.

[0050] Step 4: Train the initialized aerial image target detection model: Train the network model on the divided training set. During the network training process, a composite loss function of joint confidence loss, regression loss, and classification loss is used to guide model training. The calculation method is:

[0051] Loss C =Loss conf +Loss CIoU +Loss cls

[0052] The confidence loss is calculated using the cross entropy loss function of the fusion focus loss. The positive sample weight factor α is assigned to adjust the loss of the positive sample, and a modulation factor γ is added to reduce the loss of simple samples so that the model can focus on training difficult samples. The regression loss is calculated using the CIoU loss, and the classification loss is calculated using the cross entropy loss.

[0053] In this step, the pre-trained model is trained on the aerial image training set. A certain number of images are randomly selected from the training set for training each time. The batch size is set to 16. The stochastic gradient descent method is used to optimize the training process. The momentum of the stochastic gradient descent method is 0.9, the weight decay is 0.0005, and the weight parameter α in the loss function during training is set to 0.25 and γ is set to 2. During the training process, each cycle is verified on the validation set, and the average detection accuracy is calculated and recorded.

[0054] Step 5: Convergence judgment of the aerial image target detection network model: If the loss function does not converge, adjust the learning rate to optimize the network parameters and go to step 4. c If convergence is achieved, stop training, obtain the optimal network model, and proceed to step 6.

[0055] In this step, the model convergence is judged. If the value of the loss function is greater than 1×10 -2 , then change the learning rate and network parameters and return to step 4. If the value of the loss function is less than or equal to 1×10 -2 , stop training, select the model with the highest average detection accuracy as the optimal network model, and go to step 6.

[0056] Step 6: Use the optimal network model to detect aerial image targets: Use a drone to obtain aerial images, and then import the aerial images into the optimal network model for calculation to obtain the category and location information of the targets in the aerial images.

[0057] In this step, the resolution of the aerial image acquired by the drone is adjusted to 2000×1500, and the format is adjusted to png format. The adjusted aerial image is input into the optimal network model for convolution calculation, and the category of the object in the aerial image, the center point coordinates of the bounding box, and the length and width are output.

[0058] It should be emphasized that the embodiments described in the present invention are illustrative rather than restrictive. Therefore, the present invention includes but is not limited to the embodiments described in the specific implementation manner. Any other implementation manners derived by those skilled in the art based on the technical solution of the present invention also fall within the scope of protection of the present invention.

Claims

1. A target detection method for unmanned aerial vehicle image analysis, characterized in that: The following steps are involved: Step 1: Prepare aerial image dataset: randomly divide a number of aerial images in proportion to obtain training set samples and validation set samples; Step 2: Construct an aerial image target detection network model: The aerial image target detection network model consists of four parts: an enhanced bottleneck residual network, a pooling network, a feature fusion network, and a prediction network. Step 3: Pre-train the aerial image target detection network model to obtain the initialization parameters of the enhanced bottleneck residual network; Step 4: Perform model training on the initialized aerial image target detection model; Step 5: Convergence judgment of the aerial image target detection network model: if the loss function does not converge, adjust the learning rate to optimize the network parameters and go to step 4; if the loss function converges, stop training, obtain the optimal network model and go to step 6; Step 6: Use the optimal network model to detect aerial image targets: Use a drone to obtain aerial images, import the aerial images into the optimal network model for calculation, and obtain the category and location information of the targets in the aerial images; The specific implementation method of step 2 includes the following steps: Step 2.1, the enhanced bottleneck residual network extracts features from the input image to obtain the output feature matrix: the enhanced bottleneck residual network is composed of m enhanced bottleneck residual modules of different sizes stacked together. The enhanced bottleneck residual module first encodes the feature information through 3×3 deep convolution and ReLU6 activation function; then uses 1×1 point-by-point convolution and linear activation function for channel compression; next, uses 1×1 point-by-point convolution and ReLU6 activation function for channel expansion, and finally uses 3×3 deep convolution and linear activation function for feature extraction; when the step size of the second deep convolution is 1 When the step size of the second deep convolution is 2, the enhanced bottleneck residual module sets a 2×2 maximum pooling branch between the input and output to strengthen the fusion of the previous and next layer features and promote gradient back propagation. The 2×2 maximum pooling branch consists of 2×2 maximum pooling and 1×1 point-by-point convolution. The pooling layer is used to extract feature information, and the convolution layer is used to encode channel information. Then, the output of the pooling branch and the output of the deep convolution are added to obtain the output feature matrix. Step 2.2: Pooling network performs maximum pooling operation on the feature matrix obtained in step 2.1 with four different window sizes, and then performs feature concatenation on the feature matrix obtained by the pooling operation to obtain the pooled feature matrix; Step 2.3: Use the outputs of step 2.1 and step 2.2 as the input of the feature fusion network. The feature fusion network fuses the deep features with rich semantic information and the shallow features with more details to obtain three fused feature matrices. Step 2.4: Perform 3×3 depth-separable convolution and 1×1 convolution operations on the three feature matrices output from step 2.3 to obtain prediction information; The specific implementation method of step 4 is: use the training set to train the aerial image target detection network model, and during the network training process, use a composite loss function of confidence loss, regression loss and classification loss to guide model training; wherein, the confidence loss is calculated using a cross entropy loss function fused with focus loss, which assigns a positive sample weight factor α to adjust the loss of the positive sample, and adds a modulation factor γ to reduce the loss of simple samples; use CIoU to calculate the regression loss; and use the cross entropy loss to calculate the classification loss.

2. The target detection method for unmanned aerial vehicle aerial image analysis according to claim 1, characterized in that: The specific implementation method of step 1 is: use annotation software to annotate the aerial images collected by the drone, annotate the categories of objects in the aerial images and the positions of the detection frames, and randomly divide the annotated aerial images into a training set and a test set in a ratio of 8:

2.

3. The target detection method for unmanned aerial vehicle aerial image analysis according to claim 1, characterized in that: The enhanced bottleneck residual network extracts features from the input image to obtain an output feature matrix; the pooling network performs pooling and feature splicing on local area features of different scales in the same convolutional layer; the feature fusion network fuses features of different scales; and the prediction network performs final classification and regression on the feature matrix output by the feature fusion network.

4. The target detection method for unmanned aerial vehicle aerial image analysis according to any one of claims 1 to 3, characterized in that: The specific implementation method of step 3 is: pre-training the constructed aerial image target detection network model on the target detection public dataset to obtain the initialization parameters of the enhanced bottleneck residual network.