Antenna interference source detection method and device based on unmanned aerial vehicle, and computer equipment
Through the drone detection method, convolution processing and attention modules are used to extract the characteristic information of the antenna interference source image, which solves the problem of low manual detection efficiency and achieves efficient and accurate detection of antenna interference sources.
Patent Information
- Application Number
- CN202410562468.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-30
AI Technical Summary
In the field of electronic communications, manual operation of antenna interference source detection is inefficient, consumes a lot of human resources, and is difficult to accurately locate antenna interference sources in complex environments.
The UAV-based antenna interference source detection method is adopted, and the multi-scale feature information of the antenna interference source image to be detected is extracted through the convolution processing module, attention module and feature fusion module to achieve accurate detection of antenna interference sources.
It improves the accuracy and efficiency of antenna interference source detection, reduces detection costs, and reduces the need for manual operations.
Smart Images

Figure CN118570668A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of antenna interference source image detection, and in particular to an antenna interference source detection method, device, computer equipment and storage medium based on a drone. Background Art
[0002] With the rapid development of electronic communications, the radio spectrum has become increasingly crowded. Uncensored private transmissions affect the quality of daily public communications. Therefore, regulatory authorities in the communications sector require regular inspections and cleanup procedures to identify and eliminate sources of signal interference. When investigating sources of antenna interference from antennas, personnel are required to use handheld signal receivers and spectrum analyzers to determine the precise location of antenna interference sources, relying on changes in signal waveform patterns and strength.
[0003] However, these antennas are usually installed in complex environments, such as balconies or rooftops, which poses a huge challenge to ground search personnel. This manual operation consumes a lot of human resources and is inefficient. Summary of the invention
[0004] Based on this, the purpose of the present invention is to provide a method, device, computer equipment and storage medium for detecting antenna interference sources based on drones, which extracts feature information of different levels of the antenna interference source image to be detected, uses attention extraction and feature fusion methods to effectively fuse feature information of various scales for antenna interference source detection, and realizes antenna interference source detection of the antenna interference source image to be detected, improves the accuracy and efficiency of antenna interference source detection, and reduces the cost of antenna interference source detection. The specific scheme is as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for detecting antenna interference sources based on a drone, comprising the following steps:
[0006] Obtain an image of an antenna interference source to be detected taken by a drone and a preset antenna interference source recognition model, wherein the antenna interference source recognition model includes a convolution processing module, an attention module, a feature fusion module, and a detection module connected in sequence;
[0007] Inputting the antenna interference source image to be detected into the convolution processing module for layer-by-layer convolution processing to obtain a convolution feature data set of the antenna interference source image to be detected, wherein the convolution feature data set includes convolution feature data of several scales output by several layers of convolution layers of the convolution processing module;
[0008] Inputting the convolution feature data of the last scale of the antenna interference source image to be detected into the attention module for attention extraction to obtain the attention feature data of the antenna interference source image to be detected;
[0009] Inputting the convolution feature data of several scales other than the convolution feature data of the last scale in the convolution feature data set of the antenna interference source image to be detected and the attention feature data into the feature fusion module for feature fusion to obtain feature fusion data of the antenna interference source image to be detected;
[0010] The feature fusion data of the antenna interference source image to be detected is input into the detection module to perform antenna interference source detection, and antenna interference source detection data of the antenna interference source image to be detected is obtained, wherein the antenna interference source detection data includes antenna interference source type detection data and antenna interference source position detection data.
[0011] In a second aspect, an embodiment of the present application provides an antenna interference source detection device based on a drone, comprising:
[0012] A data acquisition module, used to obtain an image of an antenna interference source to be detected taken by a drone and a preset antenna interference source recognition model, wherein the antenna interference source recognition model includes a convolution processing module, an attention module, a feature fusion module and a detection module connected in sequence;
[0013] A convolution feature extraction module, used to input the antenna interference source image to be detected into the convolution processing module for layer-by-layer convolution processing to obtain a convolution feature data set of the antenna interference source image to be detected, wherein the convolution feature data set includes convolution feature data of several scales output by several convolution layers of the convolution processing module;
[0014] An attention feature extraction module, used for inputting the convolution feature data of the last scale of the antenna interference source image to be detected into the attention module for attention extraction, so as to obtain the attention feature data of the antenna interference source image to be detected;
[0015] A feature processing module, used for inputting the convolution feature data of several scales other than the convolution feature data of the last scale in the convolution feature data set of the antenna interference source image to be detected and the attention feature data into the feature fusion module for feature fusion, so as to obtain the feature fusion data of the antenna interference source image to be detected;
[0016] The antenna interference source detection module is used to input the feature fusion data of the antenna interference source image to be detected into the detection module to perform antenna interference source detection, and obtain antenna interference source detection data of the antenna interference source image to be detected, wherein the antenna interference source detection data includes antenna interference source type detection data and antenna interference source position detection data.
[0017] In a third aspect, an embodiment of the present application provides a computer device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor; when the computer program is executed by the processor, the steps of the UAV-based antenna interference source detection method as described in the first aspect are implemented.
[0018] In a fourth aspect, an embodiment of the present application provides a storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the antenna interference source detection method based on a drone as described in the first aspect are implemented.
[0019] In an embodiment of the present application, a method, apparatus, computer equipment and storage medium for detecting antenna interference sources based on a drone are provided. By extracting feature information of different levels of an antenna interference source image to be detected, attention extraction and feature fusion methods are used to effectively fuse feature information of various scales for antenna interference source detection, thereby realizing antenna interference source detection of an antenna interference source image to be detected, improving the accuracy and efficiency of antenna interference source detection, and reducing the cost of antenna interference source detection.
[0020] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of a flow chart of a method for detecting antenna interference sources based on a drone provided in one embodiment of the present application;
[0022] Figure 2 A schematic diagram of the process of S3 in a method for detecting antenna interference sources based on a drone provided in one embodiment of the present application;
[0023] Figure 3 A schematic diagram of the process of S31 in a method for detecting antenna interference sources based on a drone provided in one embodiment of the present application;
[0024] Figure 4 A schematic diagram of the process of S32 in a method for detecting antenna interference sources based on a drone provided in one embodiment of the present application;
[0025] Figure 5 A schematic diagram of the process of S4 in a method for detecting antenna interference sources based on a drone provided in one embodiment of the present application;
[0026] Figure 6 A schematic diagram of the process of S41 in a method for detecting antenna interference sources based on a drone provided in one embodiment of the present application;
[0027] Figure 7A schematic diagram of the process of S42 in a method for detecting antenna interference sources based on a drone provided in one embodiment of the present application;
[0028] Figure 8 A schematic diagram of the structure of an antenna interference source detection device based on a drone provided in one embodiment of the present application;
[0029] Fig. 9 A schematic diagram of the structure of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0031] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0032] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
[0033] See also Figure 1 , Figure 1 A schematic flow chart of a method for detecting antenna interference sources based on a drone provided in one embodiment of the present application, the method comprising the following steps:
[0034] S1: Obtain an image of the antenna interference source to be detected taken by a drone and a preset antenna interference source identification model.
[0035] The execution subject of the UAV-based antenna interference source detection method is a detection device of the UAV-based antenna interference source detection method (hereinafter referred to as the detection device). In an optional embodiment, the detection device can be a computer device, a server, or a server cluster composed of multiple computer devices.
[0036] During routine communication inspection and troubleshooting, the important antenna interference sources that affect the communication frequency band are divided into three types: Yagi Antenna, Plate log Antenna and Patch Antenna. Plate log antennas come in two forms: one is a square box shape and the other is a flat profile with a trapezoidal side. Yagi antennas and plate log antennas are often used in long-distance wireless communications due to their simple structure and high gain.
[0037] In this embodiment, the detection device can obtain the image of the antenna interference source to be detected taken by the drone by establishing a data connection with the drone, or obtain the image of the antenna interference source to be detected taken by the drone in a preset database.
[0038] The detection device obtains a preset antenna interference source identification model, wherein the antenna interference source identification model includes a convolution processing module, an attention module, a feature fusion module and a detection module connected in sequence.
[0039] S2: Inputting the antenna interference source image to be detected into the convolution processing module for layer-by-layer convolution processing to obtain a convolution feature data set of the antenna interference source image to be detected.
[0040] In this embodiment, the detection device inputs the image of the antenna interference source to be detected into the convolution processing module for layer-by-layer convolution processing to obtain a convolution feature data set of the image of the antenna interference source to be detected, wherein the convolution feature data set includes convolution feature data of several scales output by several layers of convolution layers of the convolution processing module.
[0041] Specifically, the convolution processing module adopts the backbone network of the CNN convolutional neural network model. The detection device inputs the image of the antenna interference source to be detected into the backbone network of the CNN convolutional neural network model for convolution processing to obtain the convolution feature data set of the image of the antenna interference source to be detected.
[0042] S3: Inputting the convolution feature data of the last scale of the image of the antenna interference source to be detected into the attention module for attention extraction to obtain the attention feature data of the image of the antenna interference source to be detected.
[0043] In this embodiment, the detection device inputs the convolution feature data of the last scale of the antenna interference source image to be detected into the attention module for attention extraction to obtain the attention feature data of the antenna interference source image to be detected.
[0044] Specifically, since the CNN convolutional neural network model is used as the convolution processing module, the convergence speed is reduced and the computational complexity and memory requirements are increased. The detection device adopts a deformable sparse attention module (Deformable SqueezeAttention) as the attention module, and introduces a manually designed sparse attention mechanism to reduce the query range. In the manually designed sparse attention mechanism, each query no longer calculates the global key-value pairs, but focuses on the key-value pairs within the manually designed local static range, which helps to avoid information loss and excessive memory overhead, alleviate the negative impact of computational complexity, and achieve adaptive sparsity of attention extraction, thereby improving the accuracy of antenna interference source detection of the antenna interference source image to be detected.
[0045] The attention module includes a deformation submodule and a compression submodule. Figure 2 , Figure 2 The schematic flow diagram of S3 in the method for detecting antenna interference sources based on a drone provided in one embodiment of the present application includes steps S31 to S33, which are specifically as follows:
[0046] S31: Perform matrix transformation processing on the convolution feature data of the last scale to obtain attention score matrix data, and input the attention score matrix data into the deformation submodule to perform matrix offset processing to obtain attention offset matrix data.
[0047] In this embodiment, the detection device performs matrix transformation processing on the convolution feature data of the last scale by linear projection to obtain attention score matrix data, wherein the attention score matrix data includes attention scores of several pixel areas, and the attention score matrix data is:
[0048] query=xW q
[0049] In the formula, query is the attention score matrix data, x is the convolution feature data of the last scale, and W q is the first linear projection weight parameter.
[0050] In order to reduce the computational complexity while ensuring the correlation between the obtained attention feature data and the input convolution feature data, the detection device inputs the attention score matrix data into the deformation submodule, uses the offset concept of the deformable attention mechanism (Deformable Attention) to calculate the global offset, performs matrix offset processing, and obtains attention offset matrix data, wherein the attention offset matrix data includes the attention scores of several pixel areas after the offset processing.
[0051] See also Figure 3 , Figure 3 The schematic flow diagram of S31 in the method for detecting antenna interference sources based on a drone provided in one embodiment of the present application includes steps S311 to S312, which are specifically as follows:
[0052] S311: Obtain offset data according to the attention score matrix data and a preset offset calculation algorithm.
[0053] The offset calculation algorithm is:
[0054] Δp=φ offset (query)
[0055] Where Δp is the offset data, φ offset () is the offset calculation function.
[0056] In this embodiment, the detection device obtains the offset data by performing an embedded convolution operation on the attention score matrix data according to the attention score matrix data and a preset offset calculation algorithm.
[0057] S312: Obtain reference feature point data corresponding to the convolution feature data of the last scale, and obtain attention offset matrix data according to the convolution feature data of the last scale, the reference feature point data, the offset data, and a preset attention offset matrix calculation algorithm.
[0058] In this embodiment, the detection device obtains reference feature point data corresponding to the convolution feature data of the last scale, wherein the reference feature point data is used to record initial position information of feature values of several pixel regions in the convolution feature data.
[0059] The detection device obtains attention offset matrix data according to the convolution feature data of the last scale, the reference feature point data, the offset data and a preset attention offset matrix calculation algorithm, wherein the attention offset matrix calculation algorithm is:
[0060]
[0061] In the formula, is the attention offset matrix data, γ() is the bilinear difference function, p is the reference feature point data,
[0062] is the mesh generation function.
[0063] By combining the convolution feature data, reference feature point data and offset data to construct the attention offset matrix data, the most relevant key-value pairs in the shifted feature area are filtered and the rest are suppressed, avoiding the situation where the mapping process ignores important information or introduces irrelevant information, thereby effectively improving the extraction of attention information.
[0064] S32: Input the attention score matrix data and the attention offset matrix data into the compression submodule to extract the attention similarity information and perform compression processing to obtain the attention compression matrix data and the pixel specific value data.
[0065] In this embodiment, the detection device inputs the attention score matrix data and the attention offset matrix data into the compression submodule to perform attention similarity information extraction and compression processing to prevent excessive deviation of the attention score matrix data, and obtain attention compression matrix data and pixel specific value data, wherein the attention compression matrix data includes attention similarity scores between several target pixel areas, and the pixel area value data includes pixel specific values of several of the target pixel areas.
[0066] See also Figure 4 , Figure 4 The schematic flow diagram of S32 in the method for detecting antenna interference sources based on a drone provided in one embodiment of the present application includes steps S321 to S323, which are specifically as follows:
[0067] S321: Obtain key-value pair data according to the offset matrix feature data and a preset key-value pair sampling algorithm.
[0068] The key-value pair sampling algorithm is:
[0069]
[0070] In the formula, key is the key data, value is the value data, W k is the second linear projection weight parameter, W v is the third linear projection weight parameter.
[0071] In this embodiment, the detection device obtains key-value pair data according to the offset matrix feature data and a preset key-value pair sampling algorithm, wherein the key-value pair data includes key data and value data.
[0072] S322: Obtain attention similarity matrix data according to the key data, attention score matrix data and a preset attention similarity matrix calculation algorithm.
[0073] The attention similarity matrix calculation algorithm is:
[0074] A=query·key T
[0075] Where A is the attention similarity matrix data and T is the transposition symbol.
[0076] In this embodiment, the detection device obtains attention similarity matrix data based on the key data, attention score matrix data and a preset attention similarity matrix calculation algorithm to measure the correlation between two pixel regions, wherein the attention similarity matrix data is used to indicate the attention similarity scores between several pixel regions in the convolution feature data.
[0077] S323: According to the preset number of pixel areas, the attention similarity matrix data is compressed using the maximum value search method to obtain attention compression matrix data and position index matrix data. According to the position index matrix data, the value data is clustered to extract the corresponding values of several target pixel areas in the value data as the pixel specific values to obtain the pixel specific value data.
[0078] In this embodiment, the detection device uses an extreme value search method according to a preset number of pixel areas, and compresses the attention similarity matrix data by extracting a number of pixel areas related to the first k maximum attention similarity scores in the attention similarity matrix data to obtain attention compression matrix data and position index matrix data, so as to focus on important pixel areas and suppress connections irrelevant to edges, effectively compress channels, and effectively reduce calculation complexity while ensuring the accuracy of antenna interference source detection, wherein the position index matrix data includes position index data of target pixel areas associated with the target attention score matrix data, and the position index data is used to indicate row data and column data of the pixel area, as described below:
[0079] A g ,I r =topk(A;k)
[0080] In the formula, A g is the attention compression matrix data, I r is the position index matrix data, top(;) is the maximum value function, k = sH kv W kv , Hkv is the matrix length, W kv is the matrix width.
[0081] The detection device performs clustering processing on the value data according to the position index matrix data, extracts corresponding values of several target pixel areas in the value data as the pixel specific values, obtains the pixel specific value data, and screens out the top k most suitable key-value pairs for different queries, wherein the pixel specific value data is:
[0082] value g =gather(value,I r )
[0083] In the formula, value g is the pixel specific value data, and garher() is the aggregation function.
[0084] S33: Obtain attention feature data according to the attention compression matrix data, pixel specific value data and a preset attention feature algorithm.
[0085] The attention feature algorithm is:
[0086] Att=Attention(A g ,value g )
[0087] In the formula, Att is the attention feature data, Attention() is the attention extraction function, and A g is the attention compression matrix data, value g Pixel specific value data.
[0088] In this embodiment, the detection device obtains attention feature data based on the attention compression matrix data, pixel specific value data and a preset attention feature algorithm. In different query processes, it can simultaneously focus on the relevant pixel area and the target pixel area, ensuring the focus on the target pixel area, while better distinguishing the relationship between the foreground and the background, avoiding significant information loss, reducing some redundant calculations, and realizing adaptive sparsity of attention extraction, thereby improving the accuracy of antenna interference source detection in the antenna interference source image to be detected.
[0089] S4: Input the convolution feature data of several scales other than the convolution feature data of the last scale in the convolution feature data set of the antenna interference source image to be detected and the attention feature data into the feature fusion module for feature fusion to obtain feature fusion data of the antenna interference source image to be detected.
[0090] In this embodiment, the detection device inputs the convolution feature data of several scales other than the convolution feature data of the last scale in the convolution feature data set of the antenna interference source image to be detected and the attention feature data into the feature fusion module for feature fusion to obtain the feature fusion data of the antenna interference source image to be detected.
[0091] The feature fusion module includes a downsampling submodule and an upsampling submodule; the downsampling submodule includes a number of downsampling units corresponding to the scale; the upsampling submodule includes a number of upsampling units corresponding to the scale; please refer to Figure 5 , Figure 5 The schematic flow diagram of S4 in the method for detecting antenna interference sources based on a drone provided in one embodiment of the present application includes steps S41 to S42, which are specifically as follows:
[0092] S41: Input the attention feature data of the last scale into the downsampling unit of the corresponding scale of the downsampling submodule for feature extraction to obtain the downsampling feature data of the last scale, concatenate the downsampling feature data of the last scale and the convolution feature data of the previous scale corresponding to the last scale, and use the concatenated result as the first input data, input it into the downsampling unit of the previous scale corresponding to the last scale for feature extraction to obtain the downsampling feature data of the previous scale, repeat this step to obtain the downsampling feature data output by the downsampling units corresponding to several scales.
[0093] In this embodiment, the detection device inputs the attention feature data of the last scale into the downsampling unit of the corresponding scale of the downsampling submodule for feature extraction to obtain the downsampling feature data of the last scale. Specifically, the downsampling unit of the last scale only includes a convolution subunit, and the detection device performs convolution processing according to the attention feature data of the last scale and the convolution subunit, and uses the obtained convolution processing result as the downsampling feature data to obtain the downsampling feature data of the last scale.
[0094] The detection device concatenates the downsampled feature data of the last scale and the convolution feature data of the previous scale corresponding to the last scale, and uses the concatenated result as the first input data, which is input into the downsampled unit of the previous scale corresponding to the last scale for feature extraction to obtain the downsampled feature data of the previous scale, and repeats this step to obtain the downsampled feature data output by the downsampled units corresponding to several scales.
[0095] The downsampling unit includes a convolution subunit and a high-dimensional feature extraction subunit connected in sequence, and the last scale downsampling unit includes only a convolution subunit; see Figure 6 , Figure 6 The schematic flow diagram of S41 in the method for detecting antenna interference sources based on a drone provided in one embodiment of the present application includes step S411, which is specifically as follows:
[0096] S411: Input the first input data into the convolution subunit for convolution processing to obtain first subconvolution feature data, input the first subconvolution feature data into the high-dimensional feature extraction subunit, and obtain high-dimensional feature data according to a preset high-dimensional feature extraction algorithm as the down-sampling feature data.
[0097] The high-dimensional feature extraction algorithm is:
[0098] F AFE (x1)=F concat (F conv (x1)·F bottleneck (F conv (x1)))
[0099] In the formula, F AFE (x1) is the high-dimensional feature data, x1 is the first input data, F conv () is the convolution function, F bottleneck () is the backbone network feature extraction function, F concat () is the concatenation function.
[0100] In this embodiment, the detection device inputs the first input data into the convolution subunit for convolution processing to obtain first sub-convolution feature data, and inputs the first sub-convolution feature data into the high-dimensional feature extraction subunit, and obtains high-dimensional feature data as the down-sampled feature data according to a preset high-dimensional feature extraction algorithm. Down-sampling processing is performed from top to bottom, so that the input features of the down-sampling unit corresponding to each scale in the down-sampling submodule are channel-amplified to integrate high-dimensional feature information.
[0101] S42: Input the downsampled feature data output by the downsampled subunit corresponding to the first scale into the upsampled unit of the corresponding scale of the upsampled submodule for feature extraction to obtain the upsampled feature data of the first scale, perform splicing processing on the upsampled feature data of the first scale and the downsampled feature data of the next scale corresponding to the first scale, and use the spliced result as the second input data, input it into the upsampled unit of the next scale corresponding to the first scale for feature extraction to obtain the upsampled feature data of the next scale, repeat this step to obtain the upsampled feature data output by the upsampled submodules corresponding to several scales, perform feature fusion on the upsampled feature data output by the upsampled submodules corresponding to several scales, and obtain the feature fusion data of the image of the antenna interference source to be detected.
[0102] In this embodiment, the detection device inputs the down-sampled feature data output by the down-sampling sub-unit corresponding to the first scale into the up-sampling unit of the corresponding scale of the up-sampling sub-module for feature extraction to obtain the up-sampled feature data of the first scale.
[0103] Specifically, the upsampling unit of the first scale only includes a convolution subunit. The detection device performs convolution processing according to the downsampling feature data output by the downsampling subunit corresponding to the first scale and the convolution subunit, and uses the obtained convolution processing result as the upsampling feature data to obtain the upsampling feature data of the last scale.
[0104] The detection device splices the up-sampled feature data of the first scale and the down-sampled feature data of the next scale corresponding to the first scale, and uses the result of the splicing processing as the second input data, which is input into the up-sampled unit of the next scale corresponding to the first scale for feature extraction to obtain the up-sampled feature data of the next scale, and repeats this step to obtain the up-sampled feature data output by the up-sampled sub-modules corresponding to several scales, and performs feature fusion on the up-sampled feature data output by the up-sampled sub-modules corresponding to several scales to obtain the feature fusion data of the image of the antenna interference source to be detected.
[0105] The upsampling unit includes a convolution subunit and a low-dimensional feature extraction subunit connected in sequence. The upsampling unit of the first scale only includes a convolution subunit; see Figure 7 , Figure 7 The schematic flow diagram of S42 in the method for detecting antenna interference sources based on a drone provided in one embodiment of the present application includes step S421, which is specifically as follows:
[0106] S421: Input the second input data into the convolution subunit for convolution processing to obtain second subconvolution feature data, input the second subconvolution feature data into the low-dimensional feature extraction subunit, and obtain low-dimensional feature data according to a preset low-dimensional feature extraction algorithm as the up-sampled feature data.
[0107] The low-dimensional feature extraction algorithm is:
[0108] F LFE (x2) = F EMA (F conv (x2)·F bottleneck (F conv (x2)))
[0109] In the formula, F LFE (x2) is the high-dimensional feature data, x2 is the second input data, F EMA() is the expectation maximization attention extraction function.
[0110] In this embodiment, the detection device inputs the second input data into the convolution subunit for convolution processing to obtain second sub-convolution feature data, and inputs the second sub-convolution feature data into the low-dimensional feature extraction subunit. According to the preset low-dimensional feature extraction algorithm, the feature information of each scale is effectively fused, and the expectation-maximization attention mechanism is combined to reduce complexity and computational load to obtain low-dimensional feature data as the upsampled feature data. By combining high-dimensional feature information and low-dimensional feature information, feature interaction within scale and feature fusion across scales are achieved, thereby improving the performance of the model in detecting small objects and further improving the accuracy of antenna interference source detection in the antenna interference source image to be detected.
[0111] S5: Inputting the feature fusion data of the antenna interference source image to be detected into the detection module to perform antenna interference source detection, and obtaining antenna interference source detection data of the antenna interference source image to be detected.
[0112] In this embodiment, the detection device inputs the feature fusion data of the antenna interference source image to be detected into the detection module to perform antenna interference source detection, and obtains antenna interference source detection data of the antenna interference source image to be detected, wherein the antenna interference source detection data includes antenna interference source type detection data and antenna interference source position detection data. By extracting feature information of different levels of the antenna interference source image to be detected, using attention extraction and feature fusion methods, feature information of various scales is effectively integrated for antenna interference source detection, thereby realizing antenna interference source detection of the antenna interference source image to be detected, improving the accuracy and efficiency of antenna interference source detection, and reducing the cost of antenna interference source detection.
[0113] Specifically, the detection device performs gridded prediction on the feature fusion data of the antenna interference source image to be detected, obtains a convolution feature map of a specified number of channels using a convolution operation, and based on the convolution feature map, grids the antenna interference source image to be detected to obtain grid coordinate information of the antenna interference source image to be detected.
[0114] The detection device is based on the grid coordinate information of each sample ophthalmic ultrasound image and a preset detector. The detector has three anchor frames, which are usually obtained by clustering the target frames of the training set using K-means clustering. The calculation process is integrated in the model. When training different parts, different anchor frames are adaptively trained to generate detection frames for prediction. Regression is performed on each detection frame to obtain the position and size of the predicted area. The detection device obtains the detection frame coordinate data and classification data of several antenna interference source prediction areas of the antenna interference source image to be detected output by the detector, as well as several antenna interference source prediction areas, wherein the classification data is used to indicate the category of the antenna interference source prediction area, and the classification data includes prediction probability data of several antenna interference source categories.
[0115] The detection device uses the predicted probability data of several antenna interference source categories in the classification data of several antenna interference source prediction areas, takes the antenna interference source category with the maximum predicted probability data as the antenna interference source type detection data, and uses the detection frame coordinate data as the antenna interference source position detection data, to obtain the antenna interference source type detection data and the antenna interference source position detection data of several antenna interference source prediction areas.
[0116] Please refer to Figure 8 , Figure 8 A schematic diagram of the structure of an antenna interference source detection device based on a drone provided in one embodiment of the present application. The device can implement all or part of the antenna interference source detection device based on a drone through software, hardware, or a combination of both. The device 8 includes:
[0117] A data acquisition module 81 is used to obtain an image of an antenna interference source to be detected taken by a drone and a preset antenna interference source recognition model, wherein the antenna interference source recognition model includes a convolution processing module, an attention module, a feature fusion module and a detection module connected in sequence;
[0118] A convolution feature extraction module 82 is used to input the antenna interference source image to be detected into the convolution processing module for layer-by-layer convolution processing to obtain a convolution feature data set of the antenna interference source image to be detected, wherein the convolution feature data set includes convolution feature data of several scales output by several convolution layers of the convolution processing module;
[0119] An attention feature extraction module 83 is used to input the convolution feature data of the last scale of the antenna interference source image to be detected into the attention module for attention extraction, so as to obtain the attention feature data of the antenna interference source image to be detected;
[0120] The feature processing module 84 is used to input the convolution feature data of several scales other than the convolution feature data of the last scale in the convolution feature data set of the antenna interference source image to be detected and the attention feature data into the feature fusion module for feature fusion to obtain the feature fusion data of the antenna interference source image to be detected;
[0121] The antenna interference source detection module 85 is used to input the feature fusion data of the antenna interference source image to be detected into the detection module to perform antenna interference source detection, and obtain antenna interference source detection data of the antenna interference source image to be detected, wherein the antenna interference source detection data includes antenna interference source type detection data and antenna interference source position detection data.
[0122] In an embodiment of the present application, an image of an antenna interference source to be detected taken by a drone and a preset antenna interference source recognition model are obtained through a data acquisition module, wherein the antenna interference source recognition model includes a convolution processing module, an attention module, a feature fusion module and a detection module connected in sequence; through a convolution feature extraction module, the image of the antenna interference source to be detected is input into the convolution processing module for layer-by-layer convolution processing to obtain a convolution feature data set of the image of the antenna interference source to be detected, wherein the convolution feature data set includes convolution feature data of several scales output by several layers of convolution layers of the convolution processing module; through an attention feature extraction module, the convolution feature data of the last scale of the image of the antenna interference source to be detected is input into the attention module for layer-by-layer convolution processing. Attention extraction is performed to obtain the attention feature data of the antenna interference source image to be detected; through the feature processing module, the convolution feature data of several scales other than the convolution feature data of the last scale in the convolution feature data set of the antenna interference source image to be detected and the attention feature data are input into the feature fusion module for feature fusion to obtain the feature fusion data of the antenna interference source image to be detected; through the antenna interference source detection module, the feature fusion data of the antenna interference source image to be detected is input into the detection module for antenna interference source detection to obtain the antenna interference source detection data of the antenna interference source image to be detected, wherein the antenna interference source detection data includes antenna interference source type detection data and antenna interference source position detection data. By extracting feature information of different levels of the antenna interference source image to be detected, attention extraction and feature fusion are used to effectively fuse feature information of each scale for antenna interference source detection, thereby realizing antenna interference source detection of the antenna interference source image to be detected, improving the accuracy and efficiency of antenna interference source detection, and reducing the cost of antenna interference source detection.
[0123] Please refer to Fig. 9 , Fig. 9The computer device 9 includes: a processor 91, a memory 92, and a computer program 93 stored in the memory 92 and executable on the processor 91; the computer device may store a plurality of instructions, which are suitable for being loaded and executed by the processor 91. Figures 1 to 7 The method steps of the embodiment shown in the figure, and the specific execution process can be referred to as shown in the figure Figures 1 to 7 The specific description of the illustrated embodiment will not be repeated here.
[0124] Among them, the processor 91 may include one or more processing cores. The processor 91 uses various interfaces and lines to connect various parts in the server, and executes various functions and processes data of the antenna interference source detection device 8 based on the drone by running or executing instructions, programs, code sets or instruction sets stored in the memory 92, and calling the data in the memory 92. Optionally, the processor 91 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programble Logic Array, PLA). The processor 91 can integrate one or more combinations of a central processing unit 91 (Central Processing Unit, CPU), an image processor 91 (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 91, but implemented by a single chip.
[0125] Among them, the memory 92 may include a random access memory 92 (Random Access Memory, RAM), and may also include a read-only memory 92 (Read-Only Memory). Optionally, the memory 92 includes a non-transitory computer-readable storage medium. The memory 92 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 92 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 92 may also be optionally at least one storage device located away from the aforementioned processor 91.
[0126] The present application also provides a storage medium that can store multiple instructions, which are suitable for the processor to load and execute the above-mentioned Figures 1 to 7 The method steps of the embodiment shown in the figure, and the specific execution process can be referred to as shown in the figure Figures 1 to 7 The specific description of the illustrated embodiment will not be repeated here.
[0127] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0128] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0129] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraint algorithm of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0130] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0132] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0133] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0134] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A method for detecting antenna interference sources based on a drone, characterized in that: The following steps are involved: Obtain an image of an antenna interference source to be detected taken by a drone and a preset antenna interference source recognition model, wherein the antenna interference source recognition model includes a convolution processing module, an attention module, a feature fusion module, and a detection module connected in sequence; Inputting the antenna interference source image to be detected into the convolution processing module for layer-by-layer convolution processing to obtain a convolution feature data set of the antenna interference source image to be detected, wherein the convolution feature data set includes convolution feature data of several scales output by several layers of convolution layers of the convolution processing module; Inputting the convolution feature data of the last scale of the antenna interference source image to be detected into the attention module for attention extraction to obtain the attention feature data of the antenna interference source image to be detected; Inputting the convolution feature data of several scales other than the convolution feature data of the last scale in the convolution feature data set of the antenna interference source image to be detected and the attention feature data into the feature fusion module for feature fusion to obtain feature fusion data of the antenna interference source image to be detected; The feature fusion data of the antenna interference source image to be detected is input into the detection module to perform antenna interference source detection, and antenna interference source detection data of the antenna interference source image to be detected is obtained, wherein the antenna interference source detection data includes antenna interference source type detection data and antenna interference source position detection data.
2. The method for detecting antenna interference sources based on a UAV according to claim 1, characterized in that: The attention module includes a deformation submodule and a compression submodule; The convolution feature data of the last scale of the image of the antenna interference source to be detected is input into the attention module for attention extraction to obtain the attention feature data of the image of the antenna interference source to be detected, including the steps of: Performing matrix transformation processing on the convolution feature data of the last scale to obtain attention score matrix data, inputting the attention score matrix data into the deformation submodule to perform matrix offset processing to obtain attention offset matrix data, wherein the attention score matrix data includes attention scores of several pixel regions, and the attention offset matrix data includes attention scores of several pixel regions after offset processing; Input the attention score matrix data and the attention offset matrix data into the compression submodule to extract and compress the attention similarity information, and obtain the attention compression matrix data and the pixel specific value data, wherein the attention compression matrix data includes the attention similarity scores between several target pixel regions, and the pixel region value data includes the pixel specific values with several of the target pixel regions; Attention feature data is obtained according to the attention compression matrix data, the pixel specific value data and a preset attention feature algorithm, wherein the attention feature algorithm is: To=Attention(A g ,value g ) In the formula, Att is the attention feature data, Attention() is the attention extraction function, and A g is the attention compression matrix data, value g Pixel specific value data.
3. The method for detecting antenna interference sources based on a UAV according to claim 2, characterized in that: The step of inputting the attention score matrix data into the deformation unit for matrix offset processing to obtain attention offset matrix data comprises the following steps: According to the attention score matrix data and a preset offset calculation algorithm, the offset data is obtained, wherein the offset calculation algorithm is: Δp=φ offset (query) Where Δp is the offset data, φ offset () is the offset calculation function, query is the attention score matrix data, query = xW q , x is the convolution feature data of the last scale, W q is the first linear projection weight parameter; Obtain reference feature point data corresponding to the convolution feature data of the last scale, and obtain attention offset matrix data according to the convolution feature data of the last scale, the reference feature point data, the offset data, and a preset attention offset matrix calculation algorithm, wherein the reference feature point data is used to record the initial position information of the feature values of several pixel areas in the convolution feature data, and the attention offset matrix calculation algorithm is: In the formula, is the attention offset matrix data, γ() is the bilinear difference function, p is the reference feature point data, is the mesh generation function.
4. The method for detecting antenna interference sources based on a UAV according to claim 3, characterized in that: The step of inputting the attention score matrix data and the attention offset matrix data into the compression unit to extract the attention similarity information and perform compression processing to obtain the attention compression matrix data and the pixel specific value data comprises the following steps: According to the offset matrix feature data and a preset key-value pair sampling algorithm, key-value pair data is obtained, wherein the key-value pair data includes key data and value data, and the key-value pair sampling algorithm is: In the formula, key is key data, value is value data, W k is the second linear projection weight parameter, W v is the third linear projection weight parameter; Attention similarity matrix data is obtained according to the key data, the attention score matrix data and the preset attention similarity matrix calculation algorithm, wherein the attention similarity matrix data is used to indicate the attention similarity scores between several pixel regions in the convolution feature data, and the attention similarity matrix calculation algorithm is: A=query·key T In the formula, A is the attention similarity matrix data, and T is the transposition symbol; According to the preset number of pixel areas, the attention similarity matrix data is compressed by adopting the maximum value search method to obtain attention compression matrix data and position index matrix data, and the value data is clustered according to the position index matrix data to extract the corresponding values of several target pixel areas in the value data as the pixel specific values to obtain the pixel specific value data, wherein the position index matrix data includes the position index data of the target pixel area associated with the target attention score matrix data, and the position index data is used to indicate the row data and column data of the pixel area.
5. The method for detecting antenna interference sources based on a UAV according to claim 1 or 4, characterized in that: The feature fusion module includes a downsampling submodule and an upsampling submodule; the downsampling submodule includes a number of downsampling units corresponding to the scale; the upsampling submodule includes a number of upsampling units corresponding to the scale; The convolution feature data of several scales other than the convolution feature data of the last scale in the convolution feature data set of the antenna interference source image to be detected and the attention feature data are input into the feature fusion module for feature fusion to obtain the feature fusion data of the antenna interference source image to be detected, including the steps of: Input the attention feature data of the last scale into the downsampling unit of the corresponding scale of the downsampling submodule for feature extraction to obtain the downsampling feature data of the last scale, concatenate the downsampling feature data of the last scale and the convolution feature data of the previous scale corresponding to the last scale, and use the concatenated result as the first input data, input it into the downsampling unit of the previous scale corresponding to the last scale for feature extraction to obtain the downsampling feature data of the previous scale, repeat this step to obtain the downsampling feature data output by the downsampling units corresponding to several scales; The down-sampled feature data output by the down-sampling sub-unit corresponding to the first scale is input into the up-sampling unit of the corresponding scale of the up-sampling sub-module for feature extraction to obtain the up-sampled feature data of the first scale, the up-sampled feature data of the first scale and the down-sampled feature data of the next scale corresponding to the first scale are spliced, and the result of the splicing processing is used as the second input data, which is input into the up-sampling unit of the next scale corresponding to the first scale for feature extraction to obtain the up-sampled feature data of the next scale, and this step is repeated to obtain the up-sampled feature data output by the up-sampling sub-modules corresponding to several scales, and the up-sampled feature data output by the up-sampling sub-modules corresponding to several scales are feature fused to obtain the feature fusion data of the image of the antenna interference source to be detected.
6. The method for detecting antenna interference sources based on a UAV according to claim 5, characterized in that: The downsampling unit includes a convolution subunit and a high-dimensional feature extraction subunit connected in sequence, and the downsampling unit of the last scale includes only a convolution subunit; The result after the splicing process is used as the first input data, and input into the downsampling unit of the previous scale corresponding to the last scale to extract features, so as to obtain the downsampling feature data of the previous scale, including the steps of: The first input data is input into the convolution subunit for convolution processing to obtain first subconvolution feature data, and the first subconvolution feature data is input into the high-dimensional feature extraction subunit, and high-dimensional feature data is obtained according to a preset high-dimensional feature extraction algorithm as the down-sampled feature data, wherein the high-dimensional feature extraction algorithm is: F AFE (x1)=F concat (F conv (x1) F bottleneck (F conv (x1))) In the formula, F AFE (x1) is the high-dimensional feature data, x1 is the first input data, F conv () is the convolution function, F bottleneck () is the backbone network feature extraction function, F concat () is the concatenation function.
7. The method for detecting antenna interference sources based on a UAV according to claim 5, characterized in that: The upsampling unit includes a convolution subunit and a low-dimensional feature extraction subunit connected in sequence, and the upsampling unit of the first scale includes only a convolution subunit; The result after the splicing process is used as the second input data, and input into the upsampling unit of the next scale corresponding to the first scale for feature extraction, so as to obtain the upsampling feature data of the next scale, comprising the steps of: The second input data is input into the convolution subunit for convolution processing to obtain second subconvolution feature data, and the second subconvolution feature data is input into the low-dimensional feature extraction subunit, and low-dimensional feature data is obtained according to a preset low-dimensional feature extraction algorithm as the up-sampled feature data, wherein the low-dimensional feature extraction algorithm is: F LFE (x2)=F EMA (F conv (x2)·F bottleneck (F conv (x2))) In the formula, F LFE (x2) is the high-dimensional feature data, x2 is the second input data, F EMA () is the expectation maximization attention extraction function.
8. An antenna interference source detection device based on a drone, characterized in that: include: A data acquisition module, used to obtain an image of an antenna interference source to be detected taken by a drone and a preset antenna interference source recognition model, wherein the antenna interference source recognition model includes a convolution processing module, an attention module, a feature fusion module and a detection module connected in sequence; A convolution feature extraction module, used to input the antenna interference source image to be detected into the convolution processing module for layer-by-layer convolution processing to obtain a convolution feature data set of the antenna interference source image to be detected, wherein the convolution feature data set includes convolution feature data of several scales output by several convolution layers of the convolution processing module; An attention feature extraction module, used for inputting the convolution feature data of the last scale of the antenna interference source image to be detected into the attention module for attention extraction, so as to obtain the attention feature data of the antenna interference source image to be detected; A feature processing module, used for inputting the convolution feature data of several scales other than the convolution feature data of the last scale in the convolution feature data set of the antenna interference source image to be detected and the attention feature data into the feature fusion module for feature fusion, so as to obtain the feature fusion data of the antenna interference source image to be detected; The antenna interference source detection module is used to input the feature fusion data of the antenna interference source image to be detected into the detection module to perform antenna interference source detection, and obtain antenna interference source detection data of the antenna interference source image to be detected, wherein the antenna interference source detection data includes antenna interference source type detection data and antenna interference source position detection data.
9. A computer device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor; when the computer program is executed by the processor, the steps of the method for detecting antenna interference sources based on a drone as described in any one of claims 1 to 7 are implemented.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the antenna interference source detection method based on a drone as described in any one of claims 1 to 7 are implemented.
