Infrared-visible light combined target detection method oriented to edge computing scene
By using an infrared-visible light joint target detection method using feature extraction and fusion modules combined with non-maximum suppression algorithms in edge computing scenarios, the problem of high computational complexity and weak alignment is solved, and efficient and accurate detection results are achieved.
Patent Information
- Application Number
- CN202410723602.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-01
AI Technical Summary
In edge computing scenarios, the traditional infrared-visible light joint target detection method has high computational complexity, resulting in poor real-time performance and scalability, and cannot effectively solve the weak alignment problem, affecting detection accuracy and efficiency.
The feature extraction module and the feature fusion module are used to extract features from the visible and infrared images respectively, and are fused through the feature pyramid module, combined with the non-maximum suppression algorithm to generate the detection frame, and design a detection method with a small amount of calculation.
It improves the detection accuracy, reduces the amount of calculation, realizes real-time target detection on edge devices, solves the problems of low detection accuracy and large amount of calculation, and improves the detection speed and efficiency.
Smart Images

Figure CN118736360A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an infrared-visible light joint target detection method for edge computing scenarios, and belongs to the field of computer vision. Background Art
[0002] As a very important task in the field of computer vision, target detection is widely used in various fields such as autonomous driving, medical image analysis, industrial inspection, aerospace, etc. With the rapid development of the Internet of Things and edge computing technology, traditional target detection algorithms mainly rely on visible light images for target recognition and positioning, but in some specific scenarios, such as rain, fog, low light, night and other non-ideal environments, the effect of visible light images will be limited. Infrared images can capture the thermal information of the target object and are not affected by lighting conditions. They have better effects in these scenarios, but infrared spectrum images lack details such as texture and color. Therefore, combining the information of infrared and visible light images for joint target detection can make full use of the advantages of two different sensors and improve the accuracy and robustness of target detection.
[0003] However, due to inaccurate temporal and spatial synchronization of sensors, target motion, stereoscopic parallax or other factors that cause positional deviation, the position of the same target in different images does not completely overlap. This problem is called the weak alignment problem. Therefore, the two images cannot be stacked and directly passed into the target detection model, which will affect the accuracy of the model detection. In the high-dimensional feature map, each pixel comes from a certain area of the original image. Therefore, fusing the two images in high dimensions can effectively alleviate the weak alignment problem of the two images.
[0004] Existing methods using high-dimensional fusion have good results in infrared-visible light joint detection, but these methods often require a large amount of computation. In practical applications, the large amount of computing resource requirements may limit the real-time and scalability of these methods in edge computing scenarios. Therefore, how to reduce the computational complexity of infrared-visible light joint detection methods and improve their execution efficiency on edge devices has become a technical problem that needs to be solved in the current application of infrared-visible light joint target detection technology to edge scenarios. Summary of the invention
[0005] The technical problem to be solved by the present invention is to propose an infrared-visible light joint target detection method for edge computing scenarios, so as to solve the three problems of unsatisfactory target detection effect of a single data source, weak alignment of infrared-visible light images, and the inability of traditional infrared-visible light joint target detection methods to be carried out on edge devices, so as to achieve the purpose of improving detection accuracy, reducing calculation amount, and accelerating detection speed.
[0006] The technical solution adopted by the present invention is: an infrared-visible light joint target detection method for edge computing scenarios, which allows visible light images and infrared images to pass through feature extraction modules respectively, and the fusion module is designed after feature extraction. The features fused by the fusion module are passed through the feature pyramid module and the detection head to generate a detection frame, and finally the non-maximum suppression algorithm is used to remove duplicate detection frames. The overall design adopts a small amount of calculation.
[0007] The specific steps are:
[0008] Step 1: Use a dual-stream camera on the edge device to simultaneously capture visible light images and infrared images.
[0009] Step 2: The visible light and infrared images are respectively passed into the feature extraction module to obtain three levels of visible light features Frgb and infrared features Fth;
[0010] Step 3: Input the three-level visible light features Frgb and infrared features Fth into an improved and efficient feature fusion module to obtain the fused features Ffusion. The fused features Ffusion include feature maps of three dimensions.
[0011] Step 4: The obtained feature maps of the three dimensions are passed into the feature pyramid module in the order of high, medium and low to fuse the features of different dimensions;
[0012] Step 5: Pass the outputs of the last three feature extraction layers of the feature pyramid module into the target detection head to generate a detection frame;
[0013] Step 6: Use the non-maximum suppression algorithm (NMS) to obtain the most appropriate detection box with high confidence and no duplication.
[0014] Specifically, in Step 2, the feature extraction module consists of the RepNCPSPELAN4 layer and the ADown layer, where the function of RepNCPSPELAN4 is to extract features and the function of ADown is to downsample. It can effectively extract image features and effectively downsample feature images, with small computational complexity, fast extraction speed, and strong adaptability to edge computing scenarios.
[0015] Specifically, in Step 3, the feature fusion module stacks the feature layers Frgb and Fth of the visible light and infrared multi-level image features in an interlaced manner, so that the number of channels is increased to twice the original number, and then uses 1×1 convolution to reduce the number of channels to half of the original number.
[0016] Specifically, in Step 5, the target detection head adopts an anchor free detection box generation method and uses the feature pyramid commonly used in target detection to fuse feature maps from different dimensions, which can effectively improve the detection performance, especially for small targets.
[0017] Preferably, in Step 6, a non-maximum suppression algorithm is used to quickly clean up duplicate and low-confidence detection boxes.
[0018] The beneficial effects of the present invention are as follows: compared with the prior art, the present invention mainly alleviates the problems of low detection accuracy, large calculation amount, poor real-time performance and difficult deployment in the process of edge computing, and realizes efficient and accurate infrared-visible light joint target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is the framework of the infrared-visible light joint target detection method for edge computing scenarios of the present invention;
[0020] Figure 2 It is the feature extraction module;
[0021] Figure 3 It is the feature fusion module;
[0022] Figure 4 is a visualization of the dataset. DETAILED DESCRIPTION
[0023] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.
[0024] Example 1: Figure 1 As shown, an infrared-visible light joint target detection method for edge computing scenarios, the specific steps of the method are as follows:
[0025] Step S1: Use different sensors to capture visible light images and infrared images with the same viewing angle. Due to the inaccurate temporal and spatial synchronization of the sensors, target motion, stereoscopic parallax or other factors that cause position deviation, the position of the same target in different images does not completely overlap. This problem is called the weak alignment problem. Therefore, the infrared image and the visible light image cannot be directly stacked and passed into the model. Fusion in the middle layer of the model can effectively alleviate the weak alignment problem.
[0026] Step S2: The visible light and infrared images are respectively passed into the feature extraction module to obtain three levels of visible light features Frgb and infrared features Fth, such as Figure 2As shown in the figure, the first two layers of the feature extraction module adopt the structure of "3×3 convolution-normalization-SiLU activation function", the feature extraction layer adopts RepNCSPELAN4, and the downsampling adopts ADown. The overall computational complexity of the module is small and the deployment is convenient.
[0027] Step S3: Figure 3 As shown in the figure, the three-level visible light feature Frgb and infrared feature Fth are input into an improved and efficient feature fusion module. The feature fusion module stacks the feature maps of the same dimension from the feature maps of the infrared image and the visible light image. The number of channels of the stacked feature maps is doubled. Then, 1×1 convolution is used to reduce the number of channels of the feature maps to half of the original number, and the fused feature Ffusion is obtained. The fused feature Ffusion includes feature maps of three dimensions. This design reduces the amount of calculation on the one hand, allowing feature maps from different sources to be mixed in a certain proportion. On the other hand, it alleviates the weak alignment problem of the two images and improves the accuracy of model reasoning.
[0028] Step S4: The obtained three-dimensional feature maps are passed to the feature pyramid module in the order of high, medium and low. The feature pyramid is used to generate multi-scale feature maps, which contain semantic information at different levels and can effectively capture the features of the target at different scales, so that the model can better adapt to target objects of different sizes, thereby improving the accuracy and robustness of detection.
[0029] Step S5: The three feature maps generated by the feature pyramid module are passed to the detection head. The detection head adopts an anchor-free detection frame generation method, which can better adapt to targets of different sizes and shapes, thereby improving the accuracy of the detection frame in detecting the size and position of the object.
[0030] Step S6: Use the non-maximum suppression algorithm (NMS) to obtain the most appropriate inspection box with high confidence and no duplication.
[0031] Here are the steps:
[0032] (1) Sort all detected target boxes in descending order according to their scores.
[0033] (2) Select the target box with the highest score as the final output.
[0034] (3) Calculate the IoU (Intersection over Union) value between the target box and other target boxes, and remove the target boxes whose IoU is greater than the set threshold. The calculation formula of IoU is:
[0035]
[0036] A1 is the target frame 1 area, and A2 is the target frame 2 area.
[0037] (4) Repeat the above steps until all target boxes are processed.
[0038] The present invention is practicable as follows based on the specific implementation records:
[0039] 1. Experimental data
[0040] DroneVehicle dataset: The DroneVehicle dataset consists of 56,878 images collected by drones, half of which are RGB images and the rest are infrared images. The shooting environment covers from day to night, with a total of 15,532 pairs (31,064 images) and 441,642 annotated instances. The detection targets include five categories, namely cars, trucks, buses, vans, and freight cars. mAP50 is used as the evaluation indicator. MAP (MeanAverage Precision) refers to the mean average precision. mAP50 means that in the target detection task, only the detection results with IoU greater than or equal to 0.5 are considered when calculating mAP. The visualization effect of the dataset is as follows: Figure 4 .
[0041] 2. Experimental content
[0042] In the experiment, the method of the present invention and several current mainstream methods were used to verify the above data sets. Table 1 shows the mAP50 values of the method of the present invention and several other methods on the DroneVehicle data set. The percentage sign is omitted in the data. IR represents infrared images, RGB represents visible light images, red represents the highest score in each column, and green represents the second highest score in each column.
[0043] Table 1
[0044]
[0045] The overall computational complexity of the model is relatively small, only 152.1GFLOPs. Its computational speed is fast, with an average inference of only 25.2 milliseconds for a set of images, or an inference frame rate of 39.6FPS, which can meet the requirements of edge devices for real-time detection.
[0046] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. An infrared-visible light joint target detection method for edge computing scenarios, Features: The steps include: Step 1: Use a dual-stream camera on the edge device to simultaneously capture visible light images and infrared images; Step 2: The visible light and infrared images are respectively passed into the feature extraction module to obtain three levels of visible light features Frgb and infrared features Fth; Step 3: Input the three-level visible light features Frgb and infrared features Fth into an improved and efficient feature fusion module to obtain the fused features Ffusion. The fused features Ffusion include feature maps of three dimensions. Step 4: The obtained feature maps of the three dimensions are passed into the feature pyramid module in the order of high, medium and low to fuse the features of different dimensions; Step 5: Pass the output of the last three feature extraction layers of the feature pyramid module into the target detection head to generate the detection box; Step 6: Use the non-maximum suppression algorithm NMS to obtain the most appropriate detection box with high confidence and no duplication.
2. According to the infrared-visible light joint target detection method for edge computing scenarios according to claim 1, Features: In Step 2, the feature extraction module consists of the RepNCPSPELAN4 layer and the ADown layer.
3. According to the infrared-visible light joint target detection method for edge computing scenarios according to claim 1, Features: In Step 3, the feature fusion module stacks the feature layers Frgb and Fth of the visible light and infrared multi-level image features in an interlaced manner, increasing the number of channels to twice the original number, and then uses 1×1 convolution to reduce the number of channels to half the original number.
4. According to the infrared-visible light joint target detection method for edge computing scenarios according to claim 1, Features: In Step 5, the target detection head uses an anchor free detection box generation method.
Citation Information
Patent Citations
Model training method, pedestrian detection method, electronic equipment and readable storage medium
CN112949508A
Multispectral pedestrian detection method based on multilayer feature fusion
CN113902965A
Infrared-visible light multi-source image fusion integrated management and control system and device
CN116343329A
Target detection method, system and equipment based on infrared image and visible light image
CN116778227A
Semiconductor laser chip damage detection method and system based on improved YOLO model
CN117078603A
