A RGB-infrared multi-source image target detection method based on single-modal auxiliary supervision and YOLOv5
By introducing single-modal auxiliary supervision and the YOLOv5 model into RGB-infrared multi-source target detection, combined with semantic segmentation and independent annotation, the problems of slow detection speed and insufficient utilization of auxiliary information are solved, and efficient target detection results are achieved.
Patent Information
- Application Number
- CN202310211247.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-03-07
AI Technical Summary
Existing RGB-infrared multi-source target detection methods have slow detection speeds and do not fully utilize independent annotations of visible and thermal infrared modes to provide auxiliary information to improve detection supervision.
Design an RGB-infrared multi-source image target detection model based on single-modal auxiliary supervision and YOLOv5, extract visible and thermal infrared image features through the backbone network, combine the semantic segmentation task as auxiliary supervision, fuse multi-scale features for target detection, and Supervision with independent modal annotations.
Efficient target detection on the KAIST data set is achieved, the average logarithmic missed detection rate is reduced, and the detection speed is increased to 24.39FPS, surpassing mainstream multi-source target detection methods.
Smart Images

Figure CN116665036B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of computer vision image processing, and in particular relates to an RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5. Background Art
[0002] Object detection is an important field of computer vision. Image-based object detection detects the object category and location in an image through image processing and computer vision technology. Using multi-source RGB-infrared images for collaborative object detection can make up for the problem that RGB image object detection has poor recognition effect under bad weather and poor lighting conditions. RGB-infrared multi-source image object detection technology has important applications in autonomous driving, video surveillance, security and other fields.
[0003] In recent years, deep learning technology represented by convolutional neural networks has become the mainstream method in the field of target detection. Object detection methods based on deep learning can be roughly divided into two categories: single-stage target detection represented by the YOLO series and two-stage target detection represented by the Faster RCNN series. RGB-infrared multi-source target detection based on deep learning has also been widely studied and is superior to multi-source target detection based on traditional methods. For example, Zhang et al. designed a multi-source target detection framework based on Faster R-CNN in the paper "Weakly aligned cross-modal learning for multispectral pedestrian detection[C].Proceedings of the IEEE / CVF International Conference on Computer Vision.2019:5127-5137." and provided independent annotations of visible light and thermal infrared modalities for the multi-source target detection dataset because there is misalignment in the multi-source target detection dataset. That is, objects in visible light and thermal infrared images have different positions. This misalignment will affect the supervision of the multi-source target detection network. Kim et al. proposed an uncertainty-aware multi-source pedestrian detection framework based on FasterRCNN in the paper "Uncertainty-guided cross-modal learning for robust multispectral pedestrian detection[J].IEEE Transactions on Circuits and Systems for Video Technology, 2022, 32(3):1510-1523.", which can obtain better multi-source modal discrimination features.
[0004] However, there are still some problems with the current deep learning RGB-infrared multi-source target detection methods: 1. Most of the current multi-source target detection methods are based on the Faster R-CNN two-stage target detection method, so the reasoning speed is slow; 2. Existing work rarely explicitly uses independent annotations of visible light and thermal infrared to provide additional auxiliary information for target detection. Independent annotations of visible light and thermal infrared modalities can provide more accurate feature learning supervision for visible light and thermal infrared backbone networks; therefore, it is very necessary to design a single-modality auxiliary supervision multi-source YOLOv5 target detection method based on a fast single-stage target detection method and combined with auxiliary information for supervision. Summary of the invention
[0005] Technical issues to be solved
[0006] Aiming at the problems that the existing multi-source target detection methods have slow detection speed and do not make full use of auxiliary information to improve detection supervision, the present invention provides an RGB-infrared multi-source image target detection method based on single-modal auxiliary supervision and YOLOv5.
[0007] Technical Solution
[0008] The invention discloses an RGB-infrared multi-source image target detection model based on single-modality auxiliary supervision and YOLOv5, characterized in that it comprises four parts: a backbone network part, a bottleneck part, a segmentation part and a detection part; the backbone network part is used to extract convolution feature maps of visible light and thermal infrared images respectively; the bottleneck part is used to combine the feature maps of visible light and thermal infrared modalities from top to bottom and from bottom to top to obtain features of each level for fusion modality, visible light modality and thermal infrared modality; the segmentation part predicts semantic segmentation of the feature maps of visible light and thermal infrared modalities through convolutional layers as an auxiliary supervision task; the detection part performs target detection on features of each level of visible light and thermal infrared modalities, and performs decision-level fusion on the prediction results of fusion, visible light and thermal infrared modalities; and the prediction of visible light and thermal infrared modalities is supervised by annotations under their respective modalities to provide auxiliary information for single-modality prediction.
[0009] A RGB-infrared multi-source image target detection method based on single-modal auxiliary supervision and YOLOv5, characterized by the following steps:
[0010] Step 1: Combine visible light and thermal infrared images rgb and I ir Input backbone network part for feature extraction, visible light and thermal infrared image I rgb and I ir Pass through the visible light convolution module in sequence and Thermal Infrared Convolution Module Where i∈{1,2,3,4,5}, multiple feature pairs are obtained and in is the visible light image I rgb In the visible light convolution module After the extracted features, is the thermal infrared image I ir In the thermal infrared convolution module The features extracted after and After that, the feature and Perform channel splicing and send it to the spatial pyramid pooling module to obtain the processed multi-source features
[0011] Step 2: Add the visible light convolution module in step 1 and Thermal Infrared Convolution Module Output feature map and Perform channel splicing and then pass the segmentation convolution module to obtain the semantic segmentation prediction result;
[0012] Step 3: The features of the backbone network in step 1 And the features obtained by the spatial pyramid pooling module The bottleneck part is sent to the bottleneck part; in order to achieve single-mode independent prediction, the bottleneck part sets up three groups of structures: fusion mode bottleneck, thermal infrared mode bottleneck, and visible light mode bottleneck, which respectively extract three pairs of multi-scale features of fusion mode, thermal infrared mode, and visible light mode; the fusion mode bottleneck structure is based on as well as As input, and Perform channel splicing as multi-source feature processing and output multi-scale features The bottleneck structure of thermal infrared mode is as well as As input, output thermal infrared multi-scale features The bottleneck structure of the visible light mode is as well as As input, output visible light multi-scale features
[0013] Step 4: Use the detection module to perform target detection on the three pairs of multi-scale features obtained from the bottleneck parts of the three modalities in step 3 to obtain object predictions in each modality and each scale; for the predictions of the three modalities of fusion, thermal infrared, and visible light, use decision-level fusion to fuse the predictions at the same scale; finally, the detection results of the three scales obtained by fusion are post-processed by non-maximum suppression to obtain the target detection prediction output of the input multi-source image.
[0014] A further technical solution of the present invention: the visible light convolution module in step 1 and Thermal Infrared Convolution Module They are both composed of a basic convolution module and a cross-stage local convolution module in series; the cross-stage local convolution module splits the input feature map into two feature maps F according to the channel. p1 and F p2 , F p1 Only one basic convolution module is used for residual connection, F p2 Then, through multiple basic convolution modules, the two parts of the feature map are finally channel-joined and passed through the last basic convolution module to obtain the output of the cross-stage local convolution module.
[0015] A further technical solution of the present invention: the visible light convolution module and thermal infrared convolution module and Parameters are independent.
[0016] A further technical solution of the present invention: the segmentation convolution module in step 2 refers to a structure consisting of a 3×3 convolution layer, a batch normalization, a rectified linear unit, and a 3×3 convolution layer connected in series.
[0017] A further technical solution of the present invention is as follows: the three modal bottleneck parts in step 3 use a pathway aggregation network PAN structure including top-down and bottom-up pathways to process multi-scale feature maps.
[0018] A further technical solution of the present invention is as follows: the basic convolution modules in the backbone network part and the bottleneck part are composed of a convolution layer, a batch normalization layer and a Sigmoid weighted linear unit.
[0019] A further technical solution of the present invention is as follows: the detection module in step 4 is composed of a 1×1 convolutional layer. Target detection is performed on three levels of feature maps with step sizes of 8, 16, and 32, respectively, and the parameters of the detection modules at the three levels are independent. In order to reduce the number of learning parameters, the detection modules of the fusion, visible light, and thermal infrared modalities share parameters.
[0020] A further technical solution of the present invention: the decision-level fusion of the detection results of the three modalities in step 4 refers to weighted averaging the detection results of the fusion, visible light and thermal infrared modalities, and the weight coefficients of the three modalities are 0.5, 0.25 and 0.25 respectively.
[0021] Beneficial Effects
[0022] The present invention provides an RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5, and designs a single-modality auxiliary supervision RGB-infrared multi-source YOLOv5 image target detection model MSAS-YOLOv5. The model uses YOLOv5, which takes both speed and accuracy into consideration, as a basic method to efficiently extract multi-level features of RGB visible light and thermal infrared images. A single-modality auxiliary supervision method is designed to combine semantic segmentation auxiliary tasks with single-modality detection auxiliary tasks. Independent target detection prediction branches are set for visible light and thermal infrared modalities, and independent visible light thermal infrared modality annotations are used to supervise the predictions of the two modalities respectively. In terms of accuracy, the MSAS-YOLOv5 of the present invention achieves an average logarithmic missed detection rate of 5.89% on the KAIST data set, and has a smaller missed detection degree and greater supervision for target detection objects. The FPS reaches 24.39, which is faster than the mainstream multi-source target detection method. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like components throughout the drawings.
[0024] Figure 1 It is a network structure diagram of the method of the embodiment of the present invention.
[0025] Figure 2 3 is a schematic diagram comparing target detection results of the method according to the embodiment of the present invention and other existing methods. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0027] A RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5 is proposed. By utilizing YOLOv5, a single-stage target detection method that takes both speed and accuracy into consideration, and introducing single-modality auxiliary supervision, a new single-modality auxiliary supervision multi-source YOLOv5 target detection model is constructed for RGB-infrared multi-source image target detection. The detection model consists of four parts: backbone network part, bottleneck part, segmentation part and detection part. The backbone network part is used to extract the convolution feature maps of visible light and thermal infrared images respectively. The bottleneck part is used to combine the feature maps of visible light and thermal infrared modalities from top to bottom and bottom to obtain the features of each level for fusion modality, visible light modality and thermal infrared modality. The segmentation part predicts semantic segmentation of the feature maps of visible light and thermal infrared modalities through convolutional layers as an auxiliary supervision task. The detection part performs target detection on the features of each level of visible light and thermal infrared modalities, and performs decision-level fusion on the prediction results of fusion, visible light and thermal infrared modalities. The predictions of visible light and thermal infrared modes are supervised by annotations under their respective modes to provide auxiliary information for single-modality prediction.
[0028] The specific steps include:
[0029] Step 1: Combine visible light and thermal infrared images rgb and I ir Input the backbone network to extract features. Visible light and thermal infrared images I rgb and I ir Pass through the visible light convolution module in sequence and Thermal Infrared Convolution Module (where i∈{1,2,3,4,5}), we get multiple feature pairs and in is the visible light image I rgb In the visible light convolution module After the extracted features, is the thermal infrared image I ir In the thermal infrared convolution module The features extracted after and After that, the feature and Perform channel splicing and send it to the spatial pyramid pooling module to obtain the processed multi-source features
[0030] Step 2: Add the visible light convolution module in step 1 and Thermal Infrared Convolution Module Output feature map and Perform channel splicing and then pass the segmentation convolution module to obtain the semantic segmentation prediction result;
[0031] Step 3: The features of the backbone network in step 1 And the features obtained by the spatial pyramid pooling module In order to achieve independent prediction of single modality, the bottleneck part sets up three groups of structures: fusion modality bottleneck, thermal infrared modality bottleneck, and visible light modality bottleneck, respectively extracting three pairs of multi-scale features of fusion modality, thermal infrared modality, and visible light modality. as well as As input, and Perform channel splicing as multi-source feature processing and output multi-scale features The bottleneck structure of thermal infrared mode is as well as As input, output thermal infrared multi-scale features The bottleneck structure of the visible light mode is as well as As input, output visible light multi-scale features In order to reduce the number of parameters and improve efficiency, the bottleneck structural parameters of visible light and thermal infrared modes are shared;
[0032] Step 4: Use the detection module to perform target detection on the three pairs of multi-scale features obtained in the bottleneck part of the three modalities in step 3 to obtain object predictions in each modality and scale. For the predictions of the three modalities of fusion, thermal infrared, and visible light, the predictions at the same scale are fused using decision-level fusion. The detection results of the three scales obtained by the final fusion are then post-processed by non-maximum suppression to obtain the target detection prediction output of the input multi-source image.
[0033] Optionally, the visible light convolution module in step 1 and Thermal Infrared Convolution Module They are composed of a basic convolution module and a cross-stage local convolution module in series. The cross-stage local convolution module splits the input feature map into two feature maps F according to the channel. p1 and F p2 , F p1 Only one basic convolution module is used for residual connection, F p2 Then, through multiple basic convolution modules, the two parts of the feature map are finally channel-joined and passed through the last basic convolution module to obtain the output of the cross-stage local convolution module.
[0034] Optionally, the visible light convolution module in step 1 and thermal infrared convolution module and Parameters are independent.
[0035] Optionally, the segmentation convolution module in step 2 refers to a structure consisting of a 3×3 convolution layer, a batch normalization, a rectified linear unit, and a 3×3 convolution layer connected in series.
[0036] Optionally, the semantic segmentation prediction predicted in step 2 is used for auxiliary supervision during training. During the training phase of the network model, the object detection bounding box annotation is used as a mask to supervise the semantic segmentation prediction result obtained in step 2.
[0037] Optionally, the three modal bottleneck parts in step 3 process the multi-scale feature maps using a path aggregation network PAN (Path Aggregation Network) structure containing top-down and bottom-up pathways.
[0038] Optionally, the basic convolution modules in the backbone network part and the bottleneck part are composed of a convolution layer, a batch normalization layer and a sigmoid weighted linear unit.
[0039] Optionally, the detection module in step 4 is composed of 1×1 convolutional layers. Object detection is performed on three levels of feature maps with step sizes of 8, 16, and 32, and the parameters of the detection modules at the three levels are independent. In order to reduce the number of learning parameters, the detection modules of fusion, visible light, and thermal infrared modalities share parameters.
[0040] Optionally, the decision-level fusion of the detection results of the three modalities in step 4 refers to weighted averaging the detection results of the fusion, visible light and thermal infrared modalities, and the weight coefficients of the three modalities are 0.5, 0.25 and 0.25 respectively.
[0041] Optionally, in step 4, the detection results of the three modalities are supervised by using loss functions and training annotations. The annotations shared by visible light and thermal infrared are used as the true labels as supervision for the fusion modality detection results. In order to achieve single-modality detection auxiliary supervision, the annotations unique to the visible light modality are used as supervision for the visible light modality detection results, and the annotations unique to the thermal infrared modality are used as supervision for the thermal infrared detection results. Specific embodiment:
[0043] like Figure 1 As shown, in view of the problem that the existing multi-source target detection methods are not fast enough and do not fully utilize effective supervision information, the present invention designs an RGB-infrared multi-source image target detection model based on single-modality auxiliary supervision and YOLOv5. It includes a backbone network part, a bottleneck part, a segmentation part and a prediction part. The specific method includes the following steps:
[0044] S1, visible light and thermal infrared image I rgb and I ir Input the backbone network part for feature extraction and obtain multiple feature pairs and in is the visible light image I rgb In the visible light convolution module After the extracted features, is the thermal infrared image I ir In the thermal infrared convolution module The features extracted after and After that, the feature and Perform channel splicing and send it to the spatial pyramid pooling module to obtain the processed multi-source features
[0045] S2, such as Figure 1 As shown, the visible light convolution module and Thermal Infrared Convolution Module Output feature map and Perform channel splicing and then pass the segmentation convolution module to obtain the semantic segmentation prediction result;
[0046] S3, the features of the backbone network part in step 1 And the features obtained by the spatial pyramid pooling module In order to achieve independent prediction of single modality, the bottleneck part sets up three groups of structures: fusion modality bottleneck, thermal infrared modality bottleneck, and visible light modality bottleneck, which respectively extract three pairs of multi-scale features of fusion modality, thermal infrared modality, and visible light modality. as well as As input, and Perform channel splicing as multi-source feature processing and output multi-scale features by as well as As input, output thermal infrared multi-scale features The bottleneck structure of the visible light mode is as well as As input, output visible light multi-scale features In order to reduce the number of parameters and improve efficiency, the bottleneck structural parameters of visible light and thermal infrared modes are shared;
[0047] S4, using the three sets of multi-scale multi-modal features (fused modal features) obtained by the detection module in step S3 Visible light modal characteristics And thermal infrared modal characteristics ) to perform target detection. The multi-scale prediction results of the three groups of modes are obtained respectively For the prediction of the three modalities of fusion, thermal infrared, and visible light, the predictions at the same scale are fused using decision-level fusion. The detection results of the three scales obtained by fusion are then processed by non-maximum suppression to obtain the target detection prediction output of the input image.
[0048] In this embodiment, the execution network of step S1 to step S4 is referred to as MSAS-YOLOv5. The execution process of step S1 to step S4 will be further described in detail below in combination with the structure of MSAS-YOLOv5.
[0049] In this embodiment, in step S1, the size H input ×W input ×3 visible light image I rgb and size H input ×W input ×3 Thermal Infrared Image I ir The convolutional modules are fed into the backbone network for feature extraction. Reduce the size of the feature map by 1 / 2. After passing through convolution module i, the size is H input / 2 i ×W input / 2 i The feature map of The output feature size and number of channels of the pyramid pooling module are H input / 8×W input / 8×256,H input / 16×W input / 16×512 and H input / 32×W input / 32×1024. And the output features of the spatial pyramid pooling module and Feed into the bottleneck section and the split section.
[0050] In this embodiment, the visible light convolution module and Thermal Infrared Convolution Module They are composed of a basic convolution module and a cross-stage local convolution module in series. The cross-stage local convolution module splits the input feature map into two feature maps F according to the channel. p1 and F p2 , F p1 Only one basic convolution module is used for residual connection, F p2 After passing through n basic convolution modules, the two parts of the feature map are finally channel-joined and passed through the last basic convolution module to obtain the output of the cross-stage local convolution module. and In the example, i ranges from 1 to 5, and the corresponding n is 1, 3, 6, 9, 3). Finally, the two parts of the feature map are concatenated and passed through the convolution module to obtain the final output.
[0051] In this embodiment, the parameters of the visible light convolution module and the thermal infrared convolution module in step S1 are independent.
[0052] In this embodiment, the segmentation convolution module in step S2 refers to a structure consisting of a 3×3 convolution layer, batch normalization, a rectified linear unit, and a 3×3 convolution layer in series. The number of output channels of the first 3×3 convolution layer is 256. The number of output channels of the last 3×3 convolution layer is 1, indicating the probability of each position predicting an object. The final size is H input / 8×W input / 8 semantic segmentation prediction.
[0053] In this embodiment, the semantic segmentation prediction predicted in step S2 will be used for auxiliary supervision during training. In the training phase of the network model, the target detection bounding box annotation is used as a mask. The position of the original image containing the target is set to 1 and scaled to 1 / 8 of the original image size as the semantic segmentation training label G seg , the semantic segmentation prediction result P obtained in the supervision step S2 seg . And use the loss function L seg Form semantic segmentation auxiliary supervision. seg is the weight of semantic segmentation prediction loss, set to 0.5. bce is the binary cross entropy loss.
[0054] L seg =λ seg L bce (P seg ,G seg )
[0055] In this embodiment, Figure 1 As shown, the bottleneck part in step S3 sets three structures: fusion modality bottleneck, thermal infrared modality bottleneck, and visible light modality bottleneck. The three bottleneck parts all use the PAN (Path Aggregation Network) structure containing top-down and bottom-up pathways to process multi-scale feature maps.
[0056] In this example, Figure 1 As shown in Figure 2, the bottleneck structure of the fusion modality is as well as The top-down path includes PAN module 1 to PAN module 3, and the bottom-up path includes PAN module 4 and PAN module 5. PAN module 1 is processed using the basic convolution module. The processed features Send it to PAN module 5, and then Upsampling to twice the size gives Feed into PAN module 2.
[0057] In this embodiment, PAN module 2 and PAN module 3 include channel splicing and basic convolution modules. Figure 1 As shown in Figure 2, PAN module 2 and PAN module 3 aggregate the PAN module features from the previous level and the features from the corresponding scale. PAN module 4 and PAN module 5 contain basic convolution modules, channel concatenation, and cross-stage local convolution modules with n=3. The step size of the basic convolution modules of PAN module 4 and PAN module 5 is set to 2, and the scale of the PAN module from the previous level is reduced. It is concatenated with the PAN module of the same scale, and finally the output features are obtained through the cross-stage local convolution module. The output multi-scale features of PAN modules 3, 4, and 5 are respectively The output feature size and number of channels are H input / 8×W input / 8×256,H input / 16×W input / 16×512 and H input / 32×W input / 32×1024.
[0058] In this embodiment, Figure 1 As shown, the bottleneck structure of thermal infrared mode is as well as As input, output thermal infrared multi-scale features The bottleneck structure of the visible light mode is as well as As input, output visible light multi-scale features The multi-scale feature processing process of visible light and thermal infrared modalities is similar to that of the fusion modality, and the PAN module structure of PAN modules 2, 3, 4, and 5 is the same as that of the fusion modality, but uses parameters independent of the corresponding structure of the fusion modality.
[0059] In this embodiment, the basic convolution modules in the backbone network part and the bottleneck part are composed of 1×1 and 3×3 convolution layers, batch normalization layers and Sigmoid weighted linear units.
[0060] In this embodiment, the detection module in step S4 is composed of 1×1 convolutional layers. Target detection is performed on three levels of feature maps with step sizes of 8, 16, and 32, and the parameters of the three levels of detection modules are independent. In order to reduce the number of learning parameters, the detection modules of fusion, visible light, and thermal infrared modalities share parameters.
[0061] In this embodiment, the decision-level fusion of the detection results of the three modes in step S4 refers to fusing the same-scale detection results of the visible light and thermal infrared modes. as well as Perform weighted averaging to obtain the final detection result As shown in the following formula. Among them, the weight coefficients λ of the three modes F , I and λ R They are 0.5, 0.25 and 0.25 respectively.
[0062]
[0063] In this embodiment, the detection results of the three modalities in step S4 are supervised by using loss functions and training annotations. The annotations shared by visible light and thermal infrared are used as the real labels as the supervision of the fusion modality detection results. In order to achieve single-modality detection auxiliary supervision, the unique annotations of the visible light modality are used as the supervision of the visible light modality detection results, and the unique annotations of the thermal infrared modality are used as the supervision of the thermal infrared detection results. The total loss function of this step is L s4 , where L cls , L bbox With L obj is the classification loss, bounding box loss and confidence loss predicted by the fusion modality. p_f is the prediction result of the fusion modality, which is gt_f is the training annotation shared by the modality. L obj_v , L bbox_v is the confidence loss and bounding box loss for the visible light modality prediction task, L obj_t , L bbox_t is the confidence loss and bounding box loss of the thermal infrared modality prediction task. p_v is the single modality prediction result of the visible light modality, which is and are combined. p_t is the single mode prediction result of thermal infrared mode, which is obtained by and are obtained by converging. gt_v and gt_t are the visible light annotation and thermal infrared annotation, respectively. The independent annotation of visible light and thermal infrared modalities can provide modality-specific supervision information for visible light and thermal infrared modalities.
[0064] L cls , L obj , L obj_v , L obj_t is the cross entropy loss, L bbox , L bbox_v , L bbox_t is the CIoU loss. cls , obj and λ bbox are the corresponding weights for classification loss, confidence loss, and bounding box loss, which are 0.5, 0.5, and 0.05, respectively.
[0065] L det =λ cls L cls (p_f,gt_f)+λ obj L obj (p_f,gt_f)+λ bbox L bbox (p_f,gt_f)+λ obj L obj_v (p_v,gt_v)+λ bbox L bbox_v (p_v,gt_v)+λ obj L obj_t (p_t,gt_t)+λ bbox L bbox_t (p_t,gt_t)
[0066] In this embodiment, after step S4, deep supervision is used for training, and the total loss function is as follows:
[0067] L total =L seg +L det
[0068] Among them, L seg and L det They are the semantic segmentation loss of step S2 and the object detection loss of step S4 respectively.
[0069] In order to verify the effectiveness of MSAS-YOLOv5, this embodiment uses the public dataset KAIST to train and test the network framework and compares it with other methods. The KAIST dataset contains 7595 pairs of visible light and infrared image pairs for training and 2252 pairs of visible light and infrared image pairs for testing. The image size is 512×640 pixels. It can also be divided into three sub-datasets: all-day, daytime, and nighttime, to test the performance of the multi-source target detection algorithm for overall data, daytime data, and nighttime data.
[0070] The algorithm proposed in this example is compared with five latest change detection methods, CIAN (Cross-modality Interactive Attention Network), MSDS-RCNN (Multispectral Simultaneous Detection and Segmentation R-CNN), AR-CNN (Aligned Region CNN), MBNet (Modality Balance Network) and UGCML (Uncertainty-Guided Cross-Modal Learning). The specific results are shown in Table 1. There are two evaluation indicators. The average logarithmic missed detection rate (abbreviated as MR) is used for accuracy. -2 ) indicator. The smaller the value of this indicator, the less missed detection the target detector has and the higher the accuracy. The speed is measured in frames per second (FPS). Combined with Table 1, it can be seen that the average logarithmic missed detection rate indicator of the method in this embodiment (MSAS-YOLOv5) on the all-day sub-dataset reached the lowest 5.89%, indicating that it has the highest detection accuracy. The speed reached 24.39FPS, exceeding the other multi-source target detection methods in the table. Compared with the second best (MBNet), MSAS-YOLOv5 reduced the average logarithmic missed detection rate by 2.27 percentage points on the all-day sub-dataset, reduced the average logarithmic missed detection rate by 1.01 percentage points on the daytime sub-dataset, and reduced the average logarithmic missed detection rate by 4.24 percentage points on the night sub-dataset. Figure 2 The following is a schematic diagram showing the comparison of three groups of multi-source target detection results between the method of this embodiment and the mainstream existing methods. Figure 2 As can be seen from the first row, the detection results of the method in this embodiment are more comprehensive and closer to the actual detection situation. In the second row, there are many small pedestrian targets in the input image. The method in this embodiment can accurately detect small pedestrians, while other comparison methods have missed detections. The third row is an input image of a night scene. The detection results of the method in this embodiment are still more realistic than those of other methods.
[0071] Table 1 is a comparison table of test results of the method of the embodiment of the present invention and other existing methods
[0072]
[0073] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should be included in the protection scope of the present invention.
Claims
1. A RGB-infrared multi-source image target detection method based on single-modal auxiliary supervision and YOLOv5, Features It includes four parts: backbone network part, bottleneck part, segmentation part and detection part; the backbone network part is used to extract the convolution feature maps of visible light and thermal infrared images; the bottleneck part is used to combine the feature maps of visible light and thermal infrared modalities from top to bottom and bottom to top, and obtain the features of each level for fusion modality, visible light modality and thermal infrared modality; the segmentation part predicts semantic segmentation of the feature maps of visible light and thermal infrared modalities through convolutional layers as an auxiliary supervision task; the detection part performs target detection on the features of each level of visible light and thermal infrared modalities, and performs decision-level fusion on the prediction results of fusion, visible light and thermal infrared modalities; and supervises the prediction of visible light and thermal infrared modalities with the annotations under their respective modalities to provide auxiliary information for single-modality prediction; The specific steps include: Step 1: Combine visible light and thermal infrared images rgb and I ir Input backbone network part for feature extraction, visible light and thermal infrared image I rgb and I ir Pass through the visible light convolution module in sequence and Thermal Infrared Convolution Module Where i∈{1,2,3,4,5}, multiple feature pairs are obtained and in is the visible light image I rgb In the visible light convolution module After the extracted features, is the thermal infrared image I ir In the thermal infrared convolution module The features extracted after and After that, the feature and Perform channel splicing and send it to the spatial pyramid pooling module to obtain the processed multi-source features Step 2: Add the visible light convolution module in step 1 and Thermal Infrared Convolution Module Output feature map and Perform channel splicing and then pass the segmentation convolution module to obtain the semantic segmentation prediction result; Step 3: The features of the backbone network in step 1 And the features obtained by the spatial pyramid pooling module Send to the bottleneck part; in order to achieve single-modality independent prediction, the bottleneck part sets up three groups of structures: fusion modality bottleneck, thermal infrared modality bottleneck, and visible light modality bottleneck, and extracts three pairs of multi-scale features of fusion modality, thermal infrared modality, and visible light modality respectively; The bottleneck structure of the fusion mode is as well as As input, and Perform channel splicing as multi-source feature processing and output multi-scale features The bottleneck structure of thermal infrared mode is as well as As input, output thermal infrared multi-scale features The bottleneck structure of the visible light mode is as well as As input, output visible light multi-scale features Step 4: Use the detection module to perform target detection on the three pairs of multi-scale features obtained from the bottleneck parts of the three modes in step 3 to obtain object predictions in each mode and scale; For the prediction of the three modes of fusion, thermal infrared, and visible light, decision-level fusion is used to fuse the predictions at the same scale; the detection results of the three scales obtained by the final fusion are then processed by non-maximum suppression to obtain the target detection prediction output of the input multi-source image.
2. According to the RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5 according to claim 1, Features: The visible light convolution module in step 1 and Thermal Infrared Convolution Module They are both composed of a basic convolution module and a cross-stage local convolution module in series; the cross-stage local convolution module splits the input feature map into two feature maps F according to the channel. p1 and F p2 , F p1 Only one basic convolution module is used for residual connection, F p2 Then, through multiple basic convolution modules, the two parts of the feature map are finally channel-joined and passed through the last basic convolution module to obtain the output of the cross-stage local convolution module.
3. According to the RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5 according to claim 1, Features: The visible light convolution module and thermal infrared convolution module and Parameters are independent.
4. According to the RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5 according to claim 1, Features: The segmentation convolution module in step 2 refers to a structure consisting of a 3×3 convolution layer, a batch normalization, a rectified linear unit, and a 3×3 convolution layer connected in series.
5. According to the RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5 according to claim 1, Features: The three-modal bottleneck part in step 3 processes the multi-scale feature maps using a pathway aggregation network PAN structure containing top-down and bottom-up pathways.
6. According to the RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5 according to claim 1, Features: The basic convolution modules in the backbone network part and the bottleneck part are composed of convolution layers, batch normalization layers and Sigmoid weighted linear units.
7. According to the RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5 according to claim 1, Features: The detection module in step 4 is composed of a 1×1 convolutional layer, and target detection is performed on three levels of feature maps with step sizes of 8, 16, and 32 respectively. The parameters of the three levels of detection modules are independent; in order to reduce the number of learning parameters, the detection modules of fusion, visible light, and thermal infrared modalities share parameters.
8. According to the RGB-infrared multi-source image target detection method based on single-modality auxiliary supervision and YOLOv5 according to claim 1, Features: The decision-level fusion of the detection results of the three modalities in step 4 refers to weighted averaging the detection results of the fusion, visible light and thermal infrared modalities, and the weight coefficients of the three modalities are 0.5, 0.25 and 0.25 respectively.
Citation Information
Patent Citations
A deep neural network architecture of bounding box segmentation supervision for accurate real-time pedestrian detection of visible light and infrared images
CN111209810A
Multi-modal pedestrian detection method based on improved YOLO model
CN111767882A
Multi-spectral target detection method based on multi-modal cross guidance learning
CN113361466A
Multi-modal multi-scale feature fusion target detection method based on generative adversarial network
CN113627504A
Cross-scale infrared pedestrian detection method and system, medium, equipment and terminal
CN115331162A
