Disaster emergency unmanned aerial vehicle real-time image transmission and small target detection method and device
By employing a dual attention mechanism of global self-attention and cross-level cross-attention computation, the problem of insufficient global dependencies in multi-scale feature fusion is solved, enabling high-precision detection of small and dense targets.
Patent Information
- Application Number
- CN202611321038.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing target detection networks struggle to effectively capture global dependencies between distant spatial locations during multi-scale feature fusion, leading to feature information attenuation or being submerged by background noise for small or dense targets in complex contexts, thus affecting detection accuracy.
A dual attention mechanism is adopted, which establishes global and cross-level associations between multi-scale features through single-path global self-attention calculation and bidirectional cross-level cross attention calculation, respectively, and fuses features element by element to enhance target detection.
It significantly improves the feature representation ability of small and dense targets in complex backgrounds, thereby enhancing the accuracy and robustness of target detection.
Smart Images

Figure CN123182071A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer vision and image processing, specifically to a method and device for real-time image transmission and small target detection of disaster emergency drones. Background Technology
[0002] In scenarios such as drone aerial photography, disaster emergency monitoring, and autonomous driving, target detection technology is a crucial link in achieving environmental perception and intelligent decision-making. Existing target detection networks typically employ a backbone network to extract multi-scale features and then fuse these features through a neck network to accommodate the detection needs of targets of different sizes. However, when performing multi-scale feature interactions, traditional neck networks mainly rely on convolutional operations to model local regions, resulting in a relatively limited receptive field and difficulty in effectively capturing global dependencies between distant spatial locations. Furthermore, features at different levels are often fused through simple concatenation or addition, lacking in-depth mining and adaptive filtering mechanisms to explore the intrinsic connections between shallow spatial details and deep semantic information. This leads to feature information attenuation or being submerged by background noise during layer-by-layer transmission, especially for small or densely packed targets with extremely low pixel counts, in complex backgrounds, resulting in missed or false detections and limiting further improvements in detection accuracy. Summary of the Invention
[0003] To address the shortcomings of existing technologies in multi-scale feature fusion, such as insufficient global dependency modeling capabilities and limited cross-level feature association representation, this application proposes a real-time image transmission and small target detection method for disaster emergency drones, which enables deep adaptive fusion of multi-scale features and high-precision target detection.
[0004] To achieve the above objectives, this application adopts the following technical solution:
[0005] A method for real-time image transmission and small target detection using a disaster emergency drone includes: acquiring multi-scale features of an image to be detected, wherein the multi-scale features include first-level features and second-level features; performing single-path global self-attention calculation on the first-level features and the second-level features respectively to obtain first global association features and second global association features; performing bidirectional cross-level cross-attention calculation based on the first-level features and the second-level features to obtain first cross-attention features and second cross-attention features; fusing the first global association features and the first cross-attention features element-wise, and fusing the second global association features and the second cross-attention features element-wise to obtain adaptive fusion features; and performing target detection based on the adaptive fusion features to output target detection results.
[0006] Optionally, the step of performing single-path global self-attention calculation on the first-level features and the second-level features respectively to obtain the first global association feature and the second global association feature includes: mapping the first-level features and the second-level features to a unified embedding feature space respectively to obtain the first embedding feature and the second embedding feature; generating corresponding query matrices, key matrices and value matrices based on the first embedding feature and the second embedding feature respectively; and obtaining the first global association feature and the second global association feature through self-attention calculation based on the query matrix, the key matrix and the value matrix, satisfying:
[0007]
[0008] in, ,when hour For the first global association feature, when hour This is the second global association feature. , and The first The query matrix, key matrix, and value matrix corresponding to each level of feature. The feature dimensions for query vectors and key vectors.
[0009] Optionally, the bidirectional cross-level cross-attention calculation based on the first-level features and the second-level features yields a first cross-attention feature and a second cross-attention feature, satisfying:
[0010]
[0011]
[0012] in, This is the first cross-attention feature. This is the second cross-attention feature;
[0013] The step of fusing the first global association feature and the first cross-attention feature element-wise, and fusing the second global association feature and the second cross-attention feature element-wise, to obtain an adaptive fusion feature, includes: multiplying the first global association feature and the first cross-attention feature element-wise, and multiplying the second global association feature and the second cross-attention feature element-wise, to obtain a first enhanced fusion feature and a second enhanced fusion feature, satisfying:
[0014]
[0015]
[0016] in, For the first enhanced fusion feature, This is the second enhanced fusion feature. This indicates element-wise multiplication;
[0017] The first enhanced fusion feature and the second enhanced fusion feature are concatenated along the channel dimension, and the adaptive fusion feature is obtained through convolutional mapping, satisfying the following:
[0018]
[0019] in, For the adaptive fusion feature, This indicates splicing along the channel dimension. express Convolution mapping.
[0020] Optionally, the step of obtaining multi-scale features of the image to be detected includes: inputting the image to be detected into the backbone feature extraction part of the target detection network to extract image features at different levels; inputting the image features at different levels into the neck multi-scale feature fusion part of the target detection network for multi-scale feature transfer; and obtaining the first-level feature and the second-level feature at the fusion position of two different-level features in the neck multi-scale feature fusion part.
[0021] The step of performing target detection based on the adaptive fusion features and outputting target detection results includes: inputting the adaptive fusion features into the subsequent network of the neck multi-scale feature fusion part, inputting the processed features into the detection head of the target detection network, and outputting the target location, target category, and confidence level.
[0022] Optionally, before inputting the image to be detected into the backbone feature extraction part of the target detection network, the method further includes: acquiring continuous video of the disaster area via a drone and encoding the video to form a video stream; transmitting the video stream to a ground receiver via a wireless image transmission link and inputting it into an edge computing terminal via a video acquisition interface; and having the edge computing terminal acquire video images frame by frame and adjust them to the input size of the target detection network as the image to be detected.
[0023] Optionally, after outputting the target location, target category, and confidence level, the method further includes: for candidate detection boxes, removing candidate detection boxes with a confidence level lower than a preset confidence threshold, wherein the preset confidence threshold is 0.15 to 0.25; suppressing duplicate candidate detection boxes of the same category according to a preset intersection-union ratio (IU) threshold, wherein the preset IU threshold is 0.45 to 0.55; and synchronously superimposing the filtered candidate detection boxes, the target category, and the confidence level with the corresponding real-time video frames.
[0024] Optionally, the target detection network is trained using drone aerial image data, with the input image size set to 640×640 pixels. A stochastic gradient descent optimizer is used to update the network parameters, with an initial learning rate of 0.01, momentum of 0.937, weight decay coefficient of 0.0005, and 300 training epochs. The trained target detection network is then compiled into an inference engine file adapted for operation on the edge computing terminal.
[0025] Furthermore, this application also provides a real-time image transmission and small target detection device for disaster emergency drones, comprising: a feature acquisition module for acquiring multi-scale features of the image to be detected, the multi-scale features including first-level features and second-level features; a dual attention fusion module for performing single-path global self-attention calculation on the first-level features and the second-level features respectively to obtain a first global association feature and a second global association feature; performing bidirectional cross-level cross-attention calculation based on the first-level features and the second-level features to obtain a first cross-attention feature and a second cross-attention feature; fusing the first global association feature and the first cross-attention feature element-wise, and fusing the second global association feature and the second cross-attention feature element-wise to obtain an adaptive fusion feature; and a target detection module for performing target detection based on the adaptive fusion feature and outputting the target detection result.
[0026] In addition, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the target detection method as described above.
[0027] In addition, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the target detection method as described above.
[0028] Beneficial effects:
[0029] The object detection method, apparatus, device, and medium provided in this application introduce a dual attention mechanism in the feature fusion stage. First, it utilizes single-path global self-attention computation to establish global dependencies within the first-level and second-level features respectively, overcoming the limitation of traditional convolution operations that can only capture local information. This allows feature responses belonging to the same target but spatially dispersed to be effectively aggregated, enhancing the internal consistency of feature expression. Second, through bidirectional cross-level cross-attention computation, one feature is used as the query, and the other as the key and value for bidirectional interaction, achieving deep alignment and complementarity between shallow spatial detail information and deep semantic information, solving the problem of insufficient cross-level feature association in simple concatenation methods. More importantly, this application fuses single-path global association features with corresponding cross-level cross-attention features element-wise (corresponding element-wise multiplication). This fusion method acts as an adaptive gating filter: only when a feature position has strong global relevance within the modality and strong semantic correspondence across levels will the response at that position be retained and enhanced; conversely, if there is only a response in one aspect but no corresponding support in the other (such as background noise or isolated texture), it will be suppressed. The adaptive fusion features obtained by channel concatenation and convolutional mapping significantly improve the feature representation ability of small and dense targets in complex backgrounds, thereby improving the accuracy and robustness of target detection. Attached Figure Description
[0030] Figure 1 This is a schematic flowchart of the target detection method according to an embodiment of this application;
[0031] Figure 2 This is a schematic diagram of the drone video acquisition, transmission, and edge detection process according to an embodiment of this application;
[0032] Figure 3 This is a schematic diagram of the self-attention processing flow in the dual-attention adaptive feature fusion module of this application embodiment;
[0033] Figure 4 This is a Precision-Recall curve of the native YOLO11 object detection model in this application embodiment;
[0034] Figure 5 This is a Precision-Recall curve of the target detection model after introducing the dual attention adaptive feature fusion module in an embodiment of this application. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.
[0037] Example 1
[0038] like Figure 1 As shown, this embodiment provides a method for real-time image transmission and small target detection using a disaster emergency drone. This method adaptively fuses multi-scale features through a dual attention mechanism to enhance target detection performance. The target detection method includes the following steps.
[0039] Step S100: Obtain multi-scale features of the image to be detected. These multi-scale features include first-level features and second-level features. Specifically, the image to be detected can be two-dimensional image data from any source, such as surveillance video frames, medical images, or remote sensing images. Multi-scale features refer to feature representations extracted from the image to be detected that have different spatial resolutions or different levels of semantic abstraction. In this embodiment, the first-level features and second-level features are merely exemplary representations of two different levels of features in the multi-scale features, and do not specifically refer to a fixed level in the network. For example, the first-level features can be shallow, high-resolution features that retain more spatial details such as edges and textures, while the second-level features can be deep, low-resolution features that contain strong category semantics but have a smaller spatial size; or conversely, the first-level features are deep features, and the second-level features are shallow features. It should be understood that as long as the two features differ in scale or semantic level, they can both be used as processing objects in this embodiment. This hierarchical definition allows this method to adapt to various neural network architectures with multi-scale feature extraction capabilities.
[0040] Step S200 involves performing single-path global self-attention calculations on the first-level and second-level features respectively to obtain the first and second globally associated features. Specifically, the single-path global self-attention calculation is an independent intra-modal processing procedure for each feature path. For the first-level features, long-distance spatial dependencies are captured by calculating the correlation between all spatial locations within them, thereby generating the first globally associated feature. Similarly, the same processing is performed on the second-level features to generate the second globally associated feature. The core function of this step is to overcome the limitation of traditional convolutional operations, which can only perceive local receptive fields, and to effectively aggregate feature responses belonging to the same target but spatially dispersed. For example, when the features of the target to be detected are spatially discontinuous due to occlusion or pose changes, the global self-attention mechanism can still associate these discrete feature fragments, enhance the internal consistency of feature expression, and provide a high-quality local feature benchmark for subsequent fusion.
[0041] Step S300 involves performing bidirectional cross-level cross-attention calculation based on the first-level and second-level features to obtain the first and second cross-attention features. Specifically, this bidirectional cross-level cross-attention calculation is a crucial step in establishing the association between two different levels of features, comprising two parallel computational branches. In one branch, attention is calculated using the first-level feature as the query vector and the second-level feature as the key and value vectors, resulting in the first cross-attention feature. This feature represents the relevant semantic information retrieved from the second-level feature from the perspective of the first-level feature. In the other branch, the roles are reversed; the second-level feature is used as the query vector to obtain relevant spatial detail information from the first-level feature, resulting in the second cross-attention feature. This bidirectional interaction mechanism achieves deep alignment and complementarity between shallow spatial details and deep semantic information, solving the problem of insufficient cross-level feature association in simple concatenation methods, and enabling the two features to guide each other in both semantic and spatial dimensions.
[0042] Step S400 involves fusing the first global correlation feature and the first cross-attention feature element-wise, and fusing the second global correlation feature and the second cross-attention feature element-wise to obtain an adaptive fused feature. Specifically, element-wise fusion is the key action in this embodiment that distinguishes it from traditional feature concatenation or addition; it is essentially a joint gating screening mechanism. For the first-path feature, the first global correlation feature obtained in step S200 and the first cross-attention feature obtained in step S300 are multiplied element-wise at their corresponding spatial positions; similarly, the two corresponding outputs of the second-path feature are multiplied element-wise. The physical meaning of this operation is that the response value of a feature position is only preserved and enhanced when it has strong global relevance within the modality (i.e., the position is identified as important in this path of features) and strong semantic correspondence across levels (i.e., the position also finds matching information in another path of features). Conversely, if a position only generates a response from background noise, isolated textures, or irrelevant interference, its fused response will be significantly suppressed because it cannot obtain high weight support in both attention branches simultaneously. Finally, the enhanced features, after dual verification, are recombined through channels to form adaptive fusion features, thereby achieving accurate purification of effective target features.
[0043] Step S500: Target detection is performed based on adaptive fusion features, and the target detection result is output. Specifically, the adaptive fusion features integrate multi-scale information enhanced by dual attention. This information is input into the subsequent detection network for regression and classification prediction, yielding a detection result containing the target location, category, and confidence level. Since the preceding steps have effectively enhanced the feature representation of small and dense targets and suppressed interference from complex backgrounds, the detection result output in this step shows significant improvements in both accuracy and robustness. It should be understood that the target detection method described in this embodiment is a general functional framework. Its execution entity can be any computer device with data processing capabilities, such as a server, edge computing device, or embedded terminal, and it does not depend on a specific front-end data acquisition method or back-end application logic. This provides a solid foundation for the implementation of subsequent embodiments in specific scenarios.
[0044] Example 2
[0045] like Figure 3 As shown, this embodiment, based on Embodiment 1, further defines the specific computational logic and mathematical implementation of dual-attention adaptive feature fusion. This process, through rigorous formulaic calculations, transforms the abstract attention mechanism into an executable feature enhancement method, specifically including the following steps.
[0046] Step S201: Map the first-level features and the second-level features to a unified embedding feature space, respectively, to obtain the first embedding features and the second embedding features. Specifically, the two input features enter the fusion module. and Although they come from different layers of the same network, they may differ in numerical distribution or feature representation. This can be addressed through the PatchEmbedding mapping function. Process the two features to satisfy ,in , For the first The first embedding feature is used to align the feature dimensions. More importantly, it transforms features from different levels into the same semantic metric space, providing a comparable basis for subsequent calculation of attention weights. Then, the corresponding query matrix, key matrix, and value matrix are generated based on the first and second embedding features, respectively. Specifically, this is achieved through linear projection operations. , , Generate three sets of matrices, where , and The first The learnable projection matrix corresponding to the road features. Query matrix. The key matrix represents "what information is being sought" at the current feature location. The value matrix represents "what information this location possesses". This carries the "actual information content being transmitted." This decoupled design allows the model to flexibly learn the correlation patterns between features, rather than simply relying on the direct interaction of the original feature values.
[0047] Step S202: Based on the query matrix, key matrix, and value matrix, the first global association feature and the second global association feature are calculated through self-attention. This calculation process satisfies the following formula:
[0048]
[0049] in, ,when hour As the first global association feature, when hour This is the second global association feature. This refers to the feature dimensions of the query vector and key vector. Specifically, The similarity score between all spatial locations within the same feature path was calculated and divided by Scale normalization is performed to prevent the dot product result from becoming too large, causing the Softmax function to enter the gradient saturation region, thus ensuring training stability. The Softmax operation transforms the similarity score into attention weights in the form of a probability distribution, and finally adjusts the value matrix. Weighted summation is performed. The physical significance of this process is that it breaks the local receptive field limitation of convolution operations, allowing feature fragments belonging to the same target but spatially dispersed (such as the head and feet of an occluded pedestrian) to establish direct global dependencies, thereby enhancing the semantic consistency within a single feature path.
[0050] Step S203 involves performing bidirectional cross-level cross-attention calculation based on the first-level and second-level features to obtain the first cross-attention feature and the second cross-attention feature. This step employs a bidirectional interaction mechanism, specifically satisfying the following two formulas:
[0051]
[0052]
[0053] in, Let be the first cross-attention feature, representing the query matrix with the first-path features. To retrieve the key of the second feature Sum ; The second cross-attention feature represents the query matrix with the second-path features. To retrieve the key of the first feature Sum Specifically, this bidirectional design is not a simple symmetrical operation, but rather has a clear complementary orientation: if the first path contains shallow, high-resolution features and the second path contains deep, low-resolution features, then... By leveraging deep semantics to guide the selection of shallow details, shallow features can identify which edge textures belong to the true target; and This approach utilizes shallow spatial information to supplement the localization gaps in deep features, recovering small target location clues lost due to downsampling. Together, these two methods achieve deep alignment and bidirectional enhancement of cross-layer information.
[0054] Step S204 involves fusing the first global association feature and the first cross-attention feature element-wise, and then fusing the second global association feature and the second cross-attention feature element-wise to obtain the adaptive fused feature. This is the core step that distinguishes this embodiment from traditional feature concatenation or addition methods, and its specific calculation satisfies:
[0055]
[0056]
[0057] in, As the first enhanced fusion feature, As the second enhanced fusion feature, This indicates element-wise multiplication. Specifically, element-wise multiplication here plays a crucial "joint gating" role. Unlike additive fusion, which indiscriminately adds all signals, multiplicative fusion requires a feature location to be deemed "important" in both dimensions to retain a high response value: that is, the location must be self-attention within the modality. It is identified as part of the goal (with global consistency) and needs to cross attention across levels. Find the corresponding semantic or spatial support (with cross-scale validation). Conversely, if a location only responds to background noise, isolated textures, or irrelevant interference, the fused value will be significantly suppressed or even reduced to zero because it cannot simultaneously obtain high-weight support from both attention branches. This mechanism effectively purifies small target features from complex backgrounds and is the key microscopic mechanism by which this scheme improves detection accuracy. Finally, the first and second enhanced fusion features are concatenated along the channel dimension and an adaptive fusion feature is obtained through convolutional mapping, satisfying:
[0058]
[0059] in, For the final adaptive fusion features, This indicates splicing along the channel dimension. express Convolutional mapping. The concatenation operation merges two double-validated enhanced features, and then... Convolution performs the function of reorganizing and reducing the dimensionality of channel information. It not only eliminates channel redundancy caused by splicing, but also promotes nonlinear interaction of cross-channel information, making the output features more efficient. It can seamlessly integrate with subsequent detection networks, effectively transferring data from feature enhancement to object detection. Example 3
[0060] This embodiment, based on Embodiments 1 and 2, further provides a specific application scenario implementation for real-time detection of disaster emergency drones. In this scenario, the aforementioned target detection method is deployed at an edge computing end to process the real-time video stream of the disaster site transmitted back by the drone, so as to achieve accurate identification of small targets such as people and vehicles in complex environments such as ruins and roads.
[0061] Specifically, the process of acquiring multi-scale features of the image to be detected is completed collaboratively by the backbone feature extraction part and the neck multi-scale feature fusion part of the target detection network. In this embodiment, the target detection network adopts the YOLO11 architecture, and a dual attention adaptive feature fusion module (DAAFM) is embedded at the fusion position of two different levels of features in its neck multi-scale feature fusion part. The image to be detected is first input into the backbone feature extraction part, which extracts shallow features containing rich spatial details and deep features containing strong semantic information level by level; these image features of different levels are then passed into the neck multi-scale feature fusion part. When the data stream reaches the preset fusion node, the system extracts the current first-level and second-level features as input to the DAAFM. The adaptive fusion features obtained after DAAFM processing are not directly used for prediction, but are sent back to the subsequent network of the neck multi-scale feature fusion part for further transmission, and finally input into the detection head to output the target location, target category and confidence score. This embedded design allows DAAFM to be seamlessly integrated into existing detection frameworks. Without changing the overall inference process, it specifically enhances the multi-scale feature interaction process, effectively solving the problem of easy attenuation of small target features in disaster aerial images.
[0062] In the data acquisition phase, this embodiment constructs a complete real-time link from aerial acquisition to ground-based edge inference. Continuous video of the disaster area is acquired by a drone and encoded in H.264 or H.265 format to form a low-bitrate video stream. This video stream is transmitted to the ground receiver via a 5.8GHz wireless transmission link and input to the edge computing terminal via an HDMI video capture interface. The edge computing terminal acquires video images frame by frame and adjusts them to a 640×640 pixel target detection network input size as the images to be detected. Specifically, the FPV digital transmission camera mounted on the drone continuously acquires video of the disaster area. The encoded stream is transmitted via a wireless link with a unified frequency (e.g., 5805MHz) and bandwidth (e.g., 20MHz). After the ground receiver recovers the signal, it converts it into a video stream readable by the edge computing device via an HDMI capture card. This closed-loop architecture of "aerial acquisition-wireless transmission-local inference" avoids the high latency and bandwidth bottlenecks caused by uploading high-definition video to the cloud, ensuring real-time monitoring capabilities are maintained even at disaster sites with limited network conditions. Meanwhile, fixing the input size to 640×640 pixels is a balance between detection accuracy and edge inference speed, which can retain sufficient resolution for small targets and adapt to the computing power specifications of mainstream edge chips.
[0063] After outputting the target location, target category, and confidence score, specific post-processing filtering is performed on the candidate detection boxes. Candidate detection boxes with confidence scores below a preset confidence threshold (0.15–0.25) are removed. Duplicate candidate detection boxes of the same category are suppressed according to a preset intersection-over-union (IoU) threshold (0.45–0.55). The filtered candidate detection boxes, target categories, and confidence scores are then synchronously overlaid with the corresponding real-time video frames and output. Unlike the higher confidence thresholds in conventional scenarios, this embodiment specifically lowers the confidence threshold to 0.15 to minimize missed detections and ensure that rescue clues are not overlooked, considering the extremely low pixel proportion and blurred features of small targets in disaster ruins. The IoU threshold of 0.45–0.55 balances the differentiation of adjacent individuals in densely populated areas with the suppression of duplicate boxes of the same target. For example, when multiple disaster victims are closely clustered together, a suitable IoU threshold can prevent the loss of true targets due to excessive suppression, while also preventing multiple labeling of the same person. Ultimately, the test results are overlaid on the video frames in real time in a visual format, providing an intuitive basis for command and decision-making.
[0064] To ensure the model's efficiency and detection accuracy at the edge, the object detection network was specifically trained using drone aerial imagery. The input image size was set to 640×640 pixels. A stochastic gradient descent (SGD) optimizer was used to update the network parameters, with an initial learning rate of 0.01, momentum of 0.937, weight decay coefficient of 0.0005, and 300 training epochs. The trained object detection network was then compiled into an inference engine file adapted for edge computing. Specifically, the training dataset covered 10 typical disaster-related targets, including pedestrians, vehicles, and tricycles. Through 300 iterations, the projection matrix and convolution parameters within the DAAFM converged to their optimal state. The SGD optimizer, combined with specific momentum and weight decay parameters, enhanced the model's generalization ability while ensuring convergence stability. After training, the model was converted to inference engine formats such as TensorRT or ONNX Runtime to fully utilize the GPU acceleration units of edge computing devices, achieving millisecond-level single-frame inference. Figure 4 and Figure 5 The comparative test results shown verify the effectiveness of this implementation scheme: on the same test set, the mAP@0.5 of the native YOLO11 model is 34.0%, while the mAP@0.5 of the model trained with DAAFM and the above parameters is improved to 36.2%. This non-linear accuracy gain indicates that the synergistic effect of specific parameter configuration and dual attention mechanism significantly improves the detection performance of small and dense targets in disaster scenarios, rather than something that can be achieved by simple model replacement.
[0065] Example 4
[0066] This embodiment provides a real-time image transmission and small target detection device for disaster emergency drones. The device adopts a modular architecture design to execute the target detection method described in Embodiment 1. It should be understood that the modules in this embodiment are functional units implemented based on computer programs, rather than necessarily relying on specific physical hardware circuits; they can run on general-purpose processors, graphics processors, or dedicated artificial intelligence chips.
[0067] The feature acquisition module is used to acquire multi-scale features of the image to be detected, including first-level features and second-level features. Specifically, the feature acquisition module functionally corresponds to step S100 in the method embodiment. In actual deployment, this module can be represented as the backbone feature extraction network of a deep convolutional neural network, or a composite component including preprocessing and multi-level feature extraction. It is responsible for converting the input raw image data into feature representations with different spatial resolutions and semantic abstraction levels. For example, this module can output shallow features that retain rich edge texture information as first-level features, and simultaneously output deep features containing strong class semantic information as second-level features, providing a data foundation for subsequent dual attention processing.
[0068] The dual attention fusion module performs single-path global self-attention calculations on the first-level features and the second-level features respectively to obtain first global association features and second global association features; it then performs bidirectional cross-level cross-attention calculations based on the first-level features and the second-level features to obtain first cross-attention features and second cross-attention features; finally, it fuses the first global association features and the first cross-attention features element-wise, and also fuses the second global association features and the second cross-attention features element-wise to obtain adaptive fusion features. Specifically, the dual attention fusion module is the core processing unit of the device in this application, and its internal logic is further subdivided into a self-attention unit, a cross-attention unit, and an element-wise fusion unit. The self-attention unit is configured to perform global dependency modeling within a modality, enhancing the internal consistency of features by calculating the correlation of all spatial locations within the same feature path. The cross-attention unit is configured to perform bidirectional interaction between modalities, using the query vector of one feature path to retrieve the key-value information of another feature path, thereby aligning shallow details with deep semantics. The element-wise fusion unit is configured to perform corresponding element-wise multiplication, which plays a crucial joint gating and filtering role. Only when a feature location is deemed important both within the modality and across modalities will its response be retained and enhanced, effectively suppressing background noise and refining small target features. The overall data processing flow of this module strictly corresponds to steps S200 to S400 in the method embodiment, ensuring the complete implementation of the feature enhancement mechanism at the device level.
[0069] The object detection module is used to perform object detection based on adaptive fusion features and output object detection results. Specifically, the object detection module functionally corresponds to step S500 in the method embodiment. It receives the adaptive fusion features processed by the dual attention fusion module and inputs them into the detection head or subsequent regression classification network. This module is responsible for parsing the enhanced feature information and generating detection results containing target location coordinates, category labels, and confidence scores. Because the input features have been adaptively filtered and enhanced, the object detection module can significantly reduce the false negative rate and false positive rate when facing small or dense targets in complex backgrounds, thus improving the overall detection performance.
[0070] Through the modular architecture described above, this embodiment transforms the abstract methodology into a concrete product form. The modules are cascaded through clearly defined data interfaces, forming a complete data flow loop from feature extraction and dual attention fusion to target output. This virtual device description not only covers the protected object of the software product but also avoids the narrowing of the protection scope caused by limiting specific hardware models. This allows the technical solution of this application to flexibly adapt to various computing platforms such as cloud servers, edge computing boxes, or embedded terminals, while also reserving ample explanatory space for possible subsequent hardware acceleration optimizations.
[0071] Example 5
[0072] This embodiment provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the target detection method described in any of the preceding embodiments 1 to 4. Specifically, this computer device constitutes the physical carrier of the technical solution of this application at the hardware level. The memory can be a non-volatile or volatile storage unit such as a read-only memory, random access memory, disk, or optical disk, used to persistently or temporarily store the program code and model parameters that implement the dual attention adaptive feature fusion and target detection logic. The processor can be a chip with data processing capabilities such as a central processing unit, graphics processing unit, neural network processor, or application-specific integrated circuit. It communicates with the memory via a bus and reads program instructions during runtime, transforming the abstract steps of feature acquisition, single-channel global self-attention calculation, bidirectional cross-level cross-attention calculation, element-by-element fusion, and target detection output in the preceding embodiments into specific electrical signal processing and numerical calculation processes. For example, in a disaster emergency monitoring scenario, this computer device can specifically manifest as an edge computing terminal deployed on the ground, which loads a compiled inference engine file internally, enabling it to process video streams transmitted from drones in real time and output detection results without relying on a cloud server. This hardware architecture ensures that the method described in this application can operate stably in real-world conditions where computing power is limited but real-time requirements are extremely high.
[0073] This embodiment also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the target detection method described in any one of Embodiments 1 to 4 above. Specifically, this storage medium is an independent protected object of this application's technical solution at the software distribution and circulation level. Computer-readable storage media include, but are not limited to, any tangible or intangible medium capable of carrying digital information, such as USB flash drives, portable hard drives, read-only memory, random access memory, magnetic disks, optical disks, flash memory chips, or cloud server storage space. When the medium is connected to a computer device or downloaded over a network, the computer program stored thereon instructs the processor to execute the target detection method of this application. This means that even without assembling a complete computer device, simply manufacturing, selling, or offering to sell a medium storing the specific program falls within the protection scope of this application. Through the above-described layout of computer devices and readable storage media, this application achieves comprehensive coverage from method flow and virtual devices to physical hardware and software carriers, providing a solid legal foundation and technical support for subsequent possible infringement determination and rights protection evidence collection.
[0074] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for real-time image transmission and small target detection using a disaster emergency drone, characterized in that, include: Obtain multi-scale features of the image to be detected, wherein the multi-scale features include first-level features and second-level features; Single-path global self-attention calculation is performed on the first-level features and the second-level features respectively to obtain the first global association features and the second global association features; Based on the first-level features and the second-level features, bidirectional cross-level cross-attention calculation is performed to obtain the first cross-attention feature and the second cross-attention feature; The first global association feature and the first cross-attention feature are fused element by element, and the second global association feature and the second cross-attention feature are fused element by element to obtain an adaptive fusion feature; Target detection is performed based on the adaptive fusion features, and the target detection results are output.
2. The target detection method according to claim 1, characterized in that, The step of performing single-path global self-attention calculation on the first-level features and the second-level features respectively to obtain the first global association features and the second global association features includes: The first-level features and the second-level features are mapped to a unified embedding feature space to obtain the first embedding feature and the second embedding feature; Generate corresponding query matrix, key matrix, and value matrix based on the first embedding feature and the second embedding feature, respectively; Based on the query matrix, the key matrix, and the value matrix, the first global association feature and the second global association feature are obtained through self-attention calculation, satisfying: in, ,when hour For the first global association feature, when hour This is the second global association feature. , and The first The query matrix, key matrix, and value matrix corresponding to each level of feature. The feature dimensions for query vectors and key vectors.
3. The target detection method according to claim 2, characterized in that, The bidirectional cross-level cross-attention calculation based on the first-level features and the second-level features yields the first cross-attention feature and the second cross-attention feature, satisfying the following: in, This is the first cross-attention feature. This is the second cross-attention feature; The step of fusing the first global association feature and the first cross-attention feature element-wise, and fusing the second global association feature and the second cross-attention feature element-wise, to obtain an adaptive fusion feature, includes: Multiply the first global association feature by the first cross-attention feature element-wise, and multiply the second global association feature by the second cross-attention feature element-wise, to obtain the first enhanced fusion feature and the second enhanced fusion feature, satisfying: in, For the first enhanced fusion feature, This is the second enhanced fusion feature. This indicates element-wise multiplication; The first enhanced fusion feature and the second enhanced fusion feature are concatenated along the channel dimension, and the adaptive fusion feature is obtained through convolutional mapping, satisfying the following: in, For the adaptive fusion feature, This indicates splicing along the channel dimension. express Convolution mapping.
4. The target detection method according to claim 3, characterized in that, The acquisition of multi-scale features of the image to be detected includes: The image to be detected is input into the backbone feature extraction part of the target detection network to extract image features at different levels; The image features at different levels are input into the neck multi-scale feature fusion part of the target detection network for multi-scale feature transfer. At the fusion location of two different levels of features in the multi-scale feature fusion section of the neck, the first level feature and the second level feature are obtained; The target detection based on the adaptive fusion features, and the output of the target detection result, include: The adaptive fusion features are input into the subsequent network of the neck multi-scale feature fusion part, and the processed features are input into the detection head of the target detection network to output the target location, target category and confidence level.
5. The target detection method according to claim 4, characterized in that, Before inputting the image to be detected into the backbone feature extraction part of the target detection network, the method further includes: The video stream is generated by collecting continuous video of the disaster area using drones and encoding the video. The video stream is transmitted to the ground receiver via a wireless image transmission link and then input to the edge computing terminal through a video acquisition interface. The edge computing terminal acquires video images frame by frame and adjusts them to the input size of the target detection network, which are then used as the images to be detected.
6. The target detection method according to claim 5, characterized in that, After outputting the target location, target category, and confidence level, the following is also included: For candidate detection boxes, those with a confidence level lower than a preset confidence threshold are removed. The preset confidence threshold is 0.15 to 0.
25. Duplicate candidate detection boxes of the same category are suppressed according to a preset intersection-union ratio (IU) threshold, wherein the preset IU threshold is 0.45 to 0.55; The selected candidate detection boxes, the target category, and the confidence score are synchronously superimposed and output with the corresponding real-time video frames.
7. The target detection method according to claim 6, characterized in that, The target detection network is trained using drone aerial target data. The input image size is set to 640×640 pixels. The network parameters are updated using a stochastic gradient descent optimizer. The initial learning rate is set to 0.01, the momentum is set to 0.937, the weight decay coefficient is set to 0.0005, and the number of training rounds is set to 300. The trained object detection network is compiled into an inference engine file adapted for operation on the edge computing device.
8. A real-time image transmission and small target detection device for disaster emergency unmanned aerial vehicles (UAVs), characterized in that, include: The feature acquisition module is used to acquire multi-scale features of the image to be detected, wherein the multi-scale features include first-level features and second-level features; The dual attention fusion module is used to perform single-path global self-attention calculation on the first-level features and the second-level features respectively to obtain the first global association features and the second global association features; Based on the first-level features and the second-level features, bidirectional cross-level cross-attention calculation is performed to obtain the first cross-attention feature and the second cross-attention feature; the first global association feature and the first cross-attention feature are fused element by element, and the second global association feature and the second cross-attention feature are fused element by element to obtain the adaptive fusion feature; The target detection module is used to perform target detection based on the adaptive fusion features and output the target detection results.
9. A computer device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the target detection method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the target detection method as described in any one of claims 1 to 7.
