A small target detection method and system for unmanned aerial vehicle images

By introducing spatial depth conversion convolution and fast spatial pyramid pooling modules into the backbone network of the YOLOv8 algorithm, the multi-scale features of UAV aerial images are processed, and the problem of poor detection and recognition of small targets in UAV aerial images is solved. Achieving higher detection accuracy and efficiency.

CN118470576BActive Publication Date: 2024-10-22齐鲁空天信息研究院 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410909717.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-22
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

The detection and recognition accuracy and precision of small targets in existing UAV aerial images are poor, especially in applications based on the YOLO series of algorithms.

Method used

Spatial depth conversion convolution is introduced in the backbone network of the YOLOv8 algorithm to replace the strided convolution layer, and a fast spatial pyramid pooling module is used to process multi-scale image features, and the UAV small target image feature maps of different depth dimensions are combined for splicing. Reduce network parameters and enhance feature extraction and classification capabilities.

Benefits of technology

It significantly improves the detection accuracy and recognition effect of small targets in drone images, and improves the accuracy and efficiency of target detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470576B_ABST
    Figure CN118470576B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of digital image processing technology, and specifically relates to a method and system for detecting small targets in drone images, including: obtaining drone aerial images; performing target detection according to the drone aerial images and a preset target detection model, obtaining target detection results, and completing small target detection and recognition of drone images; wherein the target detection model adopts an improved YOLOv8 algorithm, introduces spatial depth conversion convolution to extract multi-scale image features, and adopts a fast spatial pyramid pooling module to process multi-scale image features to obtain small target image features; based on a backbone network, the drone small target image features are processed to obtain drone small target image feature maps of different depth dimensions, and the obtained drone small target image feature maps are spliced ​​along the depth dimension to obtain target detection results. The present invention realizes accurate recognition of small targets in drone images and improves the effect of small target detection in drone images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the development of drone technology, drones are now widely used in all walks of life in daily life. By expanding the purpose of drones themselves, the application field of drones is expanded. During the flight, drones can use their built-in image acquisition equipment to capture images from the drone's perspective in a bird's-eye or oblique manner; drones analyze and process the collected images to complete drone target detection and recognition.

[0004] According to the inventors' understanding, deep learning can be used for target detection and recognition at present, and the target detection and recognition methods used are mainly divided into two categories: one is a two-stage target detection method, such as R-CNN, Fast R-CNN, and Faster R-CNN; the other is a single-stage target detection method, such as SSD and YOLO series; because the single-stage target detection method only needs to extract features once to achieve target detection, its speed is faster than the two-stage method, so the single-stage target detection method is widely used in target detection and recognition.

[0005] The YOLO series of algorithms are widely used in single-stage target detection of target detection and recognition due to their accuracy, lightweight design, and easy expansion. In the process of target detection and recognition, the multi-feature fusion technology is used to resolve the contradiction between image semantic feature extraction and target scale, thereby enhancing image feature extraction and classification capabilities. However, the accuracy and precision of detection and recognition of small targets in drone aerial images based on the YOLO series of algorithms are not good. Summary of the invention

[0006] In order to solve the above problems, the present invention proposes a small target detection method and system for drone images. By improving the target detection model, accurate recognition of small targets in drone images can be achieved, and the effect of small target detection in drone images can be effectively improved.

[0007] According to some embodiments, a first solution of the present invention provides a small target detection method for drone images, which adopts the following technical solution:

[0008] A small target detection method for drone images, comprising:

[0009] Acquire drone aerial images;

[0010] Target detection is performed based on the acquired drone aerial images and the preset target detection model to obtain target detection results and complete small target detection and recognition in drone images;

[0011] Among them, the target detection model adopts the improved YOLOv8 algorithm, introduces spatial depth conversion convolution to replace the strided convolution layer in the YOLOv8 backbone network to extract multi-scale image features of the acquired image, and uses the fast spatial pyramid pooling module in the backbone network to process the acquired multi-scale image features to obtain small target image features; based on the backbone network, the obtained drone small target image features are processed to obtain drone small target image feature maps of different depth dimensions, and the obtained drone small target image feature maps of different depth dimensions are spliced ​​along the depth dimension to obtain the target detection result.

[0012] As a further technical limitation, in the process of processing the obtained UAV small target image features based on the backbone network, the UAV small target image feature map of the corresponding layer of the backbone network, the UAV small target image feature map of the bottom layer of the backbone network and the UAV small target image feature map of the high layer of the backbone network are spliced ​​along the depth dimension, and the network features are combined with the bottom layer features to obtain the target detection result.

[0013] As a further technical limitation, the Head part in the backbone network of the target detection model is provided with a detection head for small target detection, and the large target detection head and redundant network feature layer are cut off to reduce the number of network parameters.

[0014] As a further technical limitation, a two-dimensional PR curve is drawn with the accuracy representing the correct detection ratio of the target detection model as the vertical coordinate and the recall representing the ratio of targets successfully detected by the target detection model to the total targets as the horizontal coordinate; the average accuracy is obtained by calculating the area between the drawn two-dimensional PR curve and the horizontal axis; the obtained average accuracy is used as a measurement indicator to evaluate the detection effect of the target detection model.

[0015] Furthermore, when the obtained average precision value is larger, the target detection effect of the adopted target detection model is better.

[0016] As a further technical limitation, in the process of extracting multi-scale image features of the acquired image, the acquired UAV aerial photography image is preprocessed to obtain a UAV aerial photography feature map; the obtained UAV aerial photography feature map is divided into a number of UAV aerial photography feature sub-maps, and the divided UAV aerial photography feature sub-maps are spliced ​​along the channel direction to obtain a new UAV aerial photography feature map; the new UAV aerial photography feature map extracted by spatial depth conversion convolution based on different layers is feature fused to obtain multi-scale image features.

[0017] According to some embodiments, a second solution of the present invention provides a small target detection system for drone images, which adopts the following technical solution:

[0018] A small target detection system for drone images, comprising:

[0019] An acquisition module, configured to acquire drone aerial images;

[0020] A detection module is configured to perform target detection based on the acquired drone aerial image and a preset target detection model, obtain a target detection result, and complete small target detection and recognition of the drone image;

[0021] Among them, the target detection model adopts the improved YOLOv8 algorithm, introduces spatial depth conversion convolution to replace the strided convolution layer in the YOLOv8 backbone network to extract multi-scale image features of the acquired image, and uses the fast spatial pyramid pooling module in the backbone network to process the acquired multi-scale image features to obtain small target image features; based on the backbone network, the obtained drone small target image features are processed to obtain drone small target image feature maps of different depth dimensions, and the obtained drone small target image feature maps of different depth dimensions are spliced ​​along the depth dimension to obtain the target detection result.

[0022] According to some embodiments, a third solution of the present invention provides a computer-readable storage medium, which adopts the following technical solution:

[0023] A computer-readable storage medium stores a program, which, when executed by a processor, implements the steps of the small target detection method for drone images as described in the first solution of the present invention.

[0024] According to some embodiments, a fourth solution of the present invention provides an electronic device, which adopts the following technical solution:

[0025] An electronic device comprises a memory, a processor and a program stored in the memory and running on the processor, wherein when the processor executes the program, the steps in the small target detection method for drone images as described in the first solution of the present invention are implemented.

[0026] According to some embodiments, a fifth solution of the present invention provides a computer program product, which adopts the following technical solution:

[0027] A computer program product includes software code, wherein the program in the software code executes the steps in the small target detection method for drone images as described in the first embodiment of the present invention.

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

[0029] The present invention adopts an improved YOLOv8 algorithm, introduces a spatial depth conversion convolution to replace the strided convolution layer in the backbone network of YOLOv8, adopts a fast spatial pyramid pooling module in the backbone network to process the acquired multi-scale image features, and obtains small target image features; based on the backbone network, the obtained unmanned aerial vehicle small target image features are processed to obtain unmanned aerial vehicle small target image feature maps of different depth dimensions, and the obtained unmanned aerial vehicle small target image feature maps of different depth dimensions are spliced ​​along the depth dimension to obtain target detection results; the accurate detection and recognition of various small targets in unmanned aerial vehicle aerial images is realized, and the effect of small target detection in unmanned aerial vehicle images is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings in the specification that constitute a part of this embodiment are used to provide a further understanding of this embodiment. The schematic embodiments of this embodiment and their descriptions are used to explain this embodiment and do not constitute improper limitations on this embodiment.

[0031] Figure 1 This is a flow chart of a small target detection method for drone images in Embodiment 1 of the present invention;

[0032] Figure 2 It is a schematic diagram of the structure of the improved YOLOv8 in the first embodiment of the present invention;

[0033] Figure 3 Schematic diagram of the structure of the Conv module in the first embodiment of the present invention;

[0034] Figure 4 Schematic diagram of the structure of the C2f module in the first embodiment of the present invention;

[0035] Figure 5 This is a schematic diagram of the structure of the SPPF module in the first embodiment of the present invention;

[0036] Figure 6 Schematic diagram of the structure of the DCU module in the first embodiment of the present invention;

[0037] Figure 7 Schematic diagram of the fluctuation of precision and recall rate in the first embodiment of the present invention. DETAILED DESCRIPTION

[0038] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0039] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0040] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0041] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0042] Embodiment 1

[0043] Embodiment 1 of the present invention introduces a small target detection method for drone images.

[0044] In order to solve the problem of poor accuracy and precision in detecting and identifying small targets in drone aerial images in the prior art, this embodiment studies a small target detection method, such as Figure 1 As shown, through the improved YOLOv8 algorithm, the spatial depth conversion convolution is introduced into the backbone network of YOLOv8 to replace the strided convolution layer, and the fast spatial pyramid pooling module in the backbone network is used to process the acquired multi-scale image features to obtain small target image features; the multi-scale image features and small target image features extracted from the drone aerial images are fused to obtain the target detection results; the accurate detection and recognition of various small targets in the drone aerial images is realized, and the effect of small target detection in drone images is effectively improved.

[0045] As one or more implementation modes, this embodiment collects clear drone aerial images of different target categories when acquiring drone aerial images.

[0046] In order to accurately mark the targets in the acquired drone aerial images, this embodiment uses a rectangular frame to frame the position of each target, and accurately marks the targets in the drone aerial images by recording various parameters of each rectangular frame.

[0047] In this embodiment, a deep learning framework based on PyTorch is used to perform multiple preprocessing operations on the drone aerial image data to obtain the drone aerial feature map. The preprocessing operations performed include but are not limited to translating the image to simulate views from different angles, rotating the image to capture the features of the target in different directions, and creating a mirror copy of the image to increase the diversity of the data.

[0048] In order to simulate the shooting effects of the drone at different heights and angles, this embodiment adopts projection transformation and scaling operations during the preprocessing of the drone aerial image data.

[0049] In order to enhance the robustness of the pre-processed drone aerial image data set, this embodiment adds image noise during the pre-processing of the drone aerial image data to make the image closer to various situations that may occur in the actual shooting environment.

[0050] As one or more implementation modes, target detection is performed based on the acquired drone aerial image and a preset target detection model to obtain a target detection result, thereby completing small target detection and recognition of the drone image.

[0051] In this embodiment, the target detection model adopted adopts the improved YOLOv8 algorithm, and the spatial depth conversion convolution SPD-Conv is introduced into the backbone network of YOLOv8 to replace the strided convolution layer to extract the multi-scale image features of the acquired image, and the fast spatial pyramid pooling module in the backbone network is used to process the multi-scale image features to obtain small target image features; based on the backbone network, the obtained drone small target image features are processed to obtain drone small target image feature maps of different depth dimensions, and the obtained drone small target image feature maps of different depth dimensions are spliced ​​along the depth dimension to obtain the target detection result.

[0052] This embodiment inputs the drone aerial photography feature map obtained after preprocessing into the backbone part of the target detection model to obtain multi-scale image features; specifically, the multi-layer traditional convolution modules in the Yolov8 backbone network are replaced with SPD-Conv to extract the features of the feature map; the feature scales extracted by each layer of SPD-Conv are different, because the size of each layer of feature map is different, and the higher the number of layers, the smaller the feature map size. Therefore, this embodiment extracts image features of multiple scales based on multi-layer SPD-Conv. Drone aerial images usually contain many small and important detailed image features. Through the application of SPD-Conv, not only the loss of fine-grained information is reduced, but also the feature extraction capability of the target detection model for small targets can be significantly enhanced.

[0053] The process of SPD-Conv extracting multi-scale features of drones in this embodiment is as follows: the input drone aerial photography feature map is divided into The drone aerial photography feature sub-graphs are spliced ​​along the channel direction to form a new drone aerial photography feature graph. , process the obtained UAV aerial feature map , and obtain multi-scale image features; thereby ensuring that the small target information in the UAV aerial images is retained, and realizing the effective extraction of small target information in the UAV aerial images.

[0054] In this embodiment, the Figure 2The schematic diagram of the structure of the improved YOLOv8 is shown; specifically, when the drone aerial photography feature map is input into the network, it will first pass through a series of carefully designed layers; these layers are organized into four main modules, namely Stem Layer1 to Stem Layer4. In Stem Layer1, the drone aerial photography feature map is processed by the special convolution module of SPD-Conv; then it enters Stem Layer2 and Stem Layer3, each of which contains an SPD-Conv module and a C2f module; the network's ability to extract and integrate image features is enhanced; finally, it reaches the last module of the backbone network, Stem Layer4, which, in addition to the SPD-Conv and C2f modules in the previous layers, also introduces a new spatial pyramid pooling module SPPF module. In this embodiment, the multi-scale image features of drone aerial images are effectively extracted and integrated through the processing of the improved YOLOv8 backbone network.

[0055] In the process of multi-scale image feature extraction, this embodiment uses SPD-Conv to replace the traditional Conv operation to more effectively extract multi-scale features; it helps to reduce the fine-grained information that may be lost when processing images, thereby significantly enhancing the model's ability to capture features of small targets. Through SPD-Conv, the tiny details in the image are more accurately captured and retained, providing richer and more accurate feature information for subsequent target detection and recognition tasks.

[0056] The details of the Conv convolution module in this embodiment are shown in FIG. Figure 3As shown in the figure, it is the basic building block in the deep learning network, which is responsible for extracting useful features from the input data. The Conv convolution module includes the two-dimensional convolution operation Conv2d, batch normalization Batch Normalization and activation function Silu in sequence; among them, the two-dimensional convolution operation is the core part of the Conv convolution module, which uses a convolution kernel of size 3x3 to slide on the input data and perform convolution calculations to capture the local features of the image. The result after convolution is a set of new feature maps, each of which contains different feature information of the input data. Subsequently, a batch normalization operation is performed to standardize the feature maps after convolution; by calculating the mean and variance of a batch of feature maps and standardizing them to a distribution with a mean of 0 and a variance of 1, the network is made more stable during training, the convergence speed is accelerated, and the problem of gradient disappearance or gradient explosion is effectively alleviated. Finally, the activation function Silu is applied to the normalized feature map to introduce nonlinear factors into the network and enhance its expressiveness. The Silu function can effectively map the negative values ​​in the feature map to the area close to zero while maintaining the activation state of the positive values, which helps the network to better learn and adapt to complex input data.

[0057] The details of the C2f module in this embodiment are shown in FIG. Figure 4 As shown in the figure, compared with the traditional C3 module, more skip connections and additional Split operations are incorporated. The C2f module mainly draws on the core idea of ​​the residual structure, and the Bottleneck module is a typical residual module. In the Bottleneck module, the dimension of the feature map is first reduced by a 3x3 convolution operation to remove redundant information, and then the 3x3 convolution operation is used to restore its original dimension, thereby reducing the amount of calculation while retaining key features. In addition, the number of stacks of the C2f module can be flexibly adjusted by the parameter n, that is, models of different scales and complexities can adapt to their specific needs by changing the value of n, so that the C2f module can better adapt to various application scenarios and hardware configurations.

[0058] The details of the SPPF module in this embodiment are shown in FIG. Figure 5 As shown in the figure, it has the ability to convert feature maps of different sizes into feature vectors of fixed size. First, the feature map of the input layer is divided according to the number of features expected by the output layer to form three different blocks; within each block, a maximum pooling operation is performed, that is, the maximum value in each block is selected as the representative feature of the block; the features extracted from different blocks are concatenated along the feature channel dimension to form a feature vector of fixed size. In this way, the SPPF module can effectively extract and integrate key information from feature maps of different scales, providing richer and more comprehensive feature inputs for subsequent network layers.

[0059] like Figure 2 As shown, in this embodiment, the image features of different scales extracted by the backbone network are input into the neck Neck in the improved YOLOv8 network, and the features processed by the Neck part are output to the head Head.

[0060] The Neck part in this embodiment is divided into PAN and FPN structures; after the multi-scale image features are processed by FPN, they are input into the PAN structure for feature extraction to obtain small target image features.

[0061] This embodiment introduces the following into the FPN structure: Figure 6 The new DCU fusion module shown in the figure includes three parts: DNN-UAV, Concatenate and Upsample. The DCU fusion module in this embodiment is a new three-size feature map fusion unit, whose main purpose is to provide more optimized target space and semantic information for the detection head; it fuses the feature maps of different levels from the backbone network, including the features of the lower segment, corresponding segment and upper segment, to balance the spatial detail information in the low-level features and the semantic abstract information in the high-level features, which helps to improve the performance of the network head in target location recognition and classification tasks.

[0062] In this embodiment, the multi-scale feature map of the drone aerial image extracted by the Neck part is input into the detection head of the corresponding size in the network Head part, and finally the target detection result is obtained. The detection head component in the Neck part of this embodiment adds a high-resolution detection head, which improves the device's detection ability for small targets, and at the same time cuts off the large target detection head and redundant network feature layer, effectively reducing the number of network parameters and improving the small target detection speed of the drone.

[0063] The working steps of the DCU fusion module in this embodiment are as follows: inputting the obtained bottom-level feature map from the backbone network into the new DNN-UAV part in the DCU for feature extraction; introducing a new DNN-UAV module to significantly enhance the ability to detect small targets, especially for the challenges of small targets in drone detection tasks and the need for efficient reasoning on embedded devices with limited computing resources. Compared with traditional methods, this module greatly improves the effect and efficiency of drone target detection; the Upsample part is responsible for receiving feature maps from high-level layers and performing upsampling operations on them; performing image fusion operations on the corresponding layer drone small target image feature map in the future backbone network and the feature map processed by DNN-UAV and Upsample.

[0064] It should be noted that the new DCU fusion mechanism adopted in this embodiment not only combines the lower, corresponding and upsampled high-level feature maps as the input feature map of the subsequent C2f module, which contains rich target classification and spatial positioning detail information, but also enhances the original YOLOv8, especially the feature extraction capability of small targets in drone images, making the algorithm more suitable for deployment in the embedded system of drones.

[0065] In the process of image fusion, the image feature map of the small target of the drone in the corresponding layer of the backbone network, the image feature map of the small target of the drone in the underlying backbone network processed by the DNN-UAV module, and the image feature map of the small target of the drone in the underlying backbone network processed by the DNN-UAV module are combined. U The high-level UAV small target image feature maps processed by the psample module of the backbone network are spliced ​​along the depth dimension, combining the network features with the underlying features, providing rich spatial information of detection heads at different layers, making the model more conducive to solving the problems of large scene size and small detection objects of UAV images.

[0066] In this embodiment, the input feature map ,set up size; then according to Factors affecting the characteristics of drone aerial photography Downsample and divide into The obtained drone aerial photography feature subgraphs are merged along the channel dimension to form a new drone aerial photography feature graph. Increasing the depth of the feature map without losing information helps enhance the model's ability to detect small targets in images; finally, the new drone aerial photography feature map Perform the following operations, namely ; ;in, represents point-wise convolution, represents the depthwise convolution, Represents the final feature map. Through the above operations, the parameter cost and calculation cost are greatly reduced.

[0067] Therefore, the DCU fusion mechanism adopted in this embodiment not only combines the lower, corresponding and upsampled high-level feature maps as the input feature map of the subsequent C2f module, which contains rich target classification and spatial positioning details, but also further enhances the original YOLOv8's ability to extract features of small targets in drone images. Specifically, the calculation process of the DCU module is: ;in, DU represents the DNN-UAV module, L represents the underlying features from the backbone network, C represents the corresponding layer features from the backbone network,H Represents high-level features from the backbone network.

[0068] In this embodiment, a two-dimensional PR curve is drawn with the accuracy representing the correct detection ratio of the target detection model as the ordinate and the recall representing the ratio of the targets successfully detected by the target detection model to the total targets as the abscissa; the mean average precision (MAP) is obtained by calculating the area between the drawn two-dimensional PR curve and the abscissa axis; the obtained average precision is used as a measurement indicator to evaluate the detection effect of the target detection model; when the value of the obtained average precision is larger, the target detection effect of the adopted target detection model is better.

[0069] like Figure 7 The diagram shows the fluctuation of precision and recall. When the fluctuation is small, it means that the training effect is relatively good. Under ideal training conditions, the curve should show a steadily rising trend.

[0070] Based on the small target detection method for drone images introduced in this embodiment, the curves of precision and recall rate both show a stable upward trend, and the fluctuation is not obvious, which indicates that the small target detection model adopted in this embodiment shows good effect in the target detection task of drone aerial images.

[0071] This embodiment adopts an improved YOLOv8 algorithm, introduces a spatial depth conversion convolution to replace the strided convolution layer in the YOLOv8 backbone network, and uses the fast spatial pyramid pooling module in the backbone network to process the acquired multi-scale image features to obtain small target image features; based on the backbone network, the obtained drone small target image features are processed to obtain drone small target image feature maps of different depth dimensions, and the obtained drone small target image feature maps of different depth dimensions are spliced ​​along the depth dimension to obtain target detection results; accurate detection and recognition of various small targets in drone aerial images are achieved, and the effect of small target detection in drone images is effectively improved.

[0072] Embodiment 2

[0073] Embodiment 2 of the present invention introduces a small target detection system for drone images.

[0074] A small target detection system for drone images, comprising:

[0075] An acquisition module, configured to acquire drone aerial images;

[0076] A detection module is configured to perform target detection based on the acquired drone aerial image and a preset target detection model, obtain a target detection result, and complete small target detection and recognition of the drone image;

[0077] Among them, the target detection model adopts the improved YOLOv8 algorithm, introduces spatial depth conversion convolution to replace the strided convolution layer in the YOLOv8 backbone network to extract multi-scale image features of the acquired image, and uses the fast spatial pyramid pooling module in the backbone network to process the acquired multi-scale image features to obtain small target image features; based on the backbone network, the obtained drone small target image features are processed to obtain drone small target image feature maps of different depth dimensions, and the obtained drone small target image feature maps of different depth dimensions are spliced ​​along the depth dimension to obtain the target detection result.

[0078] The detailed steps are the same as those of the small target detection method for drone images provided in Example 1, and will not be repeated here.

[0079] Embodiment 3

[0080] Embodiment 3 of the present invention provides a computer-readable storage medium.

[0081] A computer-readable storage medium stores a program, which, when executed by a processor, implements the steps of the small target detection method for drone images as described in Embodiment 1 of the present invention.

[0082] The detailed steps are the same as those of the small target detection method for drone images provided in Example 1, and will not be repeated here.

[0083] Embodiment 4

[0084] A fourth embodiment of the present invention provides an electronic device.

[0085] An electronic device comprises a memory, a processor and a program stored in the memory and running on the processor, wherein when the processor executes the program, the steps in the small target detection method for drone images as described in Embodiment 1 of the present invention are implemented.

[0086] The detailed steps are the same as those of the small target detection method for drone images provided in Example 1, and will not be repeated here.

[0087] Embodiment 5

[0088] Embodiment 5 of the present invention provides a computer program product.

[0089] A computer program product includes software code, wherein the program in the software code executes the steps in the small target detection method for drone images as described in Embodiment 1 of the present invention.

[0090] The detailed steps are the same as those of the small target detection method for drone images provided in Example 1, and will not be repeated here.

[0091] The above description is only a preferred embodiment of the present embodiment and is not intended to limit the present embodiment. For those skilled in the art, the present embodiment may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present embodiment shall be included in the protection scope of the present embodiment.

Claims

1. A small target detection method for drone images, It is characterized in that include: Acquire drone aerial images; Target detection is performed based on the acquired drone aerial images and the preset target detection model to obtain target detection results and complete small target detection and recognition in drone images; The target detection model adopts an improved YOLOv8 algorithm, introduces a spatial depth conversion convolution to replace the strided convolution layer in the YOLOv8 backbone network to extract multi-scale image features of the acquired image; uses the fast spatial pyramid pooling module in the backbone network to process the acquired multi-scale image features, specifically: first, the feature map of the input layer is divided according to the number of features expected by the output layer to form three different blocks; within each block, a maximum pooling operation is performed, that is, the maximum value in each block is selected as the representative feature of the block; the features extracted from different blocks are spliced ​​along the feature channel dimension to form a feature vector of a fixed size to obtain small target image features; the obtained drone small target image features are processed based on the backbone network, the drone small target image feature map of the corresponding layer of the backbone network, the drone small target image feature map of the bottom layer of the backbone network and the drone small target image feature map of the high-level backbone network are spliced ​​along the depth dimension, and the network features are combined with the bottom layer features to obtain the target detection result; In the process of extracting multi-scale image features of the acquired image, the acquired UAV aerial photography image is preprocessed to obtain a UAV aerial photography feature map; the obtained UAV aerial photography feature map is divided into a plurality of UAV aerial photography feature sub-maps, and the divided UAV aerial photography feature sub-maps are spliced ​​along the channel direction to obtain a new UAV aerial photography feature map; the new UAV aerial photography feature map extracted based on the spatial depth conversion convolution of different layers is feature fused to obtain multi-scale image features; The image features of different scales extracted by the backbone network are input into the neck of the improved YOLOv8 network, and the features processed by the neck part are then input into the head; the neck part includes a PAN structure and an FPN structure, and the extracted multi-scale image features are processed by the FPN structure and then input into the PAN structure for feature extraction to obtain small target image features; the FPN structure introduces a DCU fusion module including a deep convolutional network, a splicing unit and an upsampling unit, and the underlying feature map obtained from the backbone network is input into the deep convolutional network through the DCU fusion module for feature extraction to improve the detection of small targets. The upsampling unit is responsible for receiving the feature map from the high-level layer and performing an upsampling operation on it; performing an image fusion operation on the feature map of the small target image of the drone in the corresponding layer in the future backbone network and the feature map processed by the deep convolution network and the upsampling unit; in the process of image fusion, the feature map of the small target image of the drone in the corresponding layer of the backbone network, the feature map of the small target image of the drone in the bottom layer of the backbone network processed by the deep convolution network, and the feature map of the small target image of the drone in the high-level backbone network processed by the upsampling unit are spliced ​​along the depth dimension, the network features are combined with the bottom-level features, rich spatial information of the detection heads at different layers is provided, and the feature extraction of the small target is realized.

2. A method for detecting small targets in drone images as claimed in claim 1, It is characterized in that The Head part in the backbone network of the target detection model is provided with a detection head for small target detection, and the large target detection head and redundant network feature layers are cut off to reduce the number of network parameters.

3. A method for detecting small targets in drone images as claimed in claim 1, It is characterized in that A two-dimensional PR curve is drawn with the accuracy representing the correct detection ratio of the target detection model as the ordinate and the recall representing the ratio of targets successfully detected by the target detection model to total targets as the abscissa; the average accuracy is obtained by calculating the area between the drawn two-dimensional PR curve and the abscissa axis; the obtained average accuracy is used as a measurement indicator to evaluate the detection effect of the target detection model.

4. A method for detecting small targets in drone images as claimed in claim 3, It is characterized in that The larger the average precision value obtained, the better the target detection effect of the target detection model adopted.

5. A small target detection system for drone images, It is characterized in that include: An acquisition module, configured to acquire drone aerial images; A detection module is configured to perform target detection based on the acquired drone aerial image and a preset target detection model, obtain a target detection result, and complete small target detection and recognition of the drone image; The target detection model adopts an improved YOLOv8 algorithm, introduces a spatial depth conversion convolution to replace the strided convolution layer in the YOLOv8 backbone network to extract multi-scale image features of the acquired image; uses the fast spatial pyramid pooling module in the backbone network to process the acquired multi-scale image features, specifically: first, the feature map of the input layer is divided according to the number of features expected by the output layer to form three different blocks; within each block, a maximum pooling operation is performed, that is, the maximum value in each block is selected as the representative feature of the block; the features extracted from different blocks are spliced ​​along the feature channel dimension to form a feature vector of a fixed size to obtain small target image features; the obtained drone small target image features are processed based on the backbone network, the drone small target image feature map of the corresponding layer of the backbone network, the drone small target image feature map of the bottom layer of the backbone network and the drone small target image feature map of the high-level backbone network are spliced ​​along the depth dimension, and the network features are combined with the bottom layer features to obtain the target detection result; In the process of extracting multi-scale image features of the acquired image, the acquired UAV aerial photography image is preprocessed to obtain a UAV aerial photography feature map; the obtained UAV aerial photography feature map is divided into a plurality of UAV aerial photography feature sub-maps, and the divided UAV aerial photography feature sub-maps are spliced ​​along the channel direction to obtain a new UAV aerial photography feature map; the new UAV aerial photography feature map extracted based on the spatial depth conversion convolution of different layers is feature fused to obtain multi-scale image features; The image features of different scales extracted by the backbone network are input into the neck of the improved YOLOv8 network, and the features processed by the neck part are then input into the head; the neck part includes a PAN structure and an FPN structure, and the extracted multi-scale image features are processed by the FPN structure and then input into the PAN structure for feature extraction to obtain small target image features; the FPN structure introduces a DCU fusion module including a deep convolutional network, a splicing unit and an upsampling unit, and the underlying feature map obtained from the backbone network is input into the deep convolutional network through the DCU fusion module for feature extraction to improve the detection of small targets. The upsampling unit is responsible for receiving the feature map from the high-level layer and performing an upsampling operation on it; performing an image fusion operation on the feature map of the small target image of the drone in the corresponding layer in the future backbone network and the feature map processed by the deep convolution network and the upsampling unit; in the process of image fusion, the feature map of the small target image of the drone in the corresponding layer of the backbone network, the feature map of the small target image of the drone in the bottom layer of the backbone network processed by the deep convolution network, and the feature map of the small target image of the drone in the high-level backbone network processed by the upsampling unit are spliced ​​along the depth dimension, the network features are combined with the bottom-level features, rich spatial information of the detection heads at different layers is provided, and the feature extraction of the small target is realized.

6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the small target detection method for drone images as described in any one of claims 1 to 4 are implemented.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, It is characterized in that When the processor executes the program, the steps of the small target detection method for drone images according to any one of claims 1 to 4 are implemented.

8. A computer program product comprising software code, It is characterized in that The program in the software code executes the steps of the small target detection method for drone images as described in any one of claims 1-4.