Multimodal target detection model fusion robustness enhancement method and device based on Bayesian theory
Combining the detection results of infrared and visible light modes through Bayesian theory solves the instability problem of multi-modal target detection models under different lighting conditions, improves detection performance and safety, and is suitable for scenarios such as autonomous driving.
Patent Information
- Application Number
- CN202410697849.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-24
AI Technical Summary
The detection performance of existing multi-modal target detection models is unstable under different environmental lighting conditions. In particular, the early and mid-stage fusion models have instability and inter-modal coherence problems in the feature fusion process. The detection of late-stage fusion models As a result, the fusion strategy is unreasonable, resulting in a decline in detection performance and affecting the security of practical applications.
A multi-modal target detection model fusion robust enhancement method based on Bayesian theory is adopted. By training the single-modal target detection model in infrared and visible light modes, the detection confidence prior distribution is obtained, and the Bayesian formula is used for fusion. The confidence and position of the detection frame are determined, and a two-dimensional Gaussian distribution mapping is established to improve the fusion accuracy of the centroid of the detection frame.
It improves the robustness and detection frame confidence of multi-modal target detection, ensures the retention of detection results for weak and small targets under different lighting conditions, enhances the stability and safety of detection results, and is suitable for application scenarios such as autonomous driving.
Smart Images

Figure CN118691791A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of probability statistics and deep learning, and in particular to a method and device for fusion robust enhancement of a multimodal target detection model based on Bayesian theory. Background Art
[0002] With the development of deep learning, YoLo series, R-CNN series and SSD were proposed and used to handle target detection tasks. The target detection task refers to the confirmation of the location and category of the area of interest in the image. The excellent performance of the target detection model enables it to be widely used in urban transportation, industrial detection and autonomous driving. However, under different ambient lighting conditions, the target detection results of different electromagnetic wave bands are not the same. For example, during the day, the target detection results of the visible light band are better than those of the infrared band, while at night, the target detection results of the visible light band are worse than those of the infrared band. In the autonomous driving scenario, the results of target detection affect the response behavior of the car, and unstable detection results may lead to car accidents. Therefore, it is particularly important to ensure that the results of target detection are not affected by changes in ambient lighting.
[0003] In this context, the multimodal fusion target detection model came into being, aiming to achieve stable and reliable target detection by fusing the information of visible light band and infrared band, overcoming the influence of ambient light changes. Multimodal target detection has achieved good results in the field of visible light and infrared fusion, which can effectively fuse the detection results under the two bands to improve the final detection results.
[0004] According to the different stages of modal information fusion, multimodal target detection models can be divided into the following three categories: early fusion multimodal fusion target detection model, which realizes multimodal detection by designing and training a four-channel target detection model; mid-term fusion multimodal fusion target detection model, which realizes multimodal target detection by simultaneously extracting features from visible light images and infrared images and inputting the extracted features into a target detection model; late fusion multimodal fusion target detection model, which realizes multimodal target detection by simultaneously training a visible light target detection model and an infrared target detection model and fusing the detection results of the two models.
[0005] The above multimodal fusion target detection models all have certain problems in the fusion process. There are instabilities and coherences between different modalities in the process of feature fusion in the early fusion and mid-term fusion. Mid-term fusion also has the problem of difficulty in evaluating the rationality of the fusion method of high-dimensional features of different modalities and the feature screening decision method. Late fusion has the problem of unreasonable fusion strategy of detection results of different modalities. The above problems will cause the detection performance of the multimodal target detection model to decline on some data, which will bring security risks to the practical application of the multimodal fusion target detection model.
[0006] In summary, exploring a robust enhancement method for multimodal fusion target detection can effectively improve the multimodal fusion effect and thus improve the target detection effect, which has important practical significance for the security assurance of the real application of multimodal fusion target detection models. Summary of the invention
[0007] The purpose of the present invention is to address the deficiencies of the prior art and provide a multimodal target detection model fusion robust enhancement method and device based on Bayesian theory.
[0008] The objective of the present invention is achieved through the following technical solution: A multimodal target detection model fusion robust enhancement method based on Bayesian theory, comprising the following steps:
[0009] (1) Perform infrared modality training and visible light modality training on the single-modality target detection model to obtain an infrared target detection model and a visible light target detection model;
[0010] (2) Predict the images of a scene collected in infrared mode and in visible light mode to obtain a fusion result.
[0011] Furthermore, the step (1) specifically includes the following sub-steps:
[0012] (1.1) Obtain the prior distribution of detection confidence: traverse the labels of the training set and obtain the total number of detection targets of each category i And the number of all detected targets number total , the total number of detection targets for each category i Divide by the number of all detected targets number total Normalize and get the category detection confidence prior distribution set {P}: {P} = {p(y1),…,p(y i ),…,p(y N )}, where N represents the total number of N categories of detection targets in the training set, p(y i ) represents any category detection target y iThe prior distribution of confidence in category detection;
[0013] (1.2) Dataset division: The infrared image training data is divided into an infrared modality training set and a test set in a ratio of 8:2, and the visible light image training data is divided into a visible light modality training set and a test set in a ratio of 8:2;
[0014] (1.3) Single-modal target detector training: Select a single-modal target detection model, perform fine-tuning training on the infrared modality training set and the visible light modality training set respectively, and perform performance evaluation on the infrared modality training set and the visible light modality training set respectively to obtain the trained infrared target detection model and the visible light target detection model.
[0015] Furthermore, the step (2) specifically includes the following sub-steps:
[0016] (2.1) Take the image x of the same scene captured in infrared mode inf rared Input to the infrared target detection model to obtain the prediction result output of the infrared target detection model inf rared , the prediction result output of the infrared target detection model inf rared Including infrared prediction detection box confidence set {P inf rared}、Infrared detection frame position set {B inf rared}; Take the same scene in the visible light mode and collect the picture x visible Input into the visible light target detection model to obtain the prediction result output of the visible light target detection model visible , the prediction result output of the visible light target detection model visible Including the visible light target detection box confidence set {P visible}、Visible light measurement frame position set {B visible};
[0017] (2.2) According to the infrared prediction detection box confidence set {P inf rared} and the confidence set of visible light target detection box {P visible} Perform detection box detection confidence fusion to obtain a detection box confidence fusion result set;
[0018] (2.3) According to the infrared detection frame position set {B inf rared} and the visible light frame position set {B visible}Perform detection frame position fusion to obtain a detection frame position fusion result set.
[0019] Furthermore, the step (2.2) is specifically as follows:
[0020] According to the infrared prediction detection box confidence set {P inf rared} and the confidence set of visible light target detection box {P visible} Performing detection box detection confidence fusion, there are three situations:
[0021] Case 1: If the infrared prediction detection box confidence set {P inf rared} and the confidence set of visible light target detection box {P visible} has the same category detection target y i The confidence of the infrared prediction detection box p(y i |x1) and the confidence of the visible light target detection box p(y i |x2), get the same category detection target y i The detection box confidence fusion result conf(y i ) and put it into the detection box confidence fusion result set. The calculation formula is as follows:
[0022]
[0023] Case 2: If the infrared prediction detection box confidence set {P inf rared There is a visible light target detection box confidence set {P visible}, directly put the infrared prediction detection box confidence of the category detection target that does not exist in the detection box into the detection box confidence fusion result set;
[0024] Case 3: If the visible light target detection box confidence set {P visible There is an infrared prediction detection box confidence set {P inf rared} The visible light target detection frame confidence of the non-existent category detection target is directly put into the detection frame confidence fusion result set;
[0025] The above processing is performed on the category detection targets in the above three cases respectively to obtain a complete set of detection box confidence fusion results.
[0026] Furthermore, the step (2.3) is specifically as follows:
[0027] According to the infrared detection frame position set {B inf rared} and the visible light frame position set {B visible} To perform the detection frame position fusion, there are three situations:
[0028] Case 1: If the infrared detection frame position set {B inf rared} and the visible light frame position set {B visible} has the same category detection target y i The infrared detection frame position and visible light measurement frame position Get the centroid of the infrared detection frame position and the centroid of the visible light measurement frame position The centroid of the infrared detection frame position The two-dimensional coordinates of The centroid of the visible light measurement frame position The two-dimensional coordinates of The calculation formula is as follows:
[0029]
[0030] in, Represents the category detection target y i The horizontal coordinate of the upper left corner of the infrared detection frame; Represents the category detection target y i The vertical coordinate of the upper left corner of the infrared detection frame; Represents the category detection target y i The horizontal coordinate of the lower right corner of the infrared detection frame; Represents the category detection target y i The vertical coordinate of the lower right corner of the infrared detection frame; Indicates the centroid of the infrared detection frame position The horizontal axis of Indicates the centroid of the infrared detection frame position The vertical coordinate of The centroid of the visible light measurement frame position The horizontal axis of The centroid of the visible light measurement frame position The vertical coordinate of
[0031] Then, a mapping between two-dimensional coordinates and Gaussian probability was established through two-dimensional Gaussian distribution, and the centroid of the infrared detection frame position was Convert to the corresponding Gaussian probability and the centroid of the visible light measurement frame position Convert to the corresponding Gaussian probability
[0032]
[0033] Then the Gaussian probability and Gaussian probability Multiply the product as the same category detection target y i The centroid of the detection box after fusion Gaussian probability
[0034] The same category detection target y i The length of the fused detection frame is And the width is Then, the Gaussian probability is used to Mapping back to the same category detection target y i The centroid of the detection box after fusion The two-dimensional coordinates of And the two-dimensional coordinates Put it into the detection frame position fusion result set;
[0035] Case 2: If the infrared detection frame position set {B inf rared There exists a visible light measurement frame position set {B visible}, and obtain the two-dimensional coordinates of the centroid of the corresponding fused detection frame according to the infrared detection frame position and put it into the detection frame position fusion result set;
[0036] Case 3: If the visible light frame position set {B visible There is an infrared detection frame position set {B inf rared}, and obtain the two-dimensional coordinates of the centroid of the corresponding fused detection frame according to the visible light measurement frame position and put it into the detection frame position fusion result set;
[0037] The above processing is performed on the category detection targets in the above three cases respectively to obtain a complete set of detection frame position fusion results.
[0038] The present invention also includes a multimodal target detection model fusion robust enhancement device based on Bayesian theory, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used for the above-mentioned multimodal target detection model fusion robust enhancement method based on Bayesian theory.
[0039] The present invention also includes a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned multi-modal target detection model fusion robust enhancement method based on Bayesian theory is implemented.
[0040] The beneficial effects of the present invention are as follows: the present invention provides a multimodal target detection robust enhancement algorithm based on Bayesian theory, which fuses the prediction results of multiple single-modal target detection models without designing a complex multimodal fusion neural network or a multimodal feature extraction method. The Bayesian theory is used as a fusion strategy, and image data aligned and non-aligned in multiple modalities can be processed simultaneously, thereby improving the confidence of the detection frame, ensuring that the prediction of weak targets in each modality can be retained, and enhancing the fusion robustness. The modality can be expanded, and is not limited to the fusion of single infrared modality detection results and single visible light modality detection results. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flowchart of a robust enhancement method for multimodal target detection model fusion based on Bayesian theory;
[0042] Figure 2 The structural diagram of a multimodal target detection model fused with a robust enhancement device based on Bayesian theory. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical scheme and advantages of the present invention more clear, the present invention is further described in detail 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, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0044] The purpose of the present invention is to provide a robust enhancement method for a multimodal fusion target detection model based on Bayesian theory. The present invention combines Bayesian theory with multimodal fusion target detection and can effectively improve the robustness of a late-stage multimodal fusion target detection model.
[0045] The present invention is aimed at a late-stage fusion multimodal fusion target detection model, and provides a new idea for the fusion of multimodal detection results. Different from the traditional late-stage fusion strategy, the present invention proposes a late-stage fusion strategy based on Bayesian theory, which fuses the detection box confidence and detection box position of different modalities through the Bayesian formula, wherein the detection box confidence prior distribution is obtained from the training data, and the detection box position fusion is achieved by fusing the centroids of different modal detection boxes. The centroid of the detection box conforms to the Gaussian distribution, which can improve the detection confidence of the detection box and effectively retain the detection results of weak targets in the image. At the same time, the position of the detection box and the target will not be significantly offset.
[0046] The technical concept of the present invention is as follows: 1. The existing multimodal fusion method needs to design different modal feature extraction methods or different modal fusion neural networks. The present invention adopts a late fusion method to fuse the prediction results of the infrared target detection model and the prediction results of the visible light target detection model. The fusion process includes the fusion of the detection frame confidence and the fusion of the detection frame position. 2. In order to reasonably fuse the prediction results of the two modalities, the present invention adopts Bayesian theory for fusion. When fusing the detection frame confidence, the product of the detection frame confidence of the same target in different modalities is used as the numerator, the probability of the target prediction category in the prior distribution is used as the denominator, and the fractional value is used as the detection frame confidence after fusion. When fusing the detection frame position, the centroid of the detection frame of the target in different modalities is calculated, and a mapping between the centroid position and the two-dimensional Gaussian distribution is established. The probability of the two-dimensional Gaussian distribution corresponding to the centroid of the infrared modality is multiplied by the probability of the two-dimensional Gaussian distribution corresponding to the centroid of the visible light modality, and then the probability value is converted into a position through mapping, so as to obtain the position of the detection frame after fusion. 3. In order to improve the fusion effect and generalization, the present invention does not limit the target detection model under each modality. For the purpose of improving the fusion effect, a series of target detection models are trained in infrared modality and visible light modality, and the target detection model with the highest mAP value in each modality is selected for multimodal fusion.
[0047] Example 1: Figure 1 As shown, the present invention provides a multimodal target detection model fusion robust enhancement method based on Bayesian theory, comprising the following steps:
[0048] (1) The single-modal target detection model is trained in infrared mode and visible light mode respectively to obtain an infrared target detection model and a visible light target detection model.
[0049] The step (1) specifically includes the following sub-steps:
[0050] (1.1) Obtain the prior distribution of detection confidence: traverse the labels of the training set and obtain the total number of detection targets of each category i And the number of all detected targets number total , the total number of detection targets for each category i Divide by the number of all detected targets number total Normalize and get the category detection confidence prior distribution set {P}: {P} = {p(y1),…,p(y i ),…,p(y N )}, where N represents the total number of N categories of detection targets in the training set, p(y i ) represents any category detection target y i The prior distribution of confidence in class detection.
[0051] (1.2) Dataset division: The infrared image training data is divided into an infrared modality training set and a test set in a ratio of 8:2, and the visible light image training data is divided into a visible light modality training set and a test set in a ratio of 8:2.
[0052] (1.3) Single-modal target detector training: Select a single-modal target detection model, perform fine-tuning training on the infrared modality training set and the visible light modality training set respectively, and perform performance evaluation on the infrared modality training set and the visible light modality training set respectively to obtain the trained infrared target detection model and the visible light target detection model.
[0053] (2) Predict the images of a scene collected in infrared mode and in visible light mode to obtain a fusion result.
[0054] The step (2) specifically includes the following sub-steps:
[0055] (2.1) Take the image x of the same scene captured in infrared mode inf rared Input to the infrared target detection model to obtain the prediction result output of the infrared target detection model inf rared , the prediction result output of the infrared target detection model inf rared Including infrared prediction detection box confidence set {P inf rared}、Infrared detection frame position set {B inf rared}; Take the same scene in the visible light mode and collect the picture x visible Input into the visible light target detection model to obtain the prediction result output of the visible light target detection model visible , the prediction result output of the visible light target detection model visible Including the visible light target detection box confidence set {P visible}、Visible light measurement frame position set {B visible}.
[0056] (2.2) According to the infrared prediction detection box confidence set {P inf rared} and the confidence set of visible light target detection box {P visible}Perform detection box detection confidence fusion to obtain a detection box confidence fusion result set.
[0057] The step (2.2) is specifically as follows: according to the infrared prediction detection box confidence set {P inf rared} and the confidence set of visible light target detection box {P visible} Performing detection box detection confidence fusion, there are three situations:
[0058] Case 1: If the infrared prediction detection box confidence set {P inf rared} and the confidence set of visible light target detection box {P visible} has the same category detection target y i The confidence of the infrared prediction detection box p(y i |x1) and the confidence of the visible light target detection box p(y i |x2), get the same category detection target y i The detection box confidence fusion result conf(y i ) and put it into the detection box confidence fusion result set. The calculation formula is as follows:
[0059]
[0060] Case 2: If the infrared prediction detection box confidence set {P inf rared There is a visible light target detection box confidence set {P visible}, and directly put the infrared predicted detection box confidence of the category detection target that does not exist in the detection box into the detection box confidence fusion result set.
[0061] Case 3: If the visible light target detection box confidence set {P visible There is an infrared prediction detection box confidence set {P inf rared}The visible light target detection box confidence of the category detection target that does not exist is directly put into the detection box confidence fusion result set.
[0062] The above processing is performed on the category detection targets in the above three cases respectively to obtain a complete set of detection box confidence fusion results.
[0063] (2.3) According to the infrared detection frame position set {B inf rared} and the visible light frame position set {B visible}Perform detection frame position fusion to obtain a detection frame position fusion result set.
[0064] The step (2.3) is specifically as follows: according to the infrared detection frame position set {B inf rared} and the visible light frame position set {B visible} To perform the detection frame position fusion, there are three situations:
[0065] Case 1: If the infrared detection frame position set {B inf rared} and the visible light frame position set {B visible} has the same category detection target y i The infrared detection frame position and visible light measurement frame position Get the centroid of the infrared detection frame position and the centroid of the visible light measurement frame position The centroid of the infrared detection frame position The two-dimensional coordinates of The centroid of the visible light measurement frame position The two-dimensional coordinates of The calculation formula is as follows:
[0066]
[0067] in, Represents the category detection target y i The horizontal coordinate of the upper left corner of the infrared detection frame; Represents the category detection target y i The vertical coordinate of the upper left corner of the infrared detection frame; Represents the category detection target y i The horizontal coordinate of the lower right corner of the infrared detection frame; Represents the category detection target y i The vertical coordinate of the lower right corner of the infrared detection frame; Indicates the centroid of the infrared detection frame position The horizontal axis of Indicates the centroid of the infrared detection frame position The vertical coordinate of The centroid of the visible light measurement frame position The horizontal axis of The centroid of the visible light measurement frame position The vertical coordinate of .
[0068] Then, a mapping between two-dimensional coordinates and Gaussian probability was established through two-dimensional Gaussian distribution, and the centroid of the infrared detection frame position was Convert to the corresponding Gaussian probability and the centroid of the visible light measurement frame position Convert to the corresponding Gaussian probability
[0069]
[0070] Then the Gaussian probability and Gaussian probability Multiply the product as the same category detection target y i The centroid of the detection box after fusion Gaussian probability
[0071] The same category detection target y i The length of the fused detection frame is And the width is Then, the Gaussian probability is used to Mapping back to the same category detection target y i The centroid of the detection box after fusion The two-dimensional coordinates of And the two-dimensional coordinates Put it into the detection frame position fusion result set.
[0072] Case 2: If the infrared detection frame position set {B inf rared There exists a visible light measurement frame position set {B visible}, and according to the infrared detection frame position, the two-dimensional coordinates of the centroid of the corresponding fused detection frame are obtained and put into the detection frame position fusion result set.
[0073] Case 3: If the visible light frame position set {B visible There is an infrared detection frame position set {B inf rared}, and obtain the two-dimensional coordinates of the centroid of the corresponding fused detection frame based on the visible light measurement frame position and put it into the detection frame position fusion result set.
[0074] The above processing is performed on the category detection targets in the above three cases respectively to obtain a complete set of detection frame position fusion results.
[0075] Example 2: This example relates to a multimodal target detection model fusion robust enhancement device based on Bayesian theory, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used for a multimodal target detection model fusion robust enhancement method based on Bayesian theory in the above-mentioned example 1; the device embodiment can be applied to any device with data processing capabilities, and the any device with data processing capabilities can be a device or apparatus such as a computer.
[0076] like Figure 2At the hardware level, the knowledge distillation device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to the software implementation, the present invention does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0077] For the improvement of a technology, it can be clearly distinguished whether it is a hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or a software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0078] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0079] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0080] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0081] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0082] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0083] Embodiment 3: The embodiment of the present invention further provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a multimodal target detection model fusion robust enhancement method based on Bayesian theory of the above-mentioned embodiment 1 is implemented.
[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0085] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A multimodal target detection model fusion robust enhancement method based on Bayesian theory, characterized in that: The following steps are involved: (1) Perform infrared modality training and visible light modality training on the single-modality target detection model to obtain an infrared target detection model and a visible light target detection model; (2) Predict the images of a scene collected in infrared mode and in visible light mode to obtain a fusion result.
2. According to the Bayesian theory-based multimodal target detection model fusion robust enhancement method according to claim 1, it is characterized in that: The step (1) specifically includes the following sub-steps: (1.1) Obtain the prior distribution of detection confidence: traverse the labels of the training set and obtain the total number of detection targets of each category i And the number of all detected targets number total , the total number of detection targets for each category i Divide by the number of all detected targets number total Normalize and get the category detection confidence prior distribution set {P}: {P} = {p(y1),…,p(y i ),…,p(y N )}, where N represents the total number of N categories of detection targets in the training set, p(y i ) represents any category detection target y i The prior distribution of confidence in category detection; (1.2) Dataset division: The infrared image training data is divided into an infrared modality training set and a test set in a ratio of 8:2, and the visible light image training data is divided into a visible light modality training set and a test set in a ratio of 8:2; (1.3) Single-modal target detector training: Select a single-modal target detection model, perform fine-tuning training on the infrared modality training set and the visible light modality training set respectively, and perform performance evaluation on the infrared modality training set and the visible light modality training set respectively to obtain the trained infrared target detection model and the visible light target detection model.
3. According to the Bayesian theory-based multimodal target detection model fusion robust enhancement method of claim 1, it is characterized in that: The step (2) specifically includes the following sub-steps: (2.1) Take the image x of the same scene captured in infrared mode infrared Input to the infrared target detection model to obtain the prediction result output of the infrared target detection model infrared , the prediction result output of the infrared target detection model infrared Including infrared prediction detection box confidence set {P infrared }、Infrared detection frame position set {B infrared }; Take the same scene in the visible light mode and collect the picture x visible Input into the visible light target detection model to obtain the prediction result output of the visible light target detection model visible , the prediction result output of the visible light target detection model visible Including the visible light target detection box confidence set {P visible }、Visible light measurement frame position set {B visible }; (2.2) According to the infrared prediction detection box confidence set {P infrared } and the confidence set of visible light target detection box {P visible } Perform detection box detection confidence fusion to obtain a detection box confidence fusion result set; (2.3) According to the infrared detection frame position set {B infrared } and the visible light frame position set {B visible }Perform detection frame position fusion to obtain a detection frame position fusion result set.
4. According to the Bayesian theory-based multimodal target detection model fusion robust enhancement method of claim 3, it is characterized in that: The step (2.2) is specifically: According to the infrared prediction detection box confidence set {P infrared } and the confidence set of visible light target detection box {P visible } Performing detection box detection confidence fusion, there are three situations: Case 1: If the infrared prediction detection box confidence set {P infrared } and the confidence set of visible light target detection box {P visible }, there are infrared prediction detection box confidence p(yi|x1) and visible light target detection box confidence p(yi|x2) of the same category detection target yi, and the detection box confidence fusion result conf(yi) of the same category detection target yi is obtained and put into the detection box confidence fusion result set. The calculation formula is as follows: Case 2: If the infrared prediction detection box confidence set {P infrared There exists a visible light target detection box confidence set {P visible }, directly put the infrared prediction detection box confidence of the category detection target that does not exist in the detection box into the detection box confidence fusion result set; Case 3: If the visible light target detection box confidence set {P visible There is an infrared prediction detection box confidence set {P infrared } The visible light target detection frame confidence of the non-existent category detection target is directly put into the detection frame confidence fusion result set; The above processing is performed on the category detection targets in the above three cases respectively to obtain a complete set of detection box confidence fusion results.
5. The multimodal target detection model fusion robust enhancement method based on Bayesian theory according to claim 3 is characterized in that: The step (2.3) is specifically: According to the infrared detection frame position set {B infrared } and the visible light frame position set {B visible } To perform the detection frame position fusion, there are three situations: Case 1: If the infrared detection frame position set {B infrared } and the visible light frame position set {B visible } has the same category detection target y i The infrared detection frame position and visible light measurement frame position Get the centroid of the infrared detection frame position and the centroid of the visible light measurement frame position The centroid of the infrared detection frame position The two-dimensional coordinates of The centroid of the visible light measurement frame position The two-dimensional coordinates of The calculation formula is as follows: in, Represents the category detection target y i The horizontal coordinate of the upper left corner of the infrared detection frame; Represents the category detection target y i The vertical coordinate of the upper left corner of the infrared detection frame; Represents the category detection target y i The horizontal coordinate of the lower right corner of the infrared detection frame; Represents the category detection target y i The vertical coordinate of the lower right corner of the infrared detection frame; Indicates the centroid of the infrared detection frame position The horizontal axis of Indicates the centroid of the infrared detection frame position The vertical coordinate of The centroid of the visible light measurement frame position The horizontal axis of The centroid of the visible light measurement frame position The vertical coordinate of Then, a mapping between two-dimensional coordinates and Gaussian probability was established through two-dimensional Gaussian distribution, and the centroid of the infrared detection frame position was Convert to the corresponding Gaussian probability and the centroid of the visible light measurement frame position Convert to the corresponding Gaussian probability Then the Gaussian probability and Gaussian probability Multiply the product as the same category detection target y i The centroid of the detection box after fusion Gaussian probability The same category detection target y i The length of the fused detection frame is And the width is Then, the Gaussian probability is used to Mapping back to the same category detection target y i The centroid of the detection box after fusion The two-dimensional coordinates of And the two-dimensional coordinates Put it into the detection frame position fusion result set; Case 2: If the infrared detection frame position set {B infrared There exists a visible light measurement frame position set {B visible }, and obtain the two-dimensional coordinates of the centroid of the corresponding fused detection frame according to the infrared detection frame position and put it into the detection frame position fusion result set; Case 3: If the visible light frame position set {B visible There is an infrared detection frame position set {B infrared }, and obtain the two-dimensional coordinates of the centroid of the corresponding fused detection frame according to the visible light measurement frame position and put it into the detection frame position fusion result set; The above processing is performed on the category detection targets in the above three cases respectively to obtain a complete set of detection frame position fusion results.
6. A multimodal target detection model fusion robust enhancement device based on Bayesian theory, characterized in that: It includes a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used to implement a multimodal target detection model fusion robust enhancement method based on Bayesian theory as described in any one of claims 1-5.
7. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, a multimodal target detection model fusion robust enhancement method based on Bayesian theory as described in any one of claims 1 to 5 is implemented.
