A method for detecting infrared drone swarms based on state space model
Through the infrared UAV swarm detection method based on the state space model, the MOLO network and VSS-D feature extraction module are designed, combined with multi-scale feature extraction and auxiliary reversible branches, to solve the problems of low accuracy and large calculation amount in infrared UAV swarm detection. , achieving high-speed and high-precision detection of multi-scale and multi-targets, especially the performance improvement of small target detection in harsh environments.
Patent Information
- Application Number
- CN202410964490.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-18
AI Technical Summary
The existing technology has the problems of low detection accuracy, large amount of calculation and poor real-time performance in infrared UAV swarm detection. In particular, it is difficult to detect small fuzzy targets at long distances and in harsh environments.
Using the infrared UAV swarm detection method based on the state space model, a new target detection network MOLO is designed. Combined with the idea of the visual state space model, through the VSS-D feature extraction module, multi-scale feature extraction and auxiliary reversible branches, a composite Loss function is trained to improve detection accuracy and real-time performance.
It achieves high-speed and high-precision detection of multi-scale and multi-targets in infrared images, especially the detection performance of small targets at long distances and harsh environments is significantly improved, solving the problems of limited receptive fields and high computational complexity in traditional methods. .
Smart Images

Figure CN118506222B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of target detection, and in particular to an infrared drone swarm detection method based on a state space model. Background Art
[0002] Drone swarm detection technology is currently divided into radar detection, radio spectrum detection, visual system detection and sound wave detection. However, due to economic cost, detection distance and difficulty of implementation, visual system detection has a greater advantage. Among them, visual technology detection of drones is divided into infrared detection and visible light detection technology. However, due to the limitations of the visual system under harsh conditions such as low visibility and night vision, the visible light detection performance is poor. The infrared detection system has significantly better working performance at night and in harsh environments. At the same time, it has many advantages such as strong concealment, all-weather forward and night vision, and strong penetration. Compared with the detection of drone swarms during the day and without obstructions, detection at night and in complex environments is more difficult and tricky. Therefore, the research on detecting drone swarms using infrared image target detection technology is promising and of great significance.
[0003] The current mainstream target detection algorithms include one-stage and two-stage target detection algorithms. The two-stage target detection network generates candidate boxes first, and then classifies and locates them through a neural network. This type of algorithm generally has a high accuracy rate, but it is slow because it requires two stages of calculation. Typical representatives are Mask-RCNN, Faster-RCNN, etc. The one-stage target detection network directly generates candidate target boxes densely on the input image, and uses a classifier to classify these boxes and regress the bounding box. Since there is only one stage, the speed is fast and the real-time performance is very good. Typical representatives are SSD and YOLO series. YoloV9 not only absorbs the advantages of the previous algorithms after several iterations, but also innovatively proposes the concept of programmable gradient information, which greatly improves the accuracy of the detection results without increasing the inference time. However, the traditional CNN-based visual representation basic model has limitations in long-distance modeling capabilities due to the limitation of local receptive fields, and the Transformer-based basic model can be globally modeled but is limited by its quadratic computational complexity. Therefore, state space models (SSMs) represented by Mamba are a better choice because they are good at modeling long-distance interactions while maintaining linear computational complexity. The present invention proposes to build a new target detection network MOLO based on the state space model as the backbone network and combines the idea of YOLO to realize the detection of multiple drones in infrared images. The present invention adopts an infrared drone swarm detection method based on the state space model to detect infrared drone swarm images.
[0004] The Chinese patent publication number is "CN117011725A", and the name is "A deep learning-based infrared drone target detection algorithm". This method is based on the YOLO network and introduces the improved Ghost module into the backbone network G-ELAN, so that the model can achieve high precision while maintaining lightweight. The improvements of Ghost are divided into two points: the first point is to replace the activation function from the ReLU function to the Hardswish function; the second point is to adjust the size of the two convolution kernels of the module to expand the receptive field. The neck network of this method uses the structure of FPN combined with PAN, in which the MCB module is used to enhance feature extraction, and the reparameterized convolution RepConv with a step size of 2 is used for downsampling. The head network of this method uses a decoupled detection head and a depthwise separable convolution. This method takes into account the importance of expanding the receptive field when detecting drone targets, but simply adjusting the size of the convolution kernel cannot fundamentally solve the problem of limited receptive field. This method focuses on keeping the model lightweight, but does not fully consider the problem that long-distance drone targets in real environments are small and have fuzzy shapes. Therefore, designing a high-speed, high-precision, multi-scale drone detection method based on global receptive field is an urgent research direction for this invention.
[0005] Therefore, we propose an infrared drone swarm detection method based on the state space model to solve the above problems. Summary of the invention
[0006] 1. Technical issues to be resolved
[0007] In view of the shortcomings of the prior art, the present invention provides an infrared UAV swarm detection method based on a state-space model, which solves the problems of low detection accuracy, large calculation amount and poor real-time performance in the infrared multi-scale multi-target detection process.
[0008] (II) Technical solution
[0009] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:
[0010] A method for detecting infrared drone swarms based on a state space model, the method specifically comprising the following steps:
[0011] S1, prepare data sets: prepare three infrared drone image data sets. The first infrared data set and the second infrared data set are used for network training and model fine-tuning, and the third infrared data set is used for model testing.
[0012] S2, design the VSS-D feature extraction module based on the state space model: the module includes the state space operator SS2D, depth dilated convolution, depth convolution, channel convolution, normalization layer, linear layer and activation function;
[0013] S3, build MOLO network model: build a new target detection network MOLO, which includes a backbone network, a neck network, a four-head detection head and an auxiliary reversible branch;
[0014] S4, training the network model: training the network model using the first infrared image data set;
[0015] S5, design loss function and determine evaluation indicators: improve the new composite loss function, improve the detection accuracy of small targets, minimize the category classification loss, bounding box regression loss and bounding box similarity loss, set the training loss threshold, continuously iterate and optimize the model until the value of the loss function reaches the set threshold, and save the model parameters; select the optimal evaluation indicator to evaluate the accuracy and performance of the model;
[0016] S6, fine-tuning the model, using the second infrared image dataset to train and fine-tune the model, optimize the model parameters, improve the network performance, and obtain more accurate target detection results;
[0017] S7, save the model, and after S5 fine-tuning training, solidify all network parameters and determine the final target detection model.
[0018] Furthermore, in S1, the first infrared data set is a dark small aircraft target detection and tracking data set of infrared images under ground and aerial backgrounds, and random scaling, inversion and translation methods are used to augment the image and expand the data set; the second infrared data set is a vision-based drone data set; and the third infrared data set is a drone detection data set.
[0019] Furthermore, the connection mode of each structure in the feature extraction module VSS-D in S2 is that the output feature map of the normalization layer 2 is multiplied by the weight factor generated by the activation function 2 and then input into the linear layer 3; the output feature map of the channel convolution is multiplied by the weight factor generated by the activation function 1 and then input into SS2D; the input feature map and the output feature map of the linear layer 3 are residually connected to output the final result;
[0020] Furthermore, the backbone network in S3 undergoes four VSS-D feature extraction modules to perform feature extraction and then downsampling operations, converting the original image into a multi-layer feature map; the neck network uses a path aggregation network structure, first undergoes three feature extractions and then upsampling to perform top-down feature fusion, and then undergoes three downsamplings and then feature extraction to perform bottom-up feature fusion to obtain a multi-scale information feature map;
[0021] The downsampling module adopts a Patch Merging module to reduce the problem of partial information loss during the downsampling process;
[0022] The upsampling module adopts the Patch Expanding module, which is more suitable for the network based on the visual state space model;
[0023] Furthermore, the auxiliary reversible branches in S3 are respectively connected to the backbone network and the detection head, and the branches are retained and used during the training process and removed during the reasoning process;
[0024] Furthermore, in step S3, the detection head is a four-head structure, which is respectively applied to large target detection, medium target detection, small target detection and tiny target detection;
[0025] Furthermore, the loss function in S5 is designed as a composite loss, including category classification loss, border regression loss and bounding box similarity loss;
[0026] The category classification loss is used to determine the category of the target object in each anchor frame, and the BCE loss is selected;
[0027] The frame regression loss is used to determine the position and size of each anchor box, and DFL loss plus SIoU loss is selected.
[0028] The bounding box similarity loss is used to solve the problem of over-sensitivity to position changes in small target detection and the problem of occlusion by drone groups, and NWD loss is selected.
[0029] (III) Beneficial effects
[0030] Compared with the prior art, the present invention provides an infrared drone swarm detection method based on a state space model, which has the following beneficial effects:
[0031] The present invention designs a new target detection network structure MOLO, and integrates the idea of visual state space model into the backbone network and the neck network, so that the network has linear complexity, global receptive field and dynamic weight. In MOLO, the backbone network converts the original image into a multi-layer feature map, and the neck network obtains multi-scale information feature maps through a feature pyramid structure. At the same time, an auxiliary reversible branch is designed to help the backbone network receive reliable gradient information, solving the problem of important information loss caused by the information bottleneck of the deep network.
[0032] The present invention designs a new feature extraction module VSS-D based on the state space model. The input feature map first captures remote information through the sparse operation of large kernel convolution, and then uses deep convolution to capture local information. At the same time, point-by-point convolution is used to strengthen the information interaction between channels and improve channel adaptability. Then it enters the core SS2D module, reduces the quadratic complexity to linear through the selective scanning space state sequence model, and uses a four-way scanning strategy to generate a global receptive field. It solves the problem of the traditional convolution block being limited by the local receptive field when extracting features and the problem of excessive computational burden after the introduction of the Transformer module.
[0033] The present invention solves the problem of decreased accuracy due to drastic size changes caused by different distances of the detected target by designing a new small target fine-grained feature detection layer, so as to enhance the detection performance of the MOLO network for tiny targets.
[0034] The present invention designs a new composite loss function. Classification loss, bounding box regression loss and bounding box similarity loss are used to jointly constrain network training. Category classification loss is used to determine the category of the target object in each anchor frame; bounding box regression loss is used to determine the position and size of each anchor frame, among which SIoU loss is more accurate for small target detection; bounding box similarity loss can solve the problem of over-sensitivity to position changes of small target detection and the problem of occlusion of drone groups. Therefore, the composite loss function designed by the present invention can complete the detection of multi-scale targets and occluded targets to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of the infrared drone group detection method based on the state space model of the present invention;
[0036] Figure 2 A schematic diagram of the network structure of the detector constructed by the present invention;
[0037] Figure 3 It is a schematic diagram of the specific structure of the backbone network of the present invention;
[0038] Figure 4 Schematic diagram of the VSS-D feature extraction module designed for the present invention;
[0039] Figure 5 It is a schematic diagram of the specific structure of the neck network of the present invention;
[0040] Figure 6 Detailed diagram of the pooling pyramid module of the present invention;
[0041] Figure 7 It is a schematic diagram of the specific structure of the auxiliary reversible branch of the present invention;
[0042] Figure 8This is a detailed diagram of the tensor splitting module of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] Example
[0045] like Figure 1 As shown, the embodiment of the invention provides a flow chart of an infrared drone group detection method based on a state space model, and the method specifically includes the following steps:
[0046] S1, prepare the data set: prepare the first data set for network training and perform preliminary training on the overall network; prepare the second data set for fine-tuning the model; prepare the third data set for testing the model;
[0047] The first dataset in S1 is a dataset for detecting and tracking dark small aircraft targets in infrared images under ground / air backgrounds provided by China Science Data. The dataset focuses on small target detection and tracking of low-altitude flying targets, and provides a set of data for one or more fixed-wing UAV targets through field recording and post-data processing. The data collection scenes cover sky backgrounds and complex field backgrounds. The dataset includes 22 image sequences, 30 trajectories, 16,177 frames, and 16,944 targets. Each target corresponds to a label position in the image, and each image sequence corresponds to a label file. This dataset can be used for research on infrared target characteristics, dark small target detection, and precision guidance.
[0048] The second infrared dataset in S1 is the vision-based UAV dataset (Anti-UAV) of the Beijing North Electronic Equipment Research Institute of China. The video data needs to be converted into an infrared image dataset frame by frame before use. The Anti-UAV dataset includes 6 types of drones (mainly from DJI and Parrot), two lighting conditions (day and night), two lighting modes (infrared and visible light) and various backgrounds (buildings, clouds, trees, etc.). The dataset contains various videos of different drones flying in the air, a total of 318 pairs of high-quality, high-definition RGB-T videos, each pair contains a visible light video and an infrared video. In addition, unlike the published standard multimodal tracking datasets, the Anti-UAV multimodal data is non-aligned.
[0049] The third infrared dataset in S1 is a drone detection dataset. The video data needs to be converted into an infrared image dataset frame by frame before use. The database includes three different drones, a small drone (Hubsan H107D+), a medium drone (DJI Flame Wheel in a quadrotor configuration), and a performance-level drone (DJI Phantom 4 Pro). The video part contains 650 infrared and visible light videos (365 infrared and 285 visible light) of drones, birds, airplanes, and helicopters. Each clip is 10 seconds, resulting in a total of 203,328 annotated frames.
[0050] S2, design a VSS-D feature extraction module based on the state space model: The structure of the VSS-D feature extraction module of the present invention is as follows Figure 3 As shown in Figure 1, the input is first residually connected to the final output before layer normalization. The main branch is divided into two branches after layer normalization. The first branch is divided into two branches after the linear layer and activation function. One of them is through depthwise separable convolution, depthwise dilated separable convolution and a The convolution of the branch is combined with the element-by-element product of the other branch, and then enters SS2D for two-dimensional selective scanning. After feature normalization, it is combined with the element-by-element product of the second branch output, and then a linear layer is used to mix the features and add them with the residual connection to form the output of the VSS-D feature extraction module. The activation function uses The function is defined as follows:
[0051]
[0052] S3, build network model: Figure 2 As shown in the figure, a target detection model for infrared multi-UAV images is constructed. The macro architecture of the present invention uses a MOLO model based on a state space model, which is divided into three parts: a backbone network, a neck network, and a detection head, including an auxiliary reversible branch. Figure 4 The backbone network shown in FIG. 1 is composed of a return input module, an image vectorization module, a feature extraction module (VSS-D), and a downsampling module (Patch merging); Figure 5 The neck part shown in the figure is composed of a feature extraction module, an upsampling module (Patch expanding), a feature fusion module, a pooling pyramid module, and a convolution block with a step size of 2. The details of the pyramid pooling part are shown in Figure 6 as shown; Figure 7The auxiliary reversible branch shown in the figure is composed of a tensor splitting module, a fusion module, a feature extraction module and a batch merging module. In the backbone network part, the function of the input return module is to return the input image variable and does not include other operations. This operation can save the input x in the network structure, which is convenient for the auxiliary branch to call and other work; the image vectorization module is used to divide the image into small blocks and convert it into a fixed-dimensional vector, and the two-dimensional image is converted into a one-dimensional sequence, which is convenient for the VSS-D feature extraction module to process; the patch merging module is used for downsampling, which is used to reduce the resolution, adjust the number of channels and form a hierarchical design, and can also save a certain amount of computation, but compared with the pooling operation, it does not lose information; the VSS-D feature extraction module is used to extract features. In the neck network part, the patch expanding module is used for upsampling and adjusting the number of channels to prepare for subsequent feature superposition; the pooling pyramid module utilizes the spatial pyramid pooling capability and efficient feature aggregation capability to improve the robustness and generalization ability of the model, while reducing the model calculation amount and improving the reasoning speed; the convolution block is used for downsampling and adjusting the number of channels to facilitate the feature fusion of the lower detection layer. The auxiliary reversible branch connects the backbone network and the detection head similarly to the neck network to dynamically update the weights of the backbone network.
[0053] S4, training network model: training the target detection model, preprocessing the first infrared data set prepared in step S1 to expand the data set, and inputting the processed data set into the network for training. The image flattening layer will input the infrared image Divide into equal size batches, so that , where each batch resolution size is In addition, each batch is split into Smaller sub-batches are used to convert infrared images into sequences of visual sentences and then into sequences of visual words:
[0054]
[0055] in Indicates The visual sentence sight words, is the size of the sub-batch space. Divide The batch size is mapped to C, where C is 128. After the image flattening layer, the image becomes The image is then sent to the VSS-D feature extraction module for feature extraction. After each feature extraction in the backbone network, the data is passed to the next layer and the corresponding part of the neck network. The data passed to the next layer is downsampled once and then continues to extract features until the last layer extracts features and enters the pooling pyramid module to capture more detailed target features at different scales. Then the features are extracted. Figure 1 One path is passed to the upsampling layer 3 in the neck network for upsampling to ensure that the number of channels of the feature map extracted by the VSS-D feature extraction module 3 in the backbone network is the same for feature fusion; the other path is passed to the feature fusion layer 6 of the next column, and the feature fusion is performed with the shallow features passed down from the next column of the network, and the large-size object detection result is output after passing through the VSS-D feature extraction module 10 and convolution. The feature map after the feature fusion layer 3 in the first path enters the VSS-D feature extraction module 6 for feature extraction, and one path continues to pass along the original direction to the upsampling layer 2 to expand the number of channels; the other path is fused with the shallow features passed down from the next column of the network, and the medium-size object detection result is output after passing through the VSS-D feature extraction module 9 and convolution. The feature map after the number of channels in the upsampling layer 2 is fused with the feature map transmitted from the backbone network VSS-D feature extraction module 2, and then passed to the VSS-D feature extraction module 5. One path is passed to the shallow layer, and the other path is passed to the next column network to be fused with the shallowest layer features passed down in the feature fusion layer 4. After the VSS-D feature extraction module 8 and convolution, the small-size object detection result is output. After the shallow features are fused with the deep features transmitted all the way, the VSS-D feature extraction module 7 and convolution are used to output the small-size object detection result. At the same time, the auxiliary reversible branch is enabled during the training process and connected to the backbone network to continuously update the shallow weights. The auxiliary reversible branch is closed after the training is completed.
[0056] S5, design loss function and determine evaluation indicators: improve the new composite loss function, optimize the model iteratively multiple times so that the values of category classification loss, bounding box regression loss and bounding box similarity loss reach the expected threshold, or the number of iterations reaches the preset threshold, the model training ends, and the model parameters are saved; input the test images in the third dataset into the network for testing, select the optimal evaluation indicator to measure the test results, and evaluate the accuracy and performance of the model.
[0057] The loss function in S5 uses a designed composite loss function, including category classification loss, bounding box similarity loss and box regression loss;
[0058] Category classification loss: This paper uses binary cross entropy (BCE) as the classification loss, performs unique hot encoding on each region category object, and judges "whether it is of this category" for each category, directly outputs the "confidence score" of each category, and then calculates the maximum value and uses it as the confidence of this anchor box. BCELoss can be expressed by the following formula:
[0059]
[0060] Bounding box similarity loss: The present invention uses similarity based on normalized Wasserstein distance as the bounding box similarity loss. The bounding box is modeled as a 2D Gaussian distribution, and the normalized Wasserstein distance between two Gaussian distributions is used to represent the similarity between the two bounding boxes. The Wasserstein distance of the two bounding boxes can be expressed by the following formula:
[0061]
[0062] Normalizing the Wasserstein distance between the two boxes can represent the similarity between the two bounding boxes. The normalized Wasserstein distance can be expressed as follows:
[0063]
[0064] Where C is the average absolute size of the objects in the dataset, and Represent the Gaussian distribution of the two bounding boxes a and b respectively. So the bounding box similarity loss NWDLoss can be expressed as follows:
[0065]
[0066] in is the Gaussian distribution of the prediction box, is the Gaussian distribution of the ground-truth box.
[0067] Border regression loss: This paper uses DFLLoss and SIoULoss as border regression loss. The Distribution Focal Loss loss function optimizes the probabilities of the two positions closest to the label in the form of cross entropy, so that the network distribution can quickly focus on the target position and the vicinity. DFLLoss can be expressed by the following formula:
[0068]
[0069] SIoU loss fully considers the direction problem between the real box and the predicted box, introduces the vector angle between the real box and the predicted box, redefines the relevant loss function, and solves the problems of slow convergence and low efficiency. The detection effect is still very good when the target boundary is unclear and there is occlusion, which is very suitable for small target detection and helps to improve the detection accuracy. Among them, it is specifically composed of angle loss, distance loss, shape loss and IoU loss. SIoULoss can be expressed by the formula as follows:
[0070]
[0071] in, , For distance loss;
[0072] , is the angle loss;
[0073] , is the shape loss.
[0074] The appropriate evaluation indicators in S5 are selected from mAP50, mAP50-95, precision, recall rate and FPS for comprehensive evaluation. Precision is the proportion of positive samples predicted correctly by the evaluation model; recall rate is the proportion of all true positive samples found by the evaluation model; mAP represents the average precision of the model on multiple categories, mAP50 represents the mAP value under the IoU threshold of 50%, and mAP50-95 represents the average mAP value within the IoU threshold range of 50%-95%; FPS represents the frame rate per second, which evaluates the processing speed of the model on a given hardware.
[0075] S6, fine-tuning model: Use the second infrared dataset to train and fine-tune again, and continue to use auxiliary reversible branches to help network training to further improve the detection network performance.
[0076] S7, save the model: After all training is completed, close the auxiliary reversible branch, fix all parameters, and determine the target detection model.
[0077] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for detecting infrared drone swarms based on a state space model, characterized by: The method specifically comprises the following steps: S1, prepare data sets: prepare three infrared drone image data sets. The first infrared data set and the second infrared data set are used for network training and model fine-tuning, and the third infrared data set is used for model testing. S2, design the VSS-D feature extraction module based on the state space model: the module includes the state space operator SS2D, deep dilated convolution, deep convolution, channel convolution, normalization layer, linear layer and activation function; the structure is that the input is first residually connected to the final output before layer normalization, the main branch is divided into two branches after layer normalization, the first branch is divided into two branches after the linear layer and activation function, one of which is through the depth separable convolution, the depth dilated separable convolution and a The convolution is combined with the element-by-element product of the other branch, and then enters SS2D for two-dimensional selective scanning. After feature normalization, it is combined with the element-by-element product of the second branch output, and then a linear layer is used to mix the features and add them with the residual connection to form the output of the VSS-D feature extraction module. The activation function uses function; S3, build MOLO network model: build a new target detection network MOLO, which includes a backbone network, a neck network, a four-head detection head and an auxiliary reversible branch; after each feature extraction in the backbone network, the data is transmitted to the next layer and the corresponding part of the neck network respectively, and the data transmitted to the next layer undergoes one downsampling and continues to extract features until the last layer extracts features and enters the pooling pyramid module to capture more refined target features at different scales, and then the feature map is transmitted to the upsampling layer three in the neck network for upsampling to ensure that the number of channels of the feature map extracted by the VSS-D feature extraction module three in the backbone network is the same for feature fusion; the other path is transmitted to the feature fusion layer six of the next column, and the feature fusion is performed with the shallow features passed down from the next column of the network, and the large-size object detection result is output after the VSS-D feature extraction module ten and convolution. The feature map after the feature fusion layer three in the first path enters the VSS-D feature extraction module six for Feature extraction, one path continues to be transmitted along the original direction to the upsampling layer 2 to expand the number of channels; the other path is fused with the shallow features passed down from the next column of the network, and after a VSS-D feature extraction module 9 and convolution, the medium-sized object detection result is output. The feature map after the expansion of the number of channels in the upsampling layer 2 is fused with the feature map passed from the backbone network VSS-D feature extraction module 2, and is transmitted to the VSS-D feature extraction module 5. One path is transmitted to the shallow layer, and the other path is transmitted to the next column of the network and fused with the shallowest layer features passed down in the feature fusion layer 4. After the VSS-D feature extraction module 8 and convolution, the small-sized object detection result is output. After the shallow features are fused with the deep features passed all the way, the VSS-D feature extraction module 7 and convolution are used to output the tiny-sized object detection result. At the same time, the auxiliary reversible branch is enabled during the training process and connected to the backbone network, and the shallow weights are continuously updated. After the training is completed, the auxiliary reversible branch is closed; The auxiliary reversible branch consists of a tensor splitting module, a fusion module, a feature extraction module, and a batch merging module; S4, training the network model: training the network model using the first infrared image data set; S5, design loss function and determine evaluation indicators: improve the new composite loss function, improve the detection accuracy of small targets, minimize the category classification loss, bounding box regression loss and bounding box similarity loss, set the training loss threshold, continuously iterate and optimize the model until the value of the loss function reaches the set threshold, and save the model parameters; select the optimal evaluation indicator to evaluate the accuracy and performance of the model; S6, fine-tuning the model, using the second infrared image dataset to train and fine-tune the model, optimize the model parameters, improve the network performance, and obtain more accurate target detection results; S7, save the model, and after S5 fine-tuning training, solidify all network parameters and determine the final target detection model.
2. The infrared drone swarm detection method based on the state space model according to claim 1 is characterized by: In S1, the first infrared data set is a data set for detecting and tracking dark small aircraft targets in infrared images with ground and air backgrounds, and random scaling, inversion and translation methods are used to augment the image and expand the data set; The second infrared dataset is a vision-based UAV dataset; The third infrared dataset is a drone detection dataset.
3. The infrared drone swarm detection method based on the state space model according to claim 1 is characterized by: In step S3, the detection head is a four-head structure, which is respectively used for large target detection, medium target detection, small target detection and tiny target detection.
4. The infrared drone swarm detection method based on the state space model according to claim 1 is characterized by: The loss function in S5 is designed as a composite loss, including category classification loss, border regression loss and bounding box similarity loss; The category classification loss is used to determine the category of the target object in each anchor frame, and the BCE loss is selected; The border regression loss is used to determine the position and size of each anchor box, and DFL loss plus SIoU loss is selected; The bounding box similarity loss is used to solve the problem of over-sensitivity to position changes in small target detection and the problem of occlusion by drone groups, and NWD loss is selected.
