A recognition method and system based on RGB-NIR multi-modal image fusion

By optimizing the RGB-NIR feature fusion method in two steps, the problem of accurate recognition of RGB-NIR multimodal image fusion in complex environments is solved, and efficient recognition and real-time detection of objects with similar colors are achieved.

CN118968239BActive Publication Date: 2026-11-24REALMAN ROBOT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410973465.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2026-11-24
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

Existing RGB-NIR multimodal image fusion methods struggle to accurately identify objects of similar colors in complex environments, especially in nighttime scenes where target detection accuracy is low and real-time inference speed is insufficient.

Method used

A two-step optimization method for fusing RGB-NIR features is adopted. Feature extraction is performed through a bottleneck module and image fusion is performed through a dual-modal fusion module. By utilizing depthwise separable convolution and channel-level attention mechanism, combined with shared convolution kernel parameters and loss function optimization, feature representation and real-time recognition of multimodal images can be achieved.

Benefits of technology

It improves the accuracy of recognizing similar colored objects in nighttime scenes, while maintaining real-time inference speed, thus enhancing the precision and recall of object detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118968239B_ABST
    Figure CN118968239B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of target detection technology and aims to solve the problems of inaccurate target object recognition in existing methods, particularly for objects of similar colors and in nighttime scenes. To this end, this invention discloses a recognition method and system based on RGB-NIR multimodal image fusion. The method includes the following steps: acquiring RGB and NIR images of the object to be identified; processing the RGB and NIR images sequentially through convolutional layers and max-pooling layers to obtain RGB and NIR feature maps, respectively; performing feature extraction and dual-modal image fusion multiple times on the RGB and NIR feature maps; and determining the object to be identified based on the final fused feature map. Feature extraction is performed using a bottleneck module, and dual-modal image fusion is performed using a dual-modal fusion module. This method can solve the problem of target object detection accuracy in complex environments such as darkness and when the color and texture of the target object are similar, and can achieve real-time inference speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of target detection technology, and specifically to a recognition method and system based on RGB-NIR multimodal image fusion. Background Technology

[0002] In recent years, with the support of high-performance hardware computing resources and the ease of acquiring large-scale visible light image (RGB) datasets, computer vision technology based on deep neural networks can be prepared to guide robots to exhibit good recognition performance under normal lighting conditions. However, even using large-scale RGB images of complex environments, accurately detecting targets in complex environments such as darkness and when the colors and textures of the objects being tested are similar remains a challenging problem.

[0003] Intuitively, in daytime scenes, objects in RGB images exhibit clearer texture information than those in infrared images. Conversely, in nighttime scenes, infrared images provide clearer object shape information than RGB images. Therefore, the fusion of RGB-Near Infrared (NIR) multimodal images based on deep convolutional networks has been extensively studied.

[0004] Multimodal fusion can be categorized into early fusion, late fusion, and mid-stage fusion based on the different fusion regions of multimodal features. Early fusion refers to fusing multimodal images before they are input into the backbone network. Existing literature has published a novel convolutional neural network for aligning regions to address the weak alignment problem between two modalities. This method enhances the saliency of target features in RGB images using only near-infrared thermal images. However, early fusion methods tend to generate excessive noise when pixel shifts exist between different modalities. Mid-stage fusion is a feature-level fusion method that fuses feature maps between modalities at different feature extraction stages of the backbone network. Other literature reports using RGB, infrared, and polarization images as inputs to the three backbone feature extraction networks of Faster R-CNN (algorithm), and then cascading the output feature maps for modal fusion. Results show that models using multimodal images as input have good recognition performance for difficult-to-identify targets in complex environments, but introducing multiple branches leads to a decrease in detection speed. In late-stage fusion methods, the parameters of the backbone feature extraction networks for the two modalities are completely independent. This prevents the network from learning complementary information between modalities and the unique properties of each modality, thus limiting the model's performance. Another paper reports a fusion of detection results from RGB-NIR multimodal images at the decision layer using a shared Faster R-CNN feature extraction network. Compared to the unfused results, the detection accuracy for fruits with similar colors improved from 81.6% to 83.8%. However, late-stage fusion methods linearly fuse the target information output from each independent network model's prediction head. Furthermore, introducing multiple branches leads to a decrease in detection speed.

[0005] RGB-NIR multimodal fusion for object detection leverages complementary information between modalities, offering advantages in many applications. However, in some existing methods, the RGB and NIR images are not aligned, resulting in the same target appearing in different positions in both modalities. This misalignment of the RGB-NIR images increases the difficulty of fusion.

[0006] Therefore, there is an urgent need for a network that can solve the problem of similar colored objects and can accurately identify them in nighttime scenes, while also achieving real-time inference speed. Summary of the Invention

[0007] (I) Purpose of the Invention

[0008] The purpose of this invention is to provide a recognition method and system based on RGB-NIR multimodal image fusion. This method improves the model recognition performance by adopting a two-step optimization and fusion of RGB-NIR features. It inherits the real-time inference speed of the RGB network structure and has the powerful feature representation performance of multimodal image fusion. This method solves the problem of accurately identifying objects with similar colors and in nighttime scenes, while also achieving real-time inference speed.

[0009] (II) Technical Solution

[0010] To address the above problems, a first aspect of the present invention provides a recognition method based on RGB-NIR multimodal image fusion, comprising the following steps:

[0011] Acquire the RGB and NIR images of the object to be identified;

[0012] The RGB image and the NIR image are processed sequentially through a convolutional layer and a max pooling layer to obtain RGB feature maps and NIR feature maps, respectively.

[0013] The RGB feature map and the NIR feature map are subjected to feature extraction and dual-modal image fusion multiple times to obtain the final fused feature map;

[0014] The object to be identified is determined based on the final fused feature map;

[0015] The feature extraction is performed through the bottleneck module, and the bimodal image fusion is performed through the bimodal fusion module.

[0016] Furthermore, the dual-modal image fusion is performed through a dual-modal fusion module, and the specific steps include:

[0017] The RGB and NIR extracted features obtained by the bottleneck module are concatenated according to channels to obtain the concatenated RGB-NIR aggregated features.

[0018] Pooling is performed on the aggregated features of RGB-NIR to obtain global embedding features in the channel dimension, and channel-level attention vectors are obtained based on the global embedding features;

[0019] The channel-level attention vector is multiplied by the extracted RGB features and then added element by element to obtain the first RGB feature map;

[0020] The channel-level attention vector is multiplied by the NIR extracted features and then added element by element to obtain the first NIR feature map;

[0021] The first RGB feature map and the first NIR feature map are concatenated along the channel dimension to form a high-level input feature map. The high-level input feature map is then corrected to obtain a corrected high-level input feature map.

[0022] The corrected high-level input feature map is multiplied by the extracted RGB features and then added element by element to obtain the second RGB feature map;

[0023] The corrected high-level input feature map is multiplied by the NIR extracted features and then added element by element to obtain the second NIR feature map;

[0024] Finally, the second RGB feature map and the second NIR feature map are added element-wise to obtain a fused feature map.

[0025] Furthermore, the multiple feature extractions and dual-modal image fusions performed on the RGB and NIR feature maps to obtain the final fused feature map specifically include:

[0026] The first bottleneck module is used to extract features from the RGB feature map and the NIR feature map to obtain the first RGB extracted features and the first NIR extracted features.

[0027] The second bottleneck module is used to extract the first RGB extraction feature and the first NIR extraction feature respectively to obtain the second RGB extraction feature and the second NIR extraction feature;

[0028] The dual-modal fusion module is used to perform a first dual-modal image fusion on the second RGB extracted features and the second NIR extracted features to obtain a first fused feature map;

[0029] The third bottleneck module is used to extract features from the first fused feature map to obtain the third RGB extracted features and the third NIR extracted features.

[0030] The second dual-modal image fusion is performed on the third RGB extracted features and the third NIR extracted features using a dual-modal fusion module to obtain a second fused feature map;

[0031] The fourth bottleneck module is used to extract features from the second fused feature map to obtain the fourth RGB extracted features and the fourth NIR extracted features.

[0032] The fourth RGB extracted features and the fourth NIR extracted features are fused a third time using a dual-modal fusion module to obtain the final fused feature map.

[0033] Furthermore, the feature extraction of the RGB feature map and the NIR feature map using the first bottleneck module specifically includes: performing feature extraction on the first bottleneck module of RGB and the first bottleneck module of NIR using shared convolutional kernel parameters. The first bottleneck module includes the first bottleneck module of RGB and the first bottleneck module of NIR.

[0034] Furthermore, the bottleneck module employs a depthwise separable convolution DSConv, with kernel sizes of 1*1 and 3*3.

[0035] Furthermore, the process of obtaining channel-level attention vectors based on global embedding features specifically includes: generating channel-level attention vectors by using 1×1 convolution and the Sigmoid function to obtain the global embedding features.

[0036] Furthermore, the step of concatenating the first RGB feature map and the first NIR feature map along the channel dimension to form a high-level input feature map, and then correcting the high-level input feature map to obtain a corrected high-level input feature map specifically includes:

[0037] The first RGB feature map and the first NIR feature map are concatenated along the channel dimension, and a 1×1 convolution is used to achieve channel dimensionality reduction.

[0038] The Softmax function is used as a correction coefficient on the high-level input feature map to filter out unimportant features.

[0039] Furthermore, determining the object to be identified based on the final fused feature map specifically includes:

[0040] The final fused features are input into the output head of the network model to obtain the predicted output result;

[0041] A loss function is constructed to calculate the loss of the predicted output, and the final screening result is obtained.

[0042] The object to be identified is determined based on the final screening results.

[0043] Furthermore, the formula for the loss function is as follows:

[0044] Loss = L RGBBox +L RGBCls +λ×(L NIRBox +L NIRCls ),

[0045] Among them, L RGBCls and LNIRCls These are the classification losses for the prediction results in RGB and NIR images, respectively, L RGBBox and L NIRBox , respectively, are the position offset losses of the prediction results in the RGB image and the NIR image, and λ is a regularization balance term used to balance the losses between the prediction results of the RGB image and the NIR image.

[0046] Furthermore, the kernel size of the convolutional layer is 7*7, and the kernel size of the max pooling layer is 3*3.

[0047] Furthermore, the first bottleneck module, the second bottleneck module, the third bottleneck module, and the fourth bottleneck module are stacked 3 times, 4 times, 6 times, and 3 times, respectively.

[0048] A second aspect of the present invention provides a recognition system based on RGB-NIR multimodal image fusion, comprising:

[0049] The acquisition module acquires the RGB and NIR images of the object to be identified;

[0050] The processing module processes the RGB image and the NIR image sequentially through a convolutional layer and a max pooling layer to obtain the RGB feature map and the NIR feature map, respectively.

[0051] The fusion module performs feature extraction and dual-modal image fusion on the RGB feature map and the NIR feature map multiple times to obtain the final fused feature map;

[0052] The recognition module determines the object to be recognized based on the final fused feature map;

[0053] The feature extraction is performed through the bottleneck module, and the bimodal image fusion is performed through the bimodal fusion module.

[0054] The recognition method and system based on RGB-NIR multimodal image fusion provided by this invention have the following beneficial effects: This invention obtains a final fused feature map by performing feature extraction and dual-modal image fusion multiple times on the RGB feature map and the NIR feature map; wherein, the feature extraction is performed through a bottleneck module, with each bottleneck extracting features from the bottom layer to the top layer; the dual-modal image fusion is performed through a dual-modal fusion module (TFWF module), which is based on an idea of ​​improving the model recognition performance by optimizing the fusion of RGB-NIR features in two steps. It inherits the real-time inference speed of the RGB network structure and has the powerful feature representation performance of multimodal image fusion, making full use of the complementary characteristics of the two images to help the model fit better. Finally, the object to be identified is determined based on the final fused feature map. This method solves the problem of accurately identifying target objects among objects of similar colors and in nighttime scenes, while also achieving real-time inference speed. Attached Figure Description

[0055] Figure 1 This is a flowchart illustrating the recognition method based on RGB-NIR multimodal image fusion according to an embodiment of the present invention;

[0056] Figure 2 This is a specific embodiment of the recognition method based on RGB-NIR multimodal image fusion of the present invention;

[0057] Figure 3 The specific network structure of the DSconv module;

[0058] Figure 4 This refers to the specific network structure of the Prediction Head module;

[0059] Figure 5 This is a schematic diagram of the dual-modal fusion module (TFWF module) according to a specific embodiment of the present invention;

[0060] Figure 6 This is a flowchart illustrating the recognition system based on RGB-NIR multimodal image fusion according to an embodiment of the present invention;

[0061] Figure 7 Images showing the detection results of an embodiment of the present invention;

[0062] Figure 8 Images showing the detection results of YOLO v5 as a comparison.

[0063] Figure 9 The images show the detection results of YOLO v7 as a comparison.

[0064] Figure 10The images show the detection results of YOLO v8 as a comparison. Detailed Implementation

[0065] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments and the accompanying drawings. It should be understood that these descriptions are merely exemplary and not intended to limit the scope of the invention. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concept of the invention.

[0066] The first aspect of this invention provides a recognition method based on RGB-NIR multimodal image fusion, such as... Figure 1 As shown, it includes the following steps:

[0067] S101, acquire the RGB and NIR images of the object to be identified;

[0068] S102, the RGB image and NIR image are processed by convolutional layer and max pooling layer respectively to obtain RGB feature map and NIR feature map; wherein, the convolution kernel size of the convolutional layer is 7*7 and the convolution kernel size of the max pooling layer is 3*3.

[0069] S103, performs feature extraction and dual-modal image fusion on the RGB feature map and NIR feature map multiple times to obtain the final fused feature map;

[0070] S104, Based on the final fused feature map, determine the object to be identified;

[0071] Feature extraction is performed through the bottleneck module, and bimodal image fusion is performed through the bimodal fusion module. The bottleneck module uses depthwise separable convolution DSConv with kernel sizes of 1*1 and 3*3. The bimodal fusion module is the TFWF module, which takes the data from RGB feature extraction and NIR feature extraction as input and learns the shared feature weights of the fusion through two steps (specified as weight 1 adjustment and weight 2 adjustment in this invention).

[0072] Furthermore, feature extraction and bimodal image fusion are performed multiple times on the RGB and NIR feature maps to obtain the final fused feature map, specifically including:

[0073] Feature extraction is performed on the RGB feature map and the NIR feature map using the first bottleneck module to obtain the first RGB extracted features and the first NIR extracted features. Specifically, feature extraction on the RGB feature map and the NIR feature map using the first bottleneck module includes: feature extraction on the first bottleneck module of RGB and the first bottleneck module of NIR using shared convolutional kernel parameters. The first bottleneck module includes the first bottleneck module of RGB and the first bottleneck module of NIR.

[0074] The second bottleneck module is used to extract the first RGB extraction feature and the first NIR extraction feature respectively, to obtain the second RGB extraction feature and the second NIR extraction feature;

[0075] The first dual-modal image fusion is performed on the second RGB extracted features and the second NIR extracted features using a dual-modal fusion module to obtain the first fused feature map;

[0076] The third bottleneck module is used to extract features from the first fused feature map to obtain the third RGB extracted features and the third NIR extracted features.

[0077] The second dual-modal image fusion is performed on the third RGB extracted features and the third NIR extracted features using a dual-modal fusion module to obtain the second fused feature map;

[0078] The fourth bottleneck module is used to extract features from the second fused feature map to obtain the fourth RGB extracted features and the fourth NIR extracted features.

[0079] The dual-modal fusion module is used to perform a third dual-modal image fusion on the fourth RGB extracted features and the fourth NIR extracted features to obtain the final fused feature map.

[0080] Furthermore, the first bottleneck module, the second bottleneck module, the third bottleneck module, and the fourth bottleneck module are stacked 3 times, 4 times, 6 times, and 3 times, respectively.

[0081] The following is combined Figure 2 As shown, a specific embodiment of the recognition method based on RGB-NIR multimodal image fusion is given below:

[0082] Inspired by the effectiveness of residual networks, the backbone network involved in this method is as follows: Figure 2As shown, the network consists of a parallel dual-branch structure: an RGB feature extraction branch and a NIR feature extraction branch. First, the RGB-NIR modal images are processed by convolutional layers with a kernel size of 7 and max-pooling layers with a kernel size of 3, respectively. Then, the RGB and NIR feature maps output from the pooling layers are processed by bottleneck modules stacked 3, 4, 6, and 3 times, respectively. Each bottleneck module consists of depthwise separable convolutional layers (DSConv) with kernel sizes of 1 and 3. Using DSConv instead of ordinary convolutional kernels aims to reduce the number of model parameters and improve inference speed while maintaining the model's feature extraction capabilities. The RGB and NIR feature data output from the 2nd, 3rd, and 4th bottleneck modules are input into the TFWF designed in this method for bimodal image fusion. The fused output feature map is then used as the input to the next bottleneck module. Modal image fusion is designed to fully utilize the complementary properties of the two images to help the model fit better. Each bottleneck performs feature extraction from the bottom layer to the top layer. Furthermore, convolutional neural networks possess the characteristics of feature locality and translation invariance. As the network depth increases, the features at higher levels become more abstract and diverse, with greater differences between different locations and channels. Therefore, the probability of pixel shifts in different modal images altering the output increases with the depth of the network. Thus, we only use convolutional kernels with shared weight parameters in the lower layers of the network for feature extraction to maintain the stability of feature extraction for the same target across different modalities. Preferably, this method employs an RGB-NIR convolutional kernel parameter sharing strategy in the first bottleneck module. Figure 2 In the diagram, Prediction Head (the output head of the network) outputs the prediction results, and NMS (Non-maximum suppression) filters out the final results. In RGB(3, 640, 640), 3 represents the number of channels, and 640 represents the width and height of the image. In NIR, it is a single channel with an image width and height of 640. Figure 3 This refers to the specific network structure of the DSconv module, where PointwiseConv is a pointwise convolution and DepthwiseConv is a depthwise convolution. Figure 4 This refers to the specific network structure of the Prediction Head module (Box represents location information, and cls represents category information).

[0083] Furthermore, bimodal image fusion is performed through a bimodal fusion module, and the specific steps include:

[0084] The RGB and NIR extracted features obtained by the bottleneck module are concatenated according to channels to obtain the concatenated RGB-NIR aggregated features.

[0085] Pooling is performed on the aggregated features of RGB-NIR to obtain global embedding features in the channel dimension, and channel-level attention vectors are obtained based on the global embedding features. Specifically, obtaining channel-level attention vectors based on global embedding features involves generating channel-level attention vectors by using 1×1 convolution and the Sigmoid function on the global embedding features.

[0086] The channel-level attention vector is multiplied by the extracted RGB features and then added element by element to obtain the first RGB feature map;

[0087] The channel-level attention vector is multiplied by the NIR extracted features and then added element by element to obtain the first NIR feature map;

[0088] The first RGB feature map and the first NIR feature map are concatenated along the channel dimension to form a high-level input feature map. The high-level input feature map is then corrected to obtain a corrected high-level input feature map. Specifically, the first RGB feature map and the first NIR feature map are concatenated along the channel dimension, and a 1×1 convolution is used to achieve channel dimensionality reduction. The Softmax function is used as a correction coefficient for the high-level input feature map to filter out unimportant features.

[0089] The corrected high-level input feature map is multiplied by the extracted RGB features and then added element by element to obtain the second RGB feature map;

[0090] The corrected high-level input feature map is multiplied by the NIR extracted features and then added element by element to obtain the second NIR feature map;

[0091] Finally, the second RGB feature map and the second NIR feature map are added element-wise to obtain the fused feature map.

[0092] The following is combined Figure 5As shown, the specific fusion process of the TFWF module is explained as follows: First, for the first step (weight adjustment 1), the RGB and NIR extracted features obtained by the bottleneck module are concatenated by channel to obtain the concatenated RGB-NIR aggregated features. Then, global average pooling (GAP) is performed on the concatenated aggregated features to obtain the global embedding features in the channel dimension. Based on this, weights are generated by using 1×1 convolution and the sigmoid function to obtain channel-level attention vectors. Each element of this channel-level attention vector corresponds to the weight of a channel, representing the importance or salience of that channel. Then, these weights are applied to the initial RGB-NIR features. Specifically, the weight of each channel is multiplied element-wise with the feature map of that channel, so that important channels are given greater weight, while less important channels are relatively suppressed. Finally, the weighted feature map is fused with the initial feature map by element-wise addition. The purpose is to enhance the model's attention to important features while retaining the original feature information and avoiding the loss of key information. The first step process yields the first RGB feature map and the first NIR feature map, respectively. The first step of the processing method is inspired by residual connections, in order to avoid losing some important but insufficiently focused feature information.

[0093] In the second step (weight adjustment), the first RGB feature map and the first NIR feature map obtained independently in the first step are concatenated along the channel dimension to form a high-level input feature map. A 1×1 convolution is then applied to the high-level input feature map to achieve channel dimensionality reduction, ensuring that it is identical to the feature map from the first step at the channel level. Subsequently, the Softmax function is used as a correction coefficient for the high-level input feature map to filter out unimportant feature information, thereby improving the intermodal feature response. Finally, the corrected feature map is multiplied by the initial RGB-NIR features and summed element-wise to obtain the weighted second RGB feature map and the second NIR feature map. Finally, the two modal images (the second RGB feature map and the second NIR feature map) are summed pixel-wise to obtain the final modal fusion output feature map (fusion feature map).

[0094] Figure 5 In the diagram, 'c' represents concatenation along the channel dimension, and Global Average Pooling (GAP) is used. 'Fout' represents the output of this module, and the input to this module is 'Frgb' and 'FNIR' (where 'Frgb' represents the extracted RGB features and 'FNIR' represents the extracted NIR features). 'Conv' represents convolution.

[0095] Furthermore, based on the final fused feature map, the object to be identified is determined, specifically including:

[0096] The final fused features are input into the output head of the network model to obtain the predicted output result;

[0097] A loss function is constructed to calculate the loss of the predicted output, and the final selection result is obtained.

[0098] The final selection results determine the objects to be identified.

[0099] The specific implementation of the above steps is as follows:

[0100] The purpose of fusing multimodal images is to improve the network's understanding of target features and achieve better target recognition results. However, due to the parallax of the two cameras, the background of the same target region may differ in multimodal images. Therefore, if only the difference between the model's predicted values ​​and labels in RGB images is used as the loss term during model training, the NIR feature information that has already been fused in the backbone feature extraction network will be interpreted as interference information, thereby reducing the model's detection effectiveness. To reduce the mutual exclusion effect between multimodal images, this method regresses and classifies the predicted bounding boxes of NIR images and incorporates the positional offset loss and classification loss calculated from NIR images. Specifically, the positional offset loss and classification loss obtained from RGB-NIR are weighted and combined to construct a loss function for RGB-NIR multimodal image fusion to help the network comprehensively understand the fused features. The formula for the loss function is as follows:

[0101] Loss = L RGBBox +L RGBCls +λ×(L NIRBox +L NIRCls ),

[0102] Among them, L RGBCls and L NIRCls These are the classification losses for the prediction results in RGB and NIR images, respectively, L RGBBox and L NIRBox , respectively, are the position offset losses of the prediction results in the RGB image and the NIR image, and λ is a regularization balance term used to balance the losses between the prediction results of the RGB image and the NIR image.

[0103] A second aspect of the present invention provides a recognition system based on RGB-NIR multimodal image fusion, such as... Figure 6 As shown, it includes:

[0104] The acquisition module 201 acquires the RGB and NIR images of the object to be identified;

[0105] Processing module 202 processes the RGB image and NIR image sequentially through convolutional layers and max pooling layers to obtain RGB feature maps and NIR feature maps;

[0106] The fusion module 203 performs feature extraction and dual-modal image fusion on the RGB feature map and NIR feature map multiple times to obtain the final fused feature map;

[0107] The recognition module 204 determines the object to be recognized based on the final fused feature map;

[0108] Feature extraction is performed using the bottleneck module, and bimodal image fusion is performed using the bimodal fusion module.

[0109] The experimental verification and result analysis of this invention are as follows:

[0110] This experiment uses precision, recall, and mean class precision (mAP) as metrics to validate the performance of the deep learning model. mAP (mean Average Precision) is the average of AP (Average Precision), and it is a primary evaluation metric for object detection algorithms. A higher mAP value indicates better detection performance on a given dataset. The relevant validation metric formulas are expressed as follows:

[0111]

[0112] Where TP represents the number of images correctly predicted as positive samples by the model, FP represents the number of images incorrectly predicted as positive samples by the model, FN represents the number of images incorrectly predicted as negative samples by the model, K represents the total number of categories, APi represents the precision value obtained for the i-th category, and P(r) represents the Pr curve, which is the precision and recall curve. This represents the area formed by the integral of the PR curve.

[0113] Quantitative analysis and predictive visualization analysis were performed to compare our method with existing methods. The quantitative analysis results are shown in Table 1. FPS (frames per second) represents the number of image frames processed per second; a higher FPS indicates better real-time performance. mAP@0.5 (mean Average Precision (IoU = 0.5)) calculates the AP for all images in each class when IoU is set to 0.5, and then averages the AP across all classes. mAP@0.5 is an indicator for evaluating the performance of object detection models. The predictive visualization analysis results are shown in Table 1. Figure 7-10 ,in, Figure 7 These are images showing the detection results of an embodiment of the present invention. Figure 8 Images showing the detection results of YOLO v5 as a comparison. Figure 9 The images show the detection results of YOLO v7 as a comparison. Figure 10The images show the detection results of YOLO v8 as a comparison.

[0114] Table 1. Results of the comparative experiment

[0115] method Accuracy / % Recall rate / % mAP@0.5 FPS YOLO v5 85.5 85.4 88.7 120 YOLO v7 86.1 82.8 88.5 251 YOLOv8 90.6 85.1 88.9 232 This method 93.4 87.0 91.9 335

[0116] As shown in Table 1, the recognition method based on RGB-NIR multimodal image fusion of this invention achieves higher scores than the comparative method in all indicators, indicating that this method achieves the best quantitative results and has high prediction accuracy. Furthermore, the detection performance of this method is as follows: Figure 7 As shown in the figure, the detection meaning of person 0.32 is as follows: person represents the predicted category, 0.32 represents the confidence score, which is a number between 0 and 1. The larger the confidence score, the greater the model's confidence that the target belongs to person, and the more accurate the model's prediction. The same applies to car 0.57. The comparison method ( Figure 8-10 Both methods showed missed detections and false detections. However, through visual comparison, it can be seen that the method of this invention did not have serious missed detections or false detections, and the prediction accuracy was high. This method can effectively identify vehicles and pedestrians.

[0117] Those skilled in the art will understand that embodiments of the present invention can be provided as methods or systems. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects.

[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A recognition method based on RGB-NIR multimodal image fusion, characterized in that, Includes the following steps: Acquire the RGB and NIR images of the object to be identified; The RGB image and the NIR image are processed sequentially through a convolutional layer and a max pooling layer to obtain RGB feature maps and NIR feature maps, respectively. The RGB and NIR feature maps are subjected to feature extraction and dual-modal image fusion multiple times to obtain the final fused feature map. The feature extraction is performed using a bottleneck module, which employs depthwise separable convolution DSConv and includes the following steps: Feature extraction is performed on the RGB feature map and the NIR feature map to obtain the first RGB extracted features and the first NIR extracted features; The first RGB extraction feature and the first NIR extraction feature are extracted respectively to obtain the second RGB extraction feature and the second NIR extraction feature; The second RGB extracted features and the second NIR extracted features are subjected to a first dual-modal image fusion to obtain a first fused feature map; Feature extraction is performed on the first fused feature map to obtain the third RGB extracted features and the third NIR extracted features; A second bimodal image fusion is performed on the third RGB extracted features and the third NIR extracted features to obtain a second fused feature map; Feature extraction is performed on the second fused feature map to obtain the fourth RGB extracted features and the fourth NIR extracted features; A third bimodal image fusion is performed on the fourth RGB extracted features and the fourth NIR extracted features to obtain the final fused feature map; The object to be identified is determined based on the final fused feature map; The dual-modal image fusion is performed through a dual-modal fusion module, which includes: The RGB and NIR extracted features obtained by the bottleneck module are concatenated according to channels to obtain the concatenated RGB-NIR aggregated features. Pooling is performed on the aggregated features of RGB-NIR to obtain global embedding features in the channel dimension, and channel-level attention vectors are obtained based on the global embedding features; The channel-level attention vector is multiplied by the extracted RGB features and then added element by element to obtain the first RGB feature map; The channel-level attention vector is multiplied by the NIR extracted features and then added element by element to obtain the first NIR feature map; The first RGB feature map and the first NIR feature map are concatenated along the channel dimension to form a high-level input feature map. The high-level input feature map is then corrected to obtain a corrected high-level input feature map. The corrected high-level input feature map is multiplied by the extracted RGB features and then added element by element to obtain the second RGB feature map; The corrected high-level input feature map is multiplied by the NIR extracted features and then added element by element to obtain the second NIR feature map; Finally, the second RGB feature map and the second NIR feature map are added element-wise to obtain a fused feature map.

2. The recognition method based on RGB-NIR multimodal image fusion according to claim 1, characterized in that, The process of repeatedly extracting features from the RGB feature map and the NIR feature map, and fusing the dual-modal image to obtain the final fused feature map, specifically includes: Feature extraction is performed on the RGB feature map and the NIR feature map using the first bottleneck module; The first RGB extraction feature and the first NIR extraction feature are extracted using the second bottleneck module respectively; The dual-modal fusion module is used to perform the first dual-modal image fusion on the second RGB extracted features and the second NIR extracted features; The third bottleneck module is used to extract features from the first fused feature map; A second bimodal image fusion is performed on the third RGB extracted features and the third NIR extracted features using a bimodal fusion module; The fourth bottleneck module is used to extract features from the second fused feature map; A third bimodal image fusion is performed on the fourth RGB extracted features and the fourth NIR extracted features using a bimodal fusion module.

3. The recognition method based on RGB-NIR multimodal image fusion according to claim 2, characterized in that, The step of using the first bottleneck module to extract features from the RGB feature map and the NIR feature map specifically includes: using shared convolutional kernel parameters to extract features from the first bottleneck module of RGB and the first bottleneck module of NIR. The first bottleneck module includes the first bottleneck module of RGB and the first bottleneck module of NIR.

4. The recognition method based on RGB-NIR multimodal image fusion according to claim 1, characterized in that, The depthwise separable convolution DSConv has kernel sizes of 1*1 and 3*3.

5. The recognition method based on RGB-NIR multimodal image fusion according to claim 1, characterized in that, Obtaining channel-level attention vectors based on the global embedding features specifically includes: generating channel-level attention vectors using the global embedding features through 1 × 1 convolution and the Sigmoid function.

6. The recognition method based on RGB-NIR multimodal image fusion according to claim 1, characterized in that, The step of concatenating the first RGB feature map and the first NIR feature map along the channel dimension to form a high-level input feature map, and then correcting the high-level input feature map to obtain a corrected high-level input feature map, specifically includes: The first RGB feature map and the first NIR feature map are concatenated along the channel dimension, and a 1 × 1 convolution is used to achieve channel dimensionality reduction. The Softmax function is used as a correction coefficient on the high-level input feature map to filter out unimportant features.

7. The recognition method based on RGB-NIR multimodal image fusion according to claim 1, characterized in that, The step of determining the object to be identified based on the final fused feature map specifically includes: The final fused features are input into the output head of the network model to obtain the predicted output result; A loss function is constructed to calculate the loss of the predicted output, and the final screening result is obtained. The object to be identified is determined based on the final screening results.

8. The recognition method based on RGB-NIR multimodal image fusion according to claim 7, characterized in that, The formula for the loss function is as follows: , in, and These are the classification losses for the prediction results in RGB and NIR images, respectively. and These are the location offset losses of the prediction results in RGB and NIR images, respectively. It is a regularization balance term used to balance the loss between the prediction results of RGB images and NIR images.

9. The recognition method based on RGB-NIR multimodal image fusion according to claim 1, characterized in that, The kernel size of the convolutional layer is 7*7, and the kernel size of the max pooling layer is 3*3.

10. The recognition method based on RGB-NIR multimodal image fusion according to claim 2, characterized in that, The first bottleneck module, the second bottleneck module, the third bottleneck module, and the fourth bottleneck module are stacked 3 times, 4 times, 6 times, and 3 times, respectively.

11. A recognition system based on RGB-NIR multimodal image fusion, characterized in that, include: The acquisition module acquires the RGB and NIR images of the object to be identified; The processing module processes the RGB image and the NIR image sequentially through a convolutional layer and a max pooling layer to obtain the RGB feature map and the NIR feature map, respectively. The fusion module performs feature extraction and dual-modal image fusion multiple times on the RGB feature map and the NIR feature map to obtain the final fused feature map. The feature extraction is performed by the bottleneck module, which uses depthwise separable convolution DSConv and includes the following steps: Feature extraction is performed on the RGB feature map and the NIR feature map to obtain the first RGB extracted features and the first NIR extracted features; The first RGB extraction feature and the first NIR extraction feature are extracted respectively to obtain the second RGB extraction feature and the second NIR extraction feature; The second RGB extracted features and the second NIR extracted features are subjected to a first dual-modal image fusion to obtain a first fused feature map; Feature extraction is performed on the first fused feature map to obtain the third RGB extracted features and the third NIR extracted features; A second bimodal image fusion is performed on the third RGB extracted features and the third NIR extracted features to obtain a second fused feature map; Feature extraction is performed on the second fused feature map to obtain the fourth RGB extracted features and the fourth NIR extracted features; A third bimodal image fusion is performed on the fourth RGB extracted features and the fourth NIR extracted features to obtain the final fused feature map; The recognition module determines the object to be recognized based on the final fused feature map; The dual-modal image fusion is performed through a dual-modal fusion module, which includes: The RGB and NIR extracted features obtained by the bottleneck module are concatenated according to channels to obtain the concatenated RGB-NIR aggregated features. Pooling is performed on the aggregated features of RGB-NIR to obtain global embedding features in the channel dimension, and channel-level attention vectors are obtained based on the global embedding features; The channel-level attention vector is multiplied by the extracted RGB features and then added element by element to obtain the first RGB feature map; The channel-level attention vector is multiplied by the NIR extracted features and then added element by element to obtain the first NIR feature map; The first RGB feature map and the first NIR feature map are concatenated along the channel dimension to form a high-level input feature map. The high-level input feature map is then corrected to obtain a corrected high-level input feature map. The corrected high-level input feature map is multiplied by the extracted RGB features and then added element by element to obtain the second RGB feature map; The corrected high-level input feature map is multiplied by the NIR extracted features and then added element by element to obtain the second NIR feature map; Finally, the second RGB feature map and the second NIR feature map are added element-wise to obtain a fused feature map.

Citation Information

Patent Citations

  • Multi-modal feature target detection method based on dynamic convolution and attention mechanism

    CN116452937A

  • Multi-modal image segmentation method based on cross attention

    CN117911426A