Dual-mode unmanned aerial vehicle aerial photography target detection method and system and medium
Through the dual-mode object detection network, combined with the feature fusion of visible light and infrared images and attention mechanism, the problem of low accuracy of drone aerial target detection in complex environments is solved, and the detection accuracy and detection ability of small targets is improved.
Patent Information
- Application Number
- CN202411130474.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-11-15
AI Technical Summary
The existing drone aerial target detection technology has low detection accuracy in complex environments, especially in the absence of light and occlusion, and the visible image texture details are insufficient, and infrared images lack target texture information, making it difficult to meet the target detection needs.
The dual-mode object detection network is adopted, and the YOLOv7 network is improved, and the feature fusion is combined with visible light and infrared images. The SE attention mechanism and SimAM attention mechanism are added, and the small object detection layer is added. The cutout data enhancement method is used to improve the model to the small Detection accuracy in targets and complex environments.
It improves the target detection accuracy of the drone in complex environments, makes up for the insufficient texture details of visible light images in complex environments, enhances the detection ability of small targets, and improves the overall detection accuracy of the model.
Smart Images

Figure CN118968032A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of target detection, and more specifically to a dual-mode unmanned aerial vehicle aerial photography target detection method, system and medium. Background Art
[0002] Drones are small and flexible. With the reduction of drone costs and the improvement of computer hardware performance, drones are becoming more and more popular for target detection tasks. They can search for targets over the ground more flexibly and obtain the required target data information. In drone target detection tasks, sensors obtain ground information and transmit the information to the onboard computer for processing to obtain target detection results. However, aerial images have the characteristics of small targets and multiple angles, which have a great impact on detection accuracy. The computing resources of the onboard computer on drones are limited, and the emergency rescue environment is time-sensitive, requiring target detection under limited computing resources.
[0003] Most of the existing target detection networks are single-modal target detection networks that use visible light images. Visible light images contain rich texture detail information when there is sufficient light and no obstructions. The texture detail information of images obtained by visible light sensors in complex environments may be insufficient. For example, in situations such as insufficient light at night, overexposure, rain and fog obstructions, etc., visible light images are difficult to meet the needs of target detection; infrared images are almost unaffected by light, have relatively rich light intensity information, lack target texture information, and have complementary advantages with visible light images. Fusion of visible light images with infrared images can obtain fused images rich in texture detail information and light intensity information, which is suitable for target detection tasks in complex environments. How to design an efficient and highly accurate dual-modal target detection network needs to be solved urgently. Summary of the invention
[0004] In view of this, the present invention provides a dual-mode UAV aerial photography target detection method, system and medium, which can improve the detection accuracy of aerial image targets.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] In a first aspect, the present invention provides a dual-mode UAV aerial photography target detection method, characterized in that it comprises the following steps:
[0007] Based on the YOLOv7 network as the basic architecture, we improved it and built a target detection model;
[0008] Train the target detection model based on the training samples;
[0009] Perform target detection on visible light images and infrared images taken by drones based on the trained target detection model;
[0010] Among them, the improvements to the YOLOv7 network include:
[0011] Two input streams are set in the input part to input the visible light image and the infrared image respectively;
[0012] In the backbone network, the two modal images are feature fused to obtain a fused feature map which is input into the subsequent feature extraction network for further feature extraction.
[0013] In the neck network part, the SPPCSPC module is modified and the SE attention mechanism is added to it;
[0014] In the detection head network part, the k-means clustering algorithm is used to obtain 12 anchor boxes, and a detection head is added, and the SimAM attention mechanism is added before each detection head.
[0015] Furthermore, when training the target detection model, it also includes: enhancing the training samples using a cutout data enhancement method.
[0016] Further, modifications to the SPPCSPC module include:
[0017] The SPP part in the SPPCSPC module is modified to SPPF, and the SE attention mechanism is added after the concat in SPPF, and the output of the SE attention mechanism is used as the input of the 1×1Conv after SPP in the original SPPCSPC module.
[0018] Furthermore, SPPF consists of two CBS modules, three series-connected 5×5 maximum pooling layers and one concat; after the fused feature map is input into one of the CBS modules, it is connected to three series-connected 5×5 maximum pooling layers, and the output of the CBS module and the output of each 5×5 maximum pooling layer are input into concat together. After the SE attention mechanism is added after concat, it is connected to another CBS module.
[0019] Furthermore, the expression of SE attention mechanism is:
[0020]
[0021] s=F ex (z,W)=σ(g(z,W))=σ(W2δ(W1z))
[0022]
[0023] Among them, z c Represents the vector of the z vector generated by global average pooling in the third dimension C = c, where each channel is represented by a numerical value; F sqrepresents the global average pooling operation; u c represents the feature map on the third dimension C=c; u represents the input feature map, and the dimension of u is H×W×C; z represents the vector of size 1×1×C obtained by global average pooling; F ex Represents the operation through two fully connected layers; z changes its dimension from 1×1×C to 1×1×C / R after passing through the first fully connected layer, and then changes its dimension from 1×1×C / R to 1×1×C after passing through the second fully connected layer, where R is a hyperparameter representing the compression ratio, the activation function of the first fully connected layer is ReLU, and the activation function of the second fully connected layer is Sigmoid; W1 and W2 represent the weight information learned by the two fully connected layers; W is the learned weight, which is used to show the feature correlation required for modeling; s is the channel weight information to be obtained, and different values in s represent the weight information of different channels, giving different weights to the channels; δ, σ, and g represent fully connected operations; s c represents the vector on the third dimension C=c of the s matrix; F scale Indicates that the generated weight vector s is weighted to the feature map u to obtain the desired feature map Its size is exactly the same as u.
[0024] Furthermore, the detection head network part includes four detection heads, which predict the target category and position information of the feature maps of 20×20, 40×40, 80×80, and 160×160 respectively, among which the newly added detection head corresponds to the feature map of 160×160.
[0025] Furthermore, the SimAM attention mechanism first obtains the features of each channel through global average pooling, and then performs the interaction between channels through a 1D convolution, combining the information of the spatial dimension and the channel dimension to generate a three-dimensional attention weight; the three-dimensional attention weight generates the channel weight through the Sigmoid activation function, and multiplies it with the original feature map to re-weight the features. The formula is:
[0026]
[0027]
[0028] Among them, t represents the target neuron of the input feature, and They represent the mean and variance of all neurons in the channel except t, respectively, and λ is the regularization coefficient; Represents the energy of the neuron. The lower the energy, the greater the difference between the neuron t and the surrounding neurons, and the more important the neuron is. Represents the importance of the neuron, that is, the three-dimensional attention weight, X represents the input feature map, and ⊙ is the element-by-element multiplication; neuron importance After being processed by the Sigmoid function, it is multiplied element by element with the input feature map X to obtain the enhanced feature map
[0029] Furthermore, in the backbone network part, both visible light images and infrared images are subjected to two CBS modules for feature extraction respectively. The convolution kernel size of the first CBS module is 3×3 and the step size is 1, and the convolution kernel size of the second CBS module is 3×3 and the step size is 2. The feature maps of the two modalities are spliced and fused.
[0030] In a second aspect, the present invention provides a dual-mode UAV aerial photography target detection system, comprising:
[0031] An acquisition module is used to acquire visible light images and infrared images taken by drones;
[0032] The target detection module is used to perform target detection on visible light images and infrared images using the dual-mode UAV aerial photography target detection method as described above.
[0033] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the dual-modal UAV aerial photography target detection method as described above are implemented.
[0034] It can be seen from the above technical solutions that, compared with the prior art, the present invention has the following beneficial effects:
[0035] Taking into account the problem of low accuracy of target detection in drone aerial photography, the present invention embeds the SE channel attention mechanism in the SPPFCSPC module and adds the SimAM parameter-free attention mechanism in front of each detection head. The embedding of the attention mechanism strengthens the important features in the feature map, which can improve the target detection accuracy of the model; considering the small characteristics of drone aerial photography targets, 12 anchors are generated by using the k-means clustering algorithm, and a detection layer for small targets is added to improve the detection accuracy of the model for small targets; considering the unclear texture detail information of visible light images of drone aerial photography in scenes such as target occlusion and weak light intensity, two image input streams are designed to input visible light images and infrared images respectively, and feature fusion is performed on the images of the two modes, and features are further extracted from the fused feature map, and finally target detection is performed, which makes up for the problem of insufficient texture detail information of visible light images in complex environments, and is conducive to improving the detection accuracy of drones for small targets in complex scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 A flow chart of the dual-mode UAV aerial photography target detection method provided by the present invention;
[0038] Figure 2 A schematic diagram of the structure of the target detection model provided by the present invention;
[0039] Figure 3 This is a schematic diagram of the target detection results provided by the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] like Figure 1 As shown, an embodiment of the present invention discloses a dual-mode UAV aerial photography target detection method, comprising the following steps:
[0042] Based on the YOLOv7 network as the basic architecture, we improved it and built a target detection model;
[0043] Train the target detection model based on the training samples;
[0044] Perform target detection on visible light images and infrared images taken by drones based on the trained target detection model;
[0045] Among them, the improvements to the YOLOv7 network include:
[0046] Two input streams are set in the input part to input the visible light image and the infrared image respectively;
[0047] In the backbone network, the two modal images are feature fused to obtain a fused feature map which is input into the subsequent feature extraction network for further feature extraction.
[0048] In the neck network part, the SPPCSPC module is modified and the SE attention mechanism is added to it;
[0049] In the detection head network part, the k-means clustering algorithm is used to obtain 12 anchor boxes, and a detection head is added, and the SimAM attention mechanism is added before each detection head.
[0050] The above steps are further explained below.
[0051] S1. Construction of target detection model.
[0052] The YOLOv7 network is used as the basic architecture and improved.
[0053] 1) In the input part, two input streams are designed to input visible light images and infrared images respectively.
[0054] 2) In the backbone network, two CBS modules are set on each input stream. Both visible light images and infrared images are extracted through two CBS modules. The convolution kernel size of the first CBS module on each input stream is 3×3, with a step size of 1, and the convolution kernel size of the second CBS module is 3×3, with a step size of 2. The feature map size is reduced to half of the original size. After that, the feature maps of the two modalities after passing through the two CBS modules are spliced in the channel dimension to achieve feature fusion. The fused feature map is continuously input into the subsequent network to achieve dual-modal target detection.
[0055] 3) In the neck network part, the SPPCSPC module is modified and the SE attention mechanism is added to it; the modifications to the SPPCSPC module include:
[0056] The SPP part in the SPPCSPC module is modified to SPPF, and the SE attention mechanism is added after the concat in SPPF, and the output of the SE attention mechanism is used as the input of the 1×1Conv after SPP in the original SPPCSPC module.
[0057] Specifically, SPPF consists of two CBS modules, three series-connected 5×5 maximum pooling layers (MaxPooling) and one concat; after the fused feature map is input into one of the CBS modules, it is connected to three series-connected 5×5 maximum pooling layers. The output of the CBS module and the output of each 5×5 maximum pooling layer are input into concat together. After the SE attention mechanism is added after concat, it is connected to another CBS module.
[0058] The output results of two 5×5 MaxPooling series are consistent with the output result of one 9×9 MaxPooling, and the output results of three 5×5 MaxPooling series are consistent with the output result of one 13×13 MaxPooling. The SPPF module can achieve the same effect as the SPP module, increase the receptive field of the feature map to achieve multi-scale target detection, and can be applied to models such as YOLOv7-tiny and YOLOv5 to reduce the calculation amount of the model and speed up the detection speed. It will not increase the calculation amount when applied to the YOLOv7 model of the present invention.
[0059] The expression of SE attention mechanism is:
[0060]
[0061] s=F ex (z,W)=σ(g(z,W))=σ(W2δ(W1z))
[0062]
[0063] Among them, z c Represents the vector of the z vector generated by global average pooling in the third dimension C = c, where each channel is represented by a numerical value; F sq represents the global average pooling operation; u c represents the feature map on the third dimension C=c; u represents the input feature map, and the dimension of u is H×W×C; z represents the vector of size 1×1×C obtained by global average pooling; F ex Represents the operation through two fully connected layers; z changes its dimension from 1×1×C to 1×1×C / R after passing through the first fully connected layer, and then changes its dimension from 1×1×C / R to 1×1×C after passing through the second fully connected layer, where R is a hyperparameter representing the compression ratio, the activation function of the first fully connected layer is ReLU, and the activation function of the second fully connected layer is Sigmoid; W1 and W2 represent the weight information learned by the two fully connected layers; W is the learned weight, which is used to show the feature correlation required for modeling; s is the channel weight information to be obtained, and different values in s represent the weight information of different channels, giving different weights to the channels; δ, σ, and g represent fully connected operations; s c represents the vector on the third dimension C=c of the s matrix; F scale Indicates that the generated weight vector s is used to assign weights to the feature map u to obtain the desired feature map ~x c , its size is exactly the same as u, and the SE module does not change the size of the feature map.
[0064] The SE module focuses on the relationship between channels, automatically learns the importance of different channel features through network back propagation, obtains more information, and improves the accuracy of network detection. By adding the SE module to the SPPFCSPC module, the multi-scale features of the feature map obtained by SPPF are further enhanced, and important information is highlighted, which is conducive to improving the accuracy of target detection.
[0065] 4) In the detection head network part, 12 anchors are obtained by clustering using the k-means algorithm, and a target detection layer P2 corresponding to the 160×160 feature map is added. The present invention includes four detection heads in total, which respectively predict the target category and position information for the 20×20, 40×40, 80×80, and 160×160 feature maps, among which the newly added detection head corresponds to the 160×160 feature map.
[0066] Among them, the k-means algorithm uses distance as the evaluation index of similarity, that is, it is believed that the closer the distance between two objects, the greater the similarity, and the close samples are clustered into the same category. The k-means clustering algorithm is used to cluster the anchor frames, and each detection head corresponds to 3 anchor frames. The present invention adds a detection layer, that is, a detection head will be added accordingly, a total of 4 detection heads, and 12 anchor frames are required. The number of clustering clusters is set to 12. The k-means algorithm clusters the width and height data of the anchor frames in the data set to generate 12 anchor frames for the data set as predefined frames, so that the predefined frames of target detection are more targeted and more accurate frame regression is achieved.
[0067] Among them, a small target detection layer is added to modify the neck part of YOLOv7. A small target detection layer P2 with a 160×160 feature map is added after the first ELAN module in the backbone network. The added module is similar to the detection layer P3 in the original YOLOv7. Small targets refer to targets with a resolution less than 32×32. Small targets contain less feature information. After multi-layer convolutional neural network feature extraction, many details may be lost. The 160×160 feature map belongs to a shallow feature map, which can retain most of the details and is conducive to the detection of small targets. Adding a small target detection layer P2 with a 160×160 feature map contains richer small target feature information, which can effectively improve the network's detection ability for small targets and improve the target detection network's detection ability for small targets.
[0068] Afterwards, the SimAM parameter-free attention mechanism is embedded in front of each detection head to calculate the attention weights, realize the inference of three-dimensional attention weights, and enhance the feature map.
[0069] Specifically, the SimAM attention mechanism first obtains the features of each channel through global average pooling, and then performs the interaction between channels through a 1D convolution, combining the information of the spatial dimension and the channel dimension to generate a three-dimensional attention weight; the three-dimensional attention weight generates the channel weight through the Sigmoid activation function, and multiplies it with the original feature map to re-weight the features. The formula is:
[0070]
[0071] Among them, t represents the target neuron of the input feature, and They represent the mean and variance of all neurons in the channel except t, respectively, and λ is the regularization coefficient; Represents the energy of the neuron. The lower the energy, the greater the difference between the neuron t and the surrounding neurons, and the more important the neuron is. Represents the importance of the neuron, that is, the three-dimensional attention weight, X represents the input feature map, and ⊙ is the element-by-element multiplication; neuron importance After being processed by the Sigmoid function, it is multiplied element by element with the input feature map X to obtain the enhanced feature map
[0072] S2. Training of the target detection model. When training the target detection model, it also includes: using the cutout data enhancement method to enhance the training samples, randomly selecting a square area of a fixed size, and filling the area with zeros.
[0073] During training, the visible light images and infrared images in the training samples are input into the model to calculate the loss function. Through back propagation and the gradient descent method, the weight parameters in the model are iteratively updated to minimize the loss function. When the model training results tend to be stable and the loss function converges, the model training is completed, and finally the required dual-modal target detection network model is obtained.
[0074] S3. Perform target detection on the visible light images and infrared images taken by the drone based on the trained target detection model. Visible light images lack texture detail information in the case of insufficient light and occlusion such as rain and fog. Infrared images capture the thermal radiation information of the ground and have stronger anti-interference ability than visible light images. They contain rich light intensity information. The target detection model of the present invention can realize the complementary advantages of visible light images and infrared images. Fusion of visible light image and infrared image features for target detection can provide richer target feature information, make up for the problem of insufficient texture detail information of visible light images in complex environments, and improve the accuracy of target detection.
[0075] In general, the present invention is improved on the basis of the YOLOv7 architecture. YOLOv7 is a single-stage target detection network that meets the needs of the use of drones with insufficient computing power onboard computers. The present invention uses the VEDAI dataset to train and verify the model effect. First, the VEDAI dataset is enhanced using cutout data enhancement during training. This method masks the image to improve the robustness of the model. Then, the SPPCSPC module in the YOLOv7 network is changed to an SPPFCSPC module and an SE module is added thereto to improve the expression of important information in the multi-scale feature map. Then, the k-means clustering algorithm is used to cluster the VEDAI dataset. Clustering generates 12 anchor prediction boxes, and the YOLOv7 framework is modified to add a small target detection layer for the 160×160 feature map to enhance the detection accuracy of small targets; in order to further improve the target detection accuracy, the non-parameter attention mechanism SimAM is embedded in front of each detection head; then, in view of the fact that the texture detail information of visible light images is seriously disturbed in occluded environments such as insufficient light, rain, and fog, the input part and the backbone network part are modified, and two input streams are designed, one for visible light images and the other for infrared images. Feature fusion is then used to splice the two modal images together according to the channel dimension, and input them into the subsequent neck network and detection head part, thereby realizing a dual-modal target detection network. Finally, the end-to-end dual-modal target detection network is back-propagated and trained, and the hyperparameters are adjusted according to the training results, so that the final trained model can meet the requirements of drone target detection accuracy.
[0076] like Figure 2 As shown in the figure, it is the architecture diagram of the entire target detection model, which is an end-to-end dual-modal single-stage target detection network. The visible light image and infrared image are input into the network with a resolution of 640×640. The features of the two modal images are extracted respectively. Then, the 320×320 feature maps of the two modalities are concat along the channel dimension and input into the subsequent neck network and detection head. The neck network uses SPPFCSPC embedded with SE attention module to realize multi-scale feature fusion to increase the receptive field. SimAM attention module is added before each detection head to strengthen the important feature information of the final 20×20, 40×40, 80×80, and 160×160 feature maps, and then input into the four detection heads to predict the target category and location information respectively.
[0077] like Figure 3 As shown in the figure, the detection results of the model trained by the bimodal target detection model using the training set in the VEDAI dataset are obtained by detecting the images in the VEDAI dataset. The detection results show the detection target box, category information and confidence. There is no missed detection or false detection, the confidence is high, and the detection effect is good.
[0078] In other embodiments, the present invention further discloses a dual-mode UAV aerial photography target detection system, comprising:
[0079] An acquisition module is used to acquire visible light images and infrared images taken by drones;
[0080] The target detection module is used to perform target detection on visible light images and infrared images using the dual-mode UAV aerial photography target detection method as described above.
[0081] In another embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the dual-modal UAV aerial photography target detection method as described above are implemented.
[0082] Examples of computer-readable storage media include: read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, non-volatile memory, CD-ROM, DVD-ROM, Blu-ray or optical disk storage, hard disk drive (HDD), solid-state drive (SSD), card-type memory (such as a multimedia card, a secure digital (SD) card, or an extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid-state disk, and any other device configured to store a computer program and any associated data, data files, and data structures in a non-transitory manner and provide the computer program and any associated data, data files, and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be executed in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files, and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed manner by one or more processors or computers.
[0083] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods or computer program products, etc. Therefore, the present invention may take the form of a complete software embodiment, a complete hardware embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0084] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0085] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A dual-mode UAV aerial photography target detection method, characterized in that: The following steps are involved: Based on the YOLOv7 network as the basic architecture, we improved it and built a target detection model; Train the target detection model based on the training samples; Perform target detection on visible light images and infrared images taken by drones based on the trained target detection model; Among them, the improvements to the YOLOv7 network include: Two input streams are set in the input part to input the visible light image and the infrared image respectively; In the backbone network, the two modal images are feature-fused to obtain a fused feature map, which is then input into the subsequent feature extraction network for further feature extraction. In the neck network part, the SPPCSPC module is modified and the SE attention mechanism is added to it; In the detection head network part, the k-means clustering algorithm is used to obtain 12 anchor boxes, and a detection head is added, and the SimAM attention mechanism is added before each detection head.
2. The dual-mode UAV aerial photography target detection method according to claim 1, characterized in that: When training the target detection model, it also includes: using the cutout data enhancement method to enhance the training samples.
3. The dual-mode UAV aerial photography target detection method according to claim 1, characterized in that: Modifications to the SPPCSPC module include: The SPP part in the SPPCSPC module is modified to SPPF, and the SE attention mechanism is added after the concat in SPPF, and the output of the SE attention mechanism is used as the input of the 1×1Conv after SPP in the original SPPCSPC module.
4. The dual-mode UAV aerial photography target detection method according to claim 3 is characterized in that: SPPF consists of two CBS modules, three series-connected 5×5 maximum pooling layers and one concat. After the fused feature map is input into one of the CBS modules, it is connected to three series-connected 5×5 maximum pooling layers. The output of the CBS module and the output of each 5×5 maximum pooling layer are input into concat together. After the SE attention mechanism is added after concat, it is connected to another CBS module.
5. The dual-mode UAV aerial photography target detection method according to claim 1, characterized in that: The expression of SE attention mechanism is: s=F ex (z,W)=σ(g(z,W))=σ(W2δ(W1z)) Among them, z c Represents the vector of the z vector generated by global average pooling in the third dimension C = c, where each channel is represented by a numerical value; F sq represents the global average pooling operation; u c represents the feature map on the third dimension C=c; u represents the input feature map, and the dimension of u is H×W×C; z represents the vector of size 1×1×C obtained by global average pooling; F ex Represents the operation through two fully connected layers; z changes its dimension from 1×1×C to 1×1×C / R after passing through the first fully connected layer, and then changes its dimension from 1×1×C / R to 1×1×C after passing through the second fully connected layer, where R is a hyperparameter representing the compression ratio, the activation function of the first fully connected layer is ReLU, and the activation function of the second fully connected layer is Sigmoid; W1 and W2 represent the weight information learned by the two fully connected layers; W is the learned weight, which is used to show the feature correlation required for modeling; s is the channel weight information to be obtained, and different values in s represent the weight information of different channels, giving different weights to the channels; δ, σ, and g represent fully connected operations; s c represents the vector on the third dimension C=c of the s matrix; F scale Indicates that the generated weight vector s is weighted to the feature map u to obtain the desired feature map Its size is exactly the same as u.
6. The dual-mode UAV aerial photography target detection method according to claim 1, characterized in that: In the detection head network part, there are four detection heads in total, which predict the target category and location information for the feature maps of 20×20, 40×40, 80×80, and 160×160 respectively. Among them, the newly added detection head corresponds to the feature map of 160×160.
7. The dual-mode UAV aerial photography target detection method according to claim 1, characterized in that: The SimAM attention mechanism first obtains the features of each channel through global average pooling, and then performs the interaction between channels through a 1D convolution, combining the information of the spatial dimension and the channel dimension to generate a three-dimensional attention weight; The three-dimensional attention weight generates channel weights through the Sigmoid activation function and multiplies it with the original feature map to re-weight the features. The formula is: Among them, t represents the target neuron of the input feature, and They represent the mean and variance of all neurons in the channel except t, respectively, and λ is the regularization coefficient; Represents the energy of the neuron. The lower the energy, the greater the difference between the neuron t and the surrounding neurons, and the more important the neuron is. Represents the importance of the neuron, that is, the three-dimensional attention weight, X represents the input feature map, and ⊙ is the element-by-element multiplication; neuron importance After being processed by the Sigmoid function, it is multiplied element by element with the input feature map X to obtain the enhanced feature map 8. The dual-mode UAV aerial photography target detection method according to claim 1, characterized in that: In the backbone network part, both visible light images and infrared images are subjected to two CBS modules for feature extraction respectively. The convolution kernel size of the first CBS module is 3×3 and the step size is 1, and the convolution kernel size of the second CBS module is 3×3 and the step size is 2. The feature maps of the two modalities are spliced and fused.
9. A dual-mode UAV aerial target detection system, characterized in that: include: An acquisition module is used to acquire visible light images and infrared images taken by drones; The target detection module is used to perform target detection on visible light images and infrared images using the dual-mode UAV aerial photography target detection method as described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the dual-modal UAV aerial photography target detection method as described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Bimodal unmanned aerial vehicle identification method based on adaptive fusion of visible light and infrared images
CN115700808A
Unmanned aerial vehicle aerial photography small target detection method based on improved YOLOv7 algorithm
CN116597326A
Unmanned aerial vehicle target detection method based on double-flow network structure
CN117315554A
Insulator detection method based on defogging constraint network and series multi-scale attention
CN117689617A
Cited By
Small target detection method and device for unmanned aerial vehicle image, medium and equipment
CN119339271A
