Multi-modal image fusion model training method and system and multi-modal image fusion method

By designing reasonable loss functions and dynamic update strategies, the multi-modal image fusion model training method solves the problem of loss of detailed information in traditional technology, improves the quality and application value of image fusion, and achieves efficient fusion of multi-modal images.

CN118691935AActive Publication Date: 2024-09-24JIANGNAN UNIV +1

Patent Information

Application Number
CN202411171350.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-09-24
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

In traditional multi-modal image fusion technology, the unreasonable design of the loss function results in serious loss of detailed information in the fusion result, which limits the breadth and effectiveness of image fusion technology.

Method used

Using a multi-modal image fusion model training method, through joint training of teacher network and student network, a reasonable loss function is designed based on indicators such as pixel intensity loss, gradient loss, multi-layer perception loss, structural similarity and gradient amplitude similarity deviation. , train the model with dynamic update loss and distillation loss, and retain the detailed information of the fusion result.

Benefits of technology

It effectively retains the detailed information of the fusion result, improves the quality and application value of multi-modal image fusion, and enhances the information content of the image and the support capabilities of downstream tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691935A
    Figure CN118691935A
Patent Text Reader

Abstract

The invention provides a multi-modal image fusion model training method and system and a multi-modal image fusion method, and belongs to the technical field of image processing, and the training method comprises the steps: inputting an initial source image pair into a teacher network and a student network respectively, so as to determine the comprehensive loss of the teacher network, training the teacher network according to the comprehensive loss and the dynamic update loss of the teacher network, and taking the trained teacher network as a teacher model; determining the comprehensive loss of the student network; inputting the initial source image pair into a teacher model, determining distillation loss according to a buffer feature map and a third fusion image output by the teacher model and a coding feature map and a second fusion image output by the student network, and training the student network according to the distillation loss and comprehensive loss and dynamic update loss of the student network. And taking the trained student network as a multi-modal image fusion model. According to the multi-modal image fusion model, the source image pair is processed through a reasonable loss function, and the detail information of the fusion result can be well reserved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and in particular relates to a multimodal image fusion model training method, system and multimodal image fusion method. Background Art

[0002] Multimodal image fusion aims to fuse source images of different modalities captured by different imaging devices. The resulting fused image combines the advantages of different modalities, contains richer information than the source image pair, and can suppress the noise in the source image to a certain extent. The fused image of multimodal image fusion can be widely used to promote a variety of downstream tasks, such as target tracking, target detection, semantic segmentation, etc., and plays an important role in practical applications.

[0003] Traditional image fusion technology mainly focuses on single-modality image processing to improve the clarity of the image or improve its presentation. However, such methods are usually unable to process or fuse data from different sensors, such as the fusion of infrared and visible light images, which limits the breadth and effectiveness of image fusion technology in practical applications. With the advancement of technology, dual-modality information enhanced image fusion methods have emerged. This method not only focuses on the improvement of traditional image clarity and visual effects, but more importantly, it can process and fuse information from different modalities, such as the combination of infrared images and visible light images. Infrared images can show the thermal distribution of objects, while visible light images provide rich color and detail information. Through dual-modality fusion, temperature information and visual details can be obtained in one image at the same time, greatly enhancing the information content and application value of the image. Although dual-modality information enhanced image fusion technology has made significant progress, it still faces some challenges, such as unreasonable loss function design during fusion model training, resulting in serious loss of detail information in the fusion result. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a multimodal image fusion model training method, system and multimodal image fusion method to solve the problem that the loss function design in the fusion model training process is unreasonable, resulting in serious loss of detailed information of the fusion result.

[0005] In a first aspect, the present invention provides a multimodal image fusion model training method, comprising: Acquire a first source image and a second source image as an initial source image pair; Input the initial source image pair into the teacher network to obtain a first fused image; determining a comprehensive loss of the teacher network based on the first fused image; Determine the dynamic update loss of the teacher network; Train the teacher network according to the comprehensive loss and dynamic update loss of the teacher network, and use the trained teacher network as the teacher model; Input the initial source image pair into the student network to obtain the encoded feature map and the second fused image; Input the initial source image pair into the teacher model to obtain a buffered feature map and a third fused image; determining a comprehensive loss of the student network based on the second fused image; Determine the dynamic update loss of the student network; Determine a distillation loss according to the encoded feature map, the buffered feature map, the second fused image, and the third fused image; The student network is trained according to the comprehensive loss of the student network, the dynamic update loss of the student network and the distillation loss, and the trained student network is used as a multimodal image fusion model.

[0006] Optionally, determining the comprehensive loss of the teacher network according to the first fused image includes: The teacher network pixel intensity loss L is calculated according to the following formula int_1 : ; Wherein, H is the height of the first source image; W is the width of the first source image; tea is the first fused image pixel matrix; I1 represents the first source image; I2 represents the second source image; max(I1,I2) represents the maximum value of the first source image pixel matrix and the second source image pixel matrix; ||·||1 represents the matrix 1-norm; The teacher network gradient loss L is calculated according to the following formula grad_1 : ; in, represents the Laplace operator; ||·|| F Represents the matrix Frobenius norm; The teacher network multi-layer perception loss L is calculated according to the following formula percep_1 : ; Among them, D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; The comprehensive loss L of the teacher network is calculated according to the following formula comp_1 : L comp_1 =α1L int_1+β1L grad_1 +L percep_1 ; Among them, α1 is the coefficient of the teacher network pixel intensity loss; β1 is the coefficient of the teacher network gradient loss.

[0007] Optionally, determining the dynamic update loss of the teacher network includes: Obtain the fused image output by the current teacher network as the first intermediate image; Obtain a fused image with the maximum structural similarity output by the teacher network before the first intermediate image as the second intermediate image; Obtain a fused image with the smallest gradient amplitude similarity deviation output by the teacher network before the first intermediate image as the third intermediate image; The structural similarity between the initial source image pair and the second intermediate image and the first intermediate image is calculated according to the following formula: ; Among them, S teabs The first source image I1 and the second source image I2 are respectively teabs The sum of the structural similarities of teacur The first source image I1 and the second source image I2 are respectively teacur The sum of the structural similarities of ; SSIM(·) is the structural similarity operator; The gradient magnitude similarity deviations of the initial source image pair and the third intermediate image and the first intermediate image are calculated according to the following formula: ; Among them, G teabg The first source image I1 and the second source image I2 are respectively teabg The sum of the gradient amplitude similarity deviations; G teacur The first source image I1 and the second source image I2 are respectively teacur The sum of the gradient magnitude similarity deviations; GMSD(·) is the gradient magnitude similarity deviation operator; if S teabs >S teacur , then the second intermediate image is taken as the fusion image with the largest structural similarity in the current output of the teacher network; if S teabs <S teacur , then the first intermediate image is taken as the fusion image with the largest structural similarity in the current output of the teacher network; if G teabg <G teacur , then the third intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation at the current output of the teacher network; if G teabg >G teacur, the first intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation at the current output of the teacher network; In S teabs >S teacur In the case of , the first deep supervision loss L is calculated according to the following formula teas : ; In G teabg <G teacur In the case of , the first shallow supervision loss L is calculated according to the following formula teag : ; Among them, H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; H1 is the height of the second intermediate image; W1 is the width of the second intermediate image; ||·|| F represents the matrix Frobenius norm; H2 is the height of the third intermediate image; W2 is the width of the third intermediate image; represents the Laplace operator; The dynamic update loss L of the teacher network is calculated according to the following formula refresh_1 : L refresh_1 =(S teabs -S teacur )L teas +(G teacur -G teabg )L teag .

[0008] Optionally, the training of the teacher network according to the comprehensive loss and the dynamic update loss of the teacher network, and using the trained teacher network as the teacher model, includes: The total loss L of the teacher model is calculated according to the following formula teacher : L teacher =λ1L comp_1 +L refresh_1 ; Among them, λ1 is the comprehensive loss L of the teacher network comp_1 The coefficient of L refresh_1 is the dynamically updated loss for the teacher network.

[0009] Optionally, determining the comprehensive loss of the student network according to the second fused image includes: The student network pixel intensity loss L is calculated according to the following formula int_2 : ; Wherein, H is the height of the first source image; W is the width of the first source image; stu is the second fused image pixel matrix; I1 represents the first source image; I2 represents the second source image; max(I1,I2) represents the maximum value of the first source image pixel matrix and the second source image pixel matrix; ||·||1 represents the matrix 1-norm; The student network gradient loss L is calculated according to the following formula grad_2 : ; in, represents the Laplace operator; ||·|| F Represents the matrix Frobenius norm; The student network multi-layer perception loss L is calculated according to the following formula percep_2 : ; Among them, D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; The comprehensive loss L of the student network is calculated according to the following formula comp_2 : L comp_2 =α2L int_2 +β2L grad_2 +L percep_2 ; Among them, α2 is the coefficient of the student network pixel intensity loss; β2 is the coefficient of the student network gradient loss.

[0010] Optionally, determining the dynamic update loss of the student network includes: Obtain the fused image output by the current student network as the fourth intermediate image; Obtaining a fused image with the maximum structural similarity output by the student network before the fourth intermediate image as the fifth intermediate image; Obtaining a fused image with the smallest gradient amplitude similarity deviation output by the student network before the fourth intermediate image as the sixth intermediate image; The structural similarity between the initial source image pair and the fifth intermediate image and the fourth intermediate image is calculated according to the following formula: ; Among them, S stubsThe first source image I1 and the second source image I2 are respectively stubs The sum of the structural similarities of stucur The first source image I1 and the second source image I2 are respectively stucur The sum of the structural similarities of ; SSIM(·) is the structural similarity operator; The gradient magnitude similarity deviations of the initial source image pair and the sixth intermediate image and the fourth intermediate image are calculated according to the following formula: ; Among them, G stubg The first source image I1 and the second source image I2 are respectively stubg The sum of the gradient amplitude similarity deviations; G stucur The first source image I1 and the second source image I2 are respectively stucur The sum of the gradient magnitude similarity deviations; GMSD(·) is the gradient magnitude similarity deviation operator; if S stubs >S stucur , then the fifth intermediate image is taken as the fusion image with the largest structural similarity in the current output of the student network; if S stubs <S stucur , then the fourth intermediate image is taken as the fusion image with the largest structural similarity in the current output of the student network; if G stubg <G stucur , then the sixth intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation in the current output of the student network; if G stubg >G stucur , the fourth intermediate image is taken as the fused image with the smallest similarity deviation of the gradient amplitude output by the student network at present; In S stubs >S stucur In the case of , the second deep supervision loss L is calculated according to the following formula stus : ; In G stubg <G stucur In the case of , the second shallow supervision loss L is calculated according to the following formula stug : ; Among them, H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; D t is the total number of channels of the feature map of the tth layer; Ф t,k(·) represents the feature map of the kth channel of the tth layer of the target image; H3 is the height of the fifth intermediate image; W3 is the width of the fifth intermediate image; ||·|| F represents the matrix Frobenius norm; H4 is the height of the sixth intermediate image; W4 is the width of the sixth intermediate image; represents the Laplace operator; The dynamic update loss L of the student network is calculated according to the following formula refresh_2 : L refresh_2 =(S stubs -S stucur )L stus +(G stucur -G stubg )L stug .

[0011] Optionally, determining the distillation loss according to the encoding feature map, the buffer feature map, the second fused image, and the third fused image includes: The distillation loss L is calculated according to the following formula distill : ; Among them, ||·||2 represents the vector 2-norm; vec(·) represents vectorized operation; ; F(·) is the cross-channel spatial mapping function; X is a feature map with C channels; x j is the feature map of the jth channel in X; when i=1, T1 represents the encoded feature map and S1 represents the buffered feature map; when i=2, T2 represents the second fused image and S2 represents the third fused image.

[0012] Optionally, the step of training the student network according to the comprehensive loss of the student network, the dynamic update loss of the student network and the distillation loss, and using the trained student network as a multimodal image fusion model includes: The total loss L of the multimodal image fusion model is calculated according to the following formula student : L student =θL distill +λ2L comp_2 +L refresh_2 ; Where θ is the distillation loss L distill The coefficient of; λ2 is the comprehensive loss L of the student network comp_2 The coefficient of L refresh_2 Dynamically updated loss for the student network.

[0013] In a second aspect, the present invention provides a multimodal image fusion model training system, comprising: An acquisition module, used for acquiring a first source image and a second source image as an initial source image pair; A first input module, used to input an initial source image pair into a teacher network to obtain a first fused image; A first determination module, configured to determine a comprehensive loss of a teacher network according to a first fused image; The second determination module is used to determine the dynamic update loss of the teacher network; The first training module is used to train the teacher network according to the comprehensive loss and dynamic update loss of the teacher network, and use the trained teacher network as the teacher model; A second input module is used to input the initial source image pair into the student network to obtain the encoded feature map and the second fused image; A third input module, configured to input the initial source image pair into the teacher model to obtain a buffered feature map and a third fused image; A third determination module is used to determine the comprehensive loss of the student network according to the second fused image; A fourth determination module is used to determine the dynamic update loss of the student network; a fifth determination module, configured to determine a distillation loss according to the encoding feature map, the buffer feature map, the second fused image, and the third fused image; The second training module is used to train the student network according to the comprehensive loss of the student network, the dynamic update loss of the student network and the distillation loss, and use the trained student network as a multimodal image fusion model.

[0014] In a third aspect, the present invention provides a multimodal image fusion method, comprising: acquiring a third source image and a fourth source image; The third source image and the fourth source image are input into the multimodal image fusion model to obtain a target fusion image output by the multimodal image fusion model; wherein the multimodal image fusion model is trained according to the multimodal image fusion model training method described in the first aspect.

[0015] The present invention provides a multimodal image fusion model training method, system and multimodal image fusion method. In the training method, a first source image and a second source image are used as an initial source image pair, which are respectively input into a teacher network and a student network, and the comprehensive loss of the teacher network is determined according to the first fused image output by the teacher network, and the teacher network is trained by combining the comprehensive loss of the teacher network with the dynamic update loss of the teacher network, and the trained teacher network is used as the teacher model; the comprehensive loss of the student network is determined according to the second fused image output by the student network; the initial source image pair is input into the teacher model, and the distillation loss is determined according to the buffer feature map and the third fused image output by the teacher model and the coded feature map and the second fused image output by the student network, and the student network is trained according to the distillation loss and the comprehensive loss and the dynamic update loss of the student network, and the trained student network is used as the multimodal image fusion model. The multimodal image fusion model of the present invention processes the source image pair with a reasonable loss function, and can better retain the detailed information of the fusion result. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A schematic diagram of a flow chart of a multimodal image fusion model training method provided by an embodiment of the present invention; Figure 2 A schematic diagram of the structure of a multimodal image fusion model training system provided by an embodiment of the present invention; Figure 3 A schematic diagram of the process structure of digestible distillation, comprehensive loss and dynamic update provided by an embodiment of the present invention; Figure 4 A comparison chart of model efficiency and complexity of the SOTA method provided in an embodiment of the present invention; Figure 5 A performance comparison chart of various methods provided in the embodiments of the present invention on the LLVIP test set; Figure 6 A performance comparison chart of various methods provided in the embodiments of the present invention on the MSRS test set; Figure 7 A performance comparison chart of various methods provided in embodiments of the present invention on the RoadScene test set; Figure 8 A performance comparison chart of various methods provided in embodiments of the present invention on an MRI-SPECT test set; Fig. 9A performance comparison chart of various methods provided in the embodiments of the present invention on the MRI-PET test set; Fig.10 This is a performance comparison chart of various methods provided in the embodiments of the present invention on the semantic segmentation test set MSRS. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] In order to make full use of the supervisory information in the source image, the present invention constructs the loss of the source image and the fusion result from three aspects: pixel, gradient and multi-layer perception. On this basis, in order to strengthen the clues embedded in the historical parameters of the training process, the present invention proposes a dynamic update strategy. The two evaluation indicators of structural similarity and gradient amplitude similarity deviation are used to distinguish whether the current output clues are useful. Useful output indicates that the current network training trajectory is correct and can be used as an internal supervisory signal update, while unused output can be adaptively optimized through historical supervisory signals. Example 1

[0020] like Figure 1 As shown, this embodiment provides a multimodal image fusion model training method, including: Step 101: Acquire a first source image and a second source image as an initial source image pair.

[0021] In this step, the initial source image pair includes but is not limited to infrared and visible light images, magnetic resonance imaging images and computed tomography images, magnetic resonance imaging images and single photon emission computed tomography images, and magnetic resonance imaging images and positron emission tomography images.

[0022] Step 102, input the initial source image pair into the teacher network to obtain a first fused image.

[0023] Step 103, determining the comprehensive loss of the teacher network according to the first fused image.

[0024] Exemplarily, this step includes determining the teacher network pixel intensity loss; determining the teacher network gradient loss; determining the teacher network multi-layer perceptual loss; and determining the comprehensive loss of the teacher network based on the teacher network pixel intensity loss, the teacher network gradient loss, and the teacher network multi-layer perceptual loss.

[0025] Exemplarily, the teacher network pixel intensity loss L is calculated according to the following formulaint_1 : .

[0026] Wherein, H is the height of the first source image; W is the width of the first source image; tea is the first fused image pixel matrix; I1 represents the first source image; I2 represents the second source image; max(I1,I2) represents the maximum value of the first source image pixel matrix and the second source image pixel matrix; ||·||1 represents the matrix 1-norm. It should be noted that the heights of the first source image, the second source image and the first fused image are all equal, and the widths of the first source image, the second source image and the first fused image are all equal.

[0027] The teacher network gradient loss L is calculated according to the following formula grad_1 : .

[0028] in, represents the Laplace operator; ||·|| F Represents the matrix Frobenius norm.

[0029] The teacher network multi-layer perception loss L is calculated according to the following formula percep_1 : .

[0030] Among them, D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; Ф t,k (O tea ) represents the feature map of the kth channel of the tth layer of the first fused image; H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer.

[0031] The comprehensive loss L of the teacher network is calculated according to the following formula comp_1 : L comp_1 =α1L int_1 +β1L grad_1 +L percep_1 .

[0032] Among them, α1 is the coefficient of the teacher network pixel intensity loss; β1 is the coefficient of the teacher network gradient loss.

[0033] Step 104, determine the dynamic update loss of the teacher network.

[0034] Exemplarily, this step includes obtaining a fused image output by the current teacher network as a first intermediate image; obtaining a fused image with the maximum structural similarity output by the teacher network before the first intermediate image as a second intermediate image; obtaining a fused image with the minimum gradient amplitude similarity deviation output by the teacher network before the first intermediate image as a third intermediate image; determining the structural similarity of the initial source image pair with the second intermediate image and the first intermediate image respectively; determining the gradient amplitude similarity deviation of the initial source image pair with the third intermediate image and the first intermediate image respectively; determining a first shallow supervision loss based on the first intermediate image and the second intermediate image; determining a first deep supervision loss based on the first intermediate image and the third intermediate image; determining the dynamic update loss of the teacher network based on the structural similarity of the initial source image pair with the second intermediate image and the first intermediate image respectively, the structural similarity of the initial source image pair with the third intermediate image and the first intermediate image respectively, the first shallow supervision loss, and the first deep supervision loss.

[0035] Exemplarily, the structural similarity between the initial source image pair and the second intermediate image and the first intermediate image is calculated according to the following formula: .

[0036] Among them, S teabs The first source image I1 and the second source image I2 are respectively teabs The sum of the structural similarities of teabs For example, the first source image I1 and the second intermediate image O teabs The structural similarity of the second source image I2 and the second intermediate image O is taken as the first structural similarity. teabs As the second structural similarity, S teabs is the sum of the first structural similarity and the second structural similarity; S teacur The first source image I1 and the second source image I2 are respectively teacur The sum of the structural similarities of ; SSIM(·) is the structural similarity operator.

[0037] The gradient magnitude similarity deviations of the initial source image pair and the third intermediate image and the first intermediate image are calculated according to the following formula: .

[0038] Among them, G teabg The first source image I1 and the second source image I2 are respectively teabg The sum of the gradient amplitude similarity deviations; G teabg For example, the first source image I1 and the third intermediate image O teabgThe gradient magnitude similarity deviation of the second source image I2 and the third intermediate image O is taken as the first gradient magnitude similarity deviation. teabg The gradient amplitude similarity deviation of G is used as the second gradient amplitude similarity deviation, then G teabg is the sum of the first gradient amplitude similarity deviation and the second gradient amplitude similarity deviation; G teacur The first source image I1 and the second source image I2 are respectively teacur The sum of the gradient magnitude similarity deviations; GMSD(·) is the gradient magnitude similarity deviation operator; if S teabs >S teacur , then the second intermediate image is taken as the fusion image with the largest structural similarity in the current output of the teacher network; if S teabs <S teacur , then the first intermediate image is taken as the fusion image with the largest structural similarity in the current output of the teacher network; if G teabg <G teacur , then the third intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation at the current output of the teacher network; if G teabg >G teacur , the first intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation at the current output of the teacher network.

[0039] In S teabs >S teacur In the case of , the first deep supervision loss L is calculated according to the following formula teas : .

[0040] In G teabg <G teacur In the case of , the first shallow supervision loss L is calculated according to the following formula teag : .

[0041] Among them, H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; Ф t,k (O teacur ) represents the feature map of the kth channel of the tth layer of the first intermediate image; Ф t,k (O teabg ) represents the feature map of the kth channel of the tth layer of the third intermediate image; H1 is the height of the second intermediate image; W1 is the width of the second intermediate image; ||·|| Frepresents the matrix Frobenius norm; H2 is the height of the third intermediate image; W2 is the width of the third intermediate image; In this embodiment, the initial values ​​of the first deep supervision loss and the first shallow supervision loss are both 0.

[0042] The dynamic update loss L of the teacher network is calculated according to the following formula refresh_1 : L refresh_1 =(S teabs -S teacur )L teas +(G teacur -G teabg )L teag .

[0043] Step 105, training the teacher network according to the comprehensive loss and the dynamic update loss of the teacher network, and using the trained teacher network as the teacher model.

[0044] Exemplarily, in this step, the total loss L of the teacher model is calculated according to the following formula: teacher : L teacher =λ1L comp_1 +L refresh_1 .

[0045] Among them, λ1 is the comprehensive loss L of the teacher network comp_1 The coefficient of L refresh_1 is the dynamically updated loss for the teacher network.

[0046] Step 106, input the initial source image pair into the student network to obtain the encoded feature map and the second fused image.

[0047] Step 107, input the initial source image pair into the teacher model to obtain a buffered feature map and a third fused image.

[0048] In steps 106-107, the encoding block of the student network outputs an encoding feature map, and the buffer block of the teacher model outputs a buffer feature map.

[0049] Step 108, determining the comprehensive loss of the student network according to the second fused image.

[0050] Exemplarily, this step includes determining the student network pixel intensity loss; determining the student network gradient loss; determining the student network multi-layer perceptual loss; and determining the comprehensive loss of the student network based on the student network pixel intensity loss, the student network gradient loss, and the student network multi-layer perceptual loss.

[0051] Exemplarily, the student network pixel intensity loss L is calculated according to the following formula int_2 : .

[0052] Wherein, H is the height of the first source image; W is the width of the first source image; stu is the second fused image pixel matrix; I1 represents the first source image; I2 represents the second source image; max(I1,I2) represents the maximum value of the first source image pixel matrix and the second source image pixel matrix; ||·||1 represents the matrix 1-norm.

[0053] The student network gradient loss L is calculated according to the following formula grad_2 : .

[0054] in, represents the Laplace operator; ||·|| F It should be noted that the heights of the first source image, the second source image, the first fused image and the second fused image are all equal, and the widths of the first source image, the second source image, the first fused image and the second fused image are all equal.

[0055] The student network multi-layer perception loss L is calculated according to the following formula percep_2 : .

[0056] Among them, D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; Ф t,k (I1) represents the feature map of the kth channel of the tth layer of the first source image; H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer.

[0057] The comprehensive loss L of the student network is calculated according to the following formula comp_2 : L comp_2 =α2L int_2 +β2L grad_2 +L percep_2 .

[0058] Among them, α2 is the coefficient of the student network pixel intensity loss; β2 is the coefficient of the student network gradient loss.

[0059] Step 109, determining the dynamic update loss of the student network.

[0060] For example, Figure 3As shown, this step includes obtaining a fused image output by the current student network as the fourth intermediate image; obtaining a fused image with the largest structural similarity output by the student network before the fourth intermediate image as the fifth intermediate image; obtaining a fused image with the smallest gradient amplitude similarity deviation output by the student network before the fourth intermediate image as the sixth intermediate image; determining the structural similarity between the initial source image pair and the fifth intermediate image and the fourth intermediate image respectively; determining the gradient amplitude similarity deviation between the initial source image pair and the sixth intermediate image and the fourth intermediate image respectively; determining a second shallow supervision loss based on the fourth intermediate image and the fifth intermediate image; determining a second deep supervision loss based on the fourth intermediate image and the sixth intermediate image; determining the dynamic update loss of the student network based on the structural similarity between the initial source image pair and the fifth intermediate image and the fourth intermediate image respectively, the gradient amplitude similarity deviation between the initial source image pair and the sixth intermediate image and the fourth intermediate image respectively, the second shallow supervision loss and the second deep supervision loss.

[0061] Exemplarily, the structural similarities between the initial source image pair and the fifth intermediate image and the fourth intermediate image are calculated according to the following formula: .

[0062] Among them, S stubs The first source image I1 and the second source image I2 are respectively stubs The sum of the structural similarities of stucur The first source image I1 and the second source image I2 are respectively stucur The sum of the structural similarities of ; SSIM(·) is the structural similarity operator.

[0063] The gradient magnitude similarity deviations of the initial source image pair and the sixth intermediate image and the fourth intermediate image are calculated according to the following formula: .

[0064] Among them, G stubg The first source image I1 and the second source image I2 are respectively stubg The sum of the gradient amplitude similarity deviations; G stucur The first source image I1 and the second source image I2 are respectively stucur The sum of the gradient magnitude similarity deviations; GMSD(·) is the gradient magnitude similarity deviation operator; if S stubs >S stucur , then the fifth intermediate image is taken as the fusion image with the largest structural similarity in the current output of the student network; if S stubs <S stucur, then the fourth intermediate image is taken as the fusion image with the largest structural similarity in the current output of the student network; if G stubg <G stucur , then the sixth intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation in the current output of the student network; if G stubg >G stucur , the fourth intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation at the current output of the student network.

[0065] In S stubs >S stucur In the case of , the second deep supervision loss L is calculated according to the following formula stus : .

[0066] In G stubg <G stucur In the case of , the second shallow supervision loss L is calculated according to the following formula stug : .

[0067] Among them, H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; H3 is the height of the fifth intermediate image; W3 is the width of the fifth intermediate image; ||·|| F represents the matrix Frobenius norm; H4 is the height of the sixth intermediate image; W4 is the width of the sixth intermediate image; In this embodiment, the initial values ​​of the second deep supervision loss and the second shallow supervision loss are both 0.

[0068] The dynamic update loss L of the student network is calculated according to the following formula refresh_2 : L refresh_2 =(S stubs -S stucur )L stus +(G stucur -G stubg )L stug .

[0069] Step 1010, determining the distillation loss according to the encoded feature map, the buffered feature map, the second fused image, and the third fused image.

[0070] In this embodiment, Figure 3As shown, the digestible distillation strategy aims to relax the strict consistency constraints of the student network and the teacher network on the intermediate feature dimensions. The teacher network adopts a densely connected network (DCN) containing 11 convolutional blocks, which is responsible for extracting deep image features containing 64 channels. The teacher network integrates a buffer block and a reconstruction block composed of two convolutional layers, respectively, to generate a four-channel feature map and a single-channel fusion result. The student network contains two convolutional layers, the first convolutional layer is used as an encoding block to extract a four-channel feature map, and the second convolutional layer is used as a decoding block to generate a fused image. The embodiment of the present invention uses each output of the student network and the last two outputs of the teacher model to realize feature-based and response-based distillation. Since the feature maps and images of these outputs share the same number of channels, the teacher network can effectively impart knowledge to the student network at the same semantic level.

[0071] Exemplarily, the distillation loss L is calculated according to the following formula: distill : .

[0072] Among them, ||·||2 represents the vector 2-norm; vec(·) represents vectorized operation; ; F(·) is the cross-channel spatial mapping function; X is a feature map with C channels; x j is the feature map of the jth channel in X; when i=1, T1 represents the encoded feature map and S1 represents the buffered feature map; when i=2, T2 represents the second fused image and S2 represents the third fused image.

[0073] Step 1011, train the student network according to the comprehensive loss of the student network, the dynamic update loss of the student network and the distillation loss, and use the trained student network as a multimodal image fusion model.

[0074] Exemplarily, in this step, the total loss L of the multimodal image fusion model is calculated according to the following formula: student : L student =θL distill +λ2L comp_2 +L refresh_2 .

[0075] Where θ is the distillation loss L distill The coefficient of; λ2 is the comprehensive loss L of the student network comp_2 The coefficient of L refresh_2 Dynamically updated loss for the student network.

[0076] It should be noted that, in this embodiment, α1, β1, λ1, α2, β2, λ2 and θ are all preset values ​​according to actual needs.

[0077] In order to verify that the solution provided by this embodiment is more advantageous than related technologies, this embodiment further discloses specific examples.

[0078] In this embodiment, experiments were conducted on the infrared and visible light image fusion task and the medical image fusion task in the multimodal image fusion task, and its ability to support downstream semantic segmentation tasks was further verified. Six existing methods, TextFusion, MUFusion, LRRNet, MetaFusion, DeFusion and TarDAL, were selected for comparison with the method provided in this embodiment.

[0079] In order to better demonstrate the generalization ability of the method provided in this embodiment, the teacher network and the student network in this embodiment are only trained on the IVIF task, and the trained network is directly applied to other tasks. The training data set is LLVIP, from which 200 pairs of images are selected and cropped into 128×128 image patches, and finally 16,000 pairs of images are obtained. For the MMIF task, test experiments were carried out on three data sets: MSRS, LLVIP and RoadScene, with 361, 250 and 50 images respectively; for the MIF task, the model was tested directly on MRI-SPECT and MRI-PET, including 73 pairs and 42 pairs of images respectively; for the downstream semantic segmentation task, the MSRS data set was used, of which 1083 pairs of images were used as training sets and 361 pairs of images were used as test sets.

[0080] In addition, standard deviation (SD), comprehensive correlation of differences (SCD), visual information fidelity (VIF), structural similarity index measure (SSIM), edge information based index (Q AB / F ) and correlation coefficient (CC) are used to judge the method provided in this embodiment. The larger the value of these indicators is, the better the performance of the fusion method is.

[0081] Before demonstrating the fusion performance of the multimodal image fusion model of this embodiment, we first compare the model efficiency and complexity of several SOTA methods, such as Figure 4 As shown. Among all the methods involved, the multimodal image fusion model of this embodiment shows the smallest model size and the least number of floating-point operations. In the following experiments, it will be further proved that the multimodal image fusion model provided by this embodiment has advantages in efficiency and complexity, and can also bring good model performance.

[0082] Figure 5 , Figure 6 and Figure 7The quantitative experimental results of the method provided in this embodiment and six existing methods on the test datasets LLVIP (250 images), MSRS (361 images) and RoadScene (50 images) are respectively shown. The experimental results show that in these three datasets of infrared and visible light image fusion tasks, the method provided in this embodiment has the best comprehensive generalization effect.

[0083] Figure 8 and Fig. 9 The quantitative experimental results of the method provided in this embodiment and six existing methods on the test datasets MRI-SPECT (73 images) and MRI-PET (42 images) are respectively shown. The experimental results show that in these two datasets of medical image fusion tasks, the method provided in this embodiment has the best comprehensive generalization effect.

[0084] Fig.10 The performance of the method provided in this embodiment and six existing methods in the semantic segmentation task is demonstrated, where Back represents background, Car represents car, Per represents person, Bike represents bicycle, Cur represents curve, CS represents car stop, Gua represents railing, Cc represents colored cone roadblock, Bump represents ground bump, and mIOU represents mean intersection-over-union ratio. Fig.10 In the experimental results shown, the method provided in this embodiment has the highest mIOU value, and among the nine categories, 5 categories ranked first, 2 categories ranked second, and 2 categories ranked fourth and fifth respectively. Among the six compared methods, only DeFusion's comprehensive performance is slightly lower than the method provided in this embodiment, but its model size is about 70,000 times that of the multimodal image fusion model of this embodiment. Overall, the method provided in this embodiment can support downstream semantic segmentation tasks with the smallest model, the fastest fusion speed, and the best performance.

[0085] In summary, this embodiment provides a multimodal image fusion model training method, which constructs the loss of the source image and the fusion result from three aspects: pixels, gradients, and multi-layer perception. On this basis, in order to strengthen the clues embedded in the historical parameters of the training process, this embodiment proposes a dynamic update strategy. The two evaluation indicators of structural similarity and gradient amplitude similarity deviation are used to distinguish whether the current output clues are useful. Useful output indicates that the current network training trajectory is correct and can be updated as an internal supervision signal, while unused output can be adaptively optimized through historical supervision signals. The multimodal image fusion model obtained in this embodiment processes the source image pairs with a reasonable loss function, which can better retain the detailed information of the fusion results. Example 2

[0086] Based on the same inventive concept as Example 1, this embodiment also provides a multimodal image fusion model training system. Since the principle of solving the problem by this system is similar to the aforementioned multimodal image fusion model training method, the implementation of this system can refer to the implementation of the multimodal image fusion model training method.

[0087] like Figure 2 As shown, the multimodal image fusion model training system includes: The acquisition module 10 is used to acquire a first source image and a second source image as an initial source image pair.

[0088] The first input module 20 is used to input the initial source image pair into the teacher network to obtain a first fused image.

[0089] The first determination module 30 is used to determine the comprehensive loss of the teacher network according to the first fused image.

[0090] The second determination module 40 is used to determine the dynamic update loss of the teacher network.

[0091] The first training module 50 is used to train the teacher network according to the comprehensive loss and dynamic update loss of the teacher network, and use the trained teacher network as the teacher model.

[0092] The second input module 60 is used to input the initial source image pair into the student network to obtain the encoded feature map and the second fused image.

[0093] The third input module 70 is used to input the initial source image pair into the teacher model to obtain a buffered feature map and a third fused image.

[0094] The third determination module 80 is used to determine the comprehensive loss of the student network according to the second fused image.

[0095] The fourth determination module 90 is used to determine the dynamic update loss of the student network.

[0096] The fifth determination module 100 is used to determine the distillation loss according to the encoding feature map, the buffer feature map, the second fused image and the third fused image.

[0097] The second training module 110 is used to train the student network according to the comprehensive loss of the student network, the dynamic update loss of the student network and the distillation loss, and use the trained student network as a multimodal image fusion model.

[0098] For more specific working processes of the above modules, please refer to the corresponding contents disclosed in Example 1, which will not be repeated here. Example 3

[0099] This embodiment provides a multimodal image fusion method, including: A third source image and a fourth source image are acquired.

[0100] The third source image and the fourth source image are input into the multimodal image fusion model to obtain a target fusion image output by the multimodal image fusion model; wherein the multimodal image fusion model is trained according to the multimodal image fusion model training method described in Example 1. Example 4

[0101] This embodiment provides a computer device, including a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the steps of the multimodal image fusion model training method described in Example 1 are implemented.

[0102] For more specific details of the above method, please refer to the corresponding contents disclosed in Example 1, which will not be repeated here. Example 5

[0103] This embodiment provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the steps of the multimodal image fusion model training method described in Example 1 are implemented.

[0104] For more specific details of the above method, please refer to the corresponding contents disclosed in Example 1, which will not be repeated here. Example 6

[0105] This embodiment provides a computer program product, including computer executable instructions or a computer program. When the computer executable instructions or the computer program are executed by a processor, the steps of the multimodal image fusion model training method described in Example 1 are implemented.

[0106] For more specific details of the above method, please refer to the corresponding contents disclosed in Example 1, which will not be repeated here.

[0107] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the systems, devices, storage media, and computer program products disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0108] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0109] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0110] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0111] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0112] The present invention has been described in detail above in conjunction with specific implementations and exemplary examples, but these descriptions cannot be understood as limiting the present invention. Those skilled in the art understand that, without departing from the spirit and scope of the present invention, a variety of equivalent substitutions, modifications or improvements may be made to the technical solution of the present invention and its implementation methods, all of which fall within the scope of the present invention. The scope of protection of the present invention shall be subject to the attached claims.

Claims

1. A multimodal image fusion model training method, It is characterized in that include: Acquire a first source image and a second source image as an initial source image pair; Input the initial source image pair into the teacher network to obtain a first fused image; determining a comprehensive loss of the teacher network based on the first fused image; Determine the dynamic update loss of the teacher network; Train the teacher network according to the comprehensive loss and dynamic update loss of the teacher network, and use the trained teacher network as the teacher model; Input the initial source image pair into the student network to obtain the encoded feature map and the second fused image; Input the initial source image pair into the teacher model to obtain a buffered feature map and a third fused image; determining a comprehensive loss of the student network based on the second fused image; Determine the dynamic update loss of the student network; Determine a distillation loss according to the encoded feature map, the buffered feature map, the second fused image, and the third fused image; The student network is trained according to the comprehensive loss of the student network, the dynamic update loss of the student network and the distillation loss, and the trained student network is used as a multimodal image fusion model; Wherein, determining the dynamic update loss of the teacher network includes: Obtain the fused image output by the current teacher network as the first intermediate image; Obtain a fused image with the maximum structural similarity output by the teacher network before the first intermediate image as the second intermediate image; Obtain a fused image with the smallest gradient amplitude similarity deviation output by the teacher network before the first intermediate image as the third intermediate image; The structural similarity between the initial source image pair and the second intermediate image and the first intermediate image is calculated according to the following formula: ; Among them, S teabs is the first source image I 1 and the second source image I 2 and the second intermediate image O teabs The sum of the structural similarities of teacur is the first source image I 1 and the second source image I 2 Respectively with the first intermediate image O teacur The sum of the structural similarities of ; SSIM(·) is the structural similarity operator; The gradient magnitude similarity deviations of the initial source image pair and the third intermediate image and the first intermediate image are calculated according to the following formula: ; Among them, G teabg is the first source image I 1 and the second source image I 2 and the third intermediate image O teabg The sum of the gradient amplitude similarity deviations of G teacur is the first source image I 1 and the second source image I 2 Respectively with the first intermediate image O teacur The sum of the gradient magnitude similarity deviations; GMSD(·) is the gradient magnitude similarity deviation operator; if S teabs >S teacur , then the second intermediate image is taken as the fusion image with the largest structural similarity in the current output of the teacher network; if S teabs <S teacur , then the first intermediate image is taken as the fusion image with the largest structural similarity in the current output of the teacher network; if G teabg <G teacur , then the third intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation at the current output of the teacher network; if G teabg >G teacur , the first intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation at the current output of the teacher network; In S teabs >S teacur In the case of , the first deep supervision loss L is calculated according to the following formula teas : ; In G teabg <G teacur In the case of , the first shallow supervision loss L is calculated according to the following formula teag : ; Among them, H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; H 1 is the height of the second intermediate image; W 1 is the width of the second intermediate image; ||·|| F represents the Frobenius norm of the matrix; H 2 is the height of the third intermediate image; W 2 is the width of the third intermediate image; represents the Laplace operator; The dynamic update loss L of the teacher network is calculated according to the following formula refresh_1 : L refresh_1 =(S teabs -S teacur )L teas +(G teacur -G teabg )L teag 。 2. The multimodal image fusion model training method according to claim 1, It is characterized in that The step of determining the comprehensive loss of the teacher network according to the first fused image comprises: The teacher network pixel intensity loss L is calculated according to the following formula int_1 : ; Wherein, H is the height of the first source image; W is the width of the first source image; tea is the first fused image pixel matrix; I 1 I represents the first source image; 2 represents the second source image; max(I 1 ,I 2 ) represents taking the maximum value of the first source image pixel matrix and the second source image pixel matrix; ||·|| 1 represents the matrix 1-norm; The teacher network gradient loss L is calculated according to the following formula grad_1 : ; in, represents the Laplace operator; ||·|| F Represents the matrix Frobenius norm; The teacher network multi-layer perception loss L is calculated according to the following formula percep_1 : ; Among them, D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; The comprehensive loss L of the teacher network is calculated according to the following formula comp_1 : L comp_1 =a 1 L int_1 +b 1 L grad_1 +L percep_1 ; Among them, α 1 is the coefficient of the teacher network pixel intensity loss; β 1 is the coefficient of the teacher network gradient loss.

3. The multimodal image fusion model training method according to claim 1, It is characterized in that The method of training the teacher network according to the comprehensive loss and the dynamic update loss of the teacher network and using the trained teacher network as the teacher model includes: The total loss L of the teacher model is calculated according to the following formula teacher : L teacher =λ 1 L comp_1 +L refresh_1 ; Among them, λ 1 is the comprehensive loss L of the teacher network comp_1 The coefficient of L refresh_1 is the dynamically updated loss for the teacher network.

4. The multimodal image fusion model training method according to claim 1, It is characterized in that Determining the comprehensive loss of the student network according to the second fused image includes: The student network pixel intensity loss L is calculated according to the following formula int_2 : ; Wherein, H is the height of the first source image; W is the width of the first source image; stu is the second fused image pixel matrix; I 1 I represents the first source image; 2 represents the second source image; max(I 1 ,I 2 ) represents taking the maximum value of the first source image pixel matrix and the second source image pixel matrix; ||·|| 1 represents the matrix 1-norm; The student network gradient loss L is calculated according to the following formula grad_2 : ; in, represents the Laplace operator; ||·|| F Represents the matrix Frobenius norm; The student network multi-layer perception loss L is calculated according to the following formula percep_2 : ; Among them, D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; The comprehensive loss L of the student network is calculated according to the following formula comp_2 : L comp_2 =a 2 L int_2 +b 2 L grad_2 +L percep_2 ; Among them, α 2 is the coefficient of pixel intensity loss of the student network; β 2 is the coefficient of the student network gradient loss.

5. The multimodal image fusion model training method according to claim 1, It is characterized in that The dynamically updated loss of the student network is determined, including: Obtain the fused image output by the current student network as the fourth intermediate image; Obtaining a fused image with the maximum structural similarity output by the student network before the fourth intermediate image as the fifth intermediate image; Obtaining a fused image with the smallest gradient amplitude similarity deviation output by the student network before the fourth intermediate image as the sixth intermediate image; The structural similarity between the initial source image pair and the fifth intermediate image and the fourth intermediate image is calculated according to the following formula: ; Among them, S stubs is the first source image I 1 and the second source image I 2 and the fifth intermediate image O stubs The sum of the structural similarities of stucur is the first source image I 1 and the second source image I 2 and the fourth intermediate image O stucur The sum of the structural similarities of ; SSIM(·) is the structural similarity operator; The gradient magnitude similarity deviations of the initial source image pair and the sixth intermediate image and the fourth intermediate image are calculated according to the following formula: ; Among them, G stubg is the first source image I 1 and the second source image I 2 and the sixth intermediate image O stubg The sum of the gradient amplitude similarity deviations of G stucur is the first source image I 1 and the second source image I 2 and the fourth intermediate image O stucur The sum of the gradient magnitude similarity deviations; GMSD(·) is the gradient magnitude similarity deviation operator; if S stubs >S stucur , then the fifth intermediate image is taken as the fusion image with the largest structural similarity in the current output of the student network; if S stubs <S stucur , then the fourth intermediate image is taken as the fusion image with the largest structural similarity in the current output of the student network; if G stubg <G stucur , then the sixth intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation in the current output of the student network; if G stubg >G stucur , the fourth intermediate image is taken as the fused image with the smallest similarity deviation of the gradient amplitude output by the student network at present; In S stubs >S stucur In the case of , the second deep supervision loss L is calculated according to the following formula stus : ; In G stubg <G stucur In the case of , the second shallow supervision loss L is calculated according to the following formula stug : ; Among them, H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; H 3 is the height of the fifth intermediate image; W 3 is the width of the fifth intermediate image; ||·|| F represents the Frobenius norm of the matrix; H 4 is the height of the sixth intermediate image; W 4 is the width of the sixth intermediate image; represents the Laplace operator; The dynamic update loss L of the student network is calculated according to the following formula refresh_2 : L refresh_2 =(S stubs -S stucur )L stus +(G stucur -G stubg )L stug 。 6. The multimodal image fusion model training method according to claim 1, It is characterized in that The determining of the distillation loss according to the encoding feature map, the buffer feature map, the second fused image, and the third fused image includes: The distillation loss L is calculated according to the following formula distill : ; Among them, ||·|| 2 represents the vector 2-norm; vec(·) represents vectorized operation; ; F(·) is the cross-channel spatial mapping function; X is a feature map with C channels; x j is the feature map of the jth channel in X; when i=1, T 1 represents the encoding feature map, S 1 represents the buffer feature map; when i=2, T 2 represents the second fused image, S 2 represents the third fused image.

7. The multimodal image fusion model training method according to claim 1, It is characterized in that The method includes training the student network according to the comprehensive loss of the student network, the dynamic update loss of the student network and the distillation loss, and using the trained student network as a multimodal image fusion model, including: The total loss L of the multimodal image fusion model is calculated according to the following formula student : L student =θL distill +λ 2 L comp_2 +L refresh_2 ; Where θ is the distillation loss L distill The coefficient of 2 is the comprehensive loss L of the student network comp_2 The coefficient of L refresh_2 Dynamically updated loss for the student network.

8. A multimodal image fusion model training system, It is characterized in that include: An acquisition module, used for acquiring a first source image and a second source image as an initial source image pair; A first input module, used to input an initial source image pair into a teacher network to obtain a first fused image; A first determination module, configured to determine a comprehensive loss of a teacher network according to a first fused image; The second determination module is used to determine the dynamic update loss of the teacher network; The first training module is used to train the teacher network according to the comprehensive loss and dynamic update loss of the teacher network, and use the trained teacher network as the teacher model; A second input module is used to input the initial source image pair into the student network to obtain the encoded feature map and the second fused image; A third input module, configured to input the initial source image pair into the teacher model to obtain a buffered feature map and a third fused image; A third determination module is used to determine the comprehensive loss of the student network according to the second fused image; A fourth determination module is used to determine the dynamic update loss of the student network; a fifth determination module, configured to determine a distillation loss according to the encoding feature map, the buffer feature map, the second fused image, and the third fused image; The second training module is used to train the student network according to the comprehensive loss of the student network, the dynamic update loss of the student network and the distillation loss, and use the trained student network as a multimodal image fusion model; Among them, the dynamic update loss of the teacher network is determined, including: Obtain the fused image output by the current teacher network as the first intermediate image; Obtain a fused image with the maximum structural similarity output by the teacher network before the first intermediate image as the second intermediate image; Obtain a fused image with the smallest gradient amplitude similarity deviation output by the teacher network before the first intermediate image as the third intermediate image; The structural similarity between the initial source image pair and the second intermediate image and the first intermediate image is calculated according to the following formula: ; Among them, S teabs is the first source image I 1 and the second source image I 2 and the second intermediate image O teabs The sum of the structural similarities of teacur is the first source image I 1 and the second source image I 2 Respectively with the first intermediate image O teacur The sum of the structural similarities of ; SSIM(·) is the structural similarity operator; The gradient magnitude similarity deviations of the initial source image pair and the third intermediate image and the first intermediate image are calculated according to the following formula: ; Among them, G teabg is the first source image I 1 and the second source image I 2 and the third intermediate image O teabg The sum of the gradient amplitude similarity deviations of G teacur is the first source image I 1 and the second source image I 2 Respectively with the first intermediate image O teacur The sum of the gradient magnitude similarity deviations; GMSD(·) is the gradient magnitude similarity deviation operator; if S teabs >S teacur , then the second intermediate image is taken as the fusion image with the largest structural similarity in the current output of the teacher network; if S teabs <S teacur , then the first intermediate image is taken as the fusion image with the largest structural similarity in the current output of the teacher network; if G teabg <G teacur , then the third intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation at the current output of the teacher network; if G teabg >G teacur , the first intermediate image is taken as the fused image with the smallest gradient amplitude similarity deviation at the current output of the teacher network; In S teabs >S teacur In the case of , the first deep supervision loss L is calculated according to the following formula teas : ; In G teabg <G teacur In the case of , the first shallow supervision loss L is calculated according to the following formula teag : ; Among them, H t is the height of the feature map of the tth layer; W t is the width of the feature map of the tth layer; D t is the total number of channels of the feature map of the tth layer; Ф t,k (·) represents the feature map of the kth channel of the tth layer of the target image; H 1 is the height of the second intermediate image; W 1 is the width of the second intermediate image; ||·|| F represents the Frobenius norm of the matrix; H 2 is the height of the third intermediate image; W 2 is the width of the third intermediate image; represents the Laplace operator; The dynamic update loss L of the teacher network is calculated according to the following formula refresh_1 : L refresh_1 =(S teabs -S teacur )L teas +(G teacur -G teabg )L teag 。 9. A multimodal image fusion method, It is characterized in that include: acquiring a third source image and a fourth source image; The third source image and the fourth source image are input into the multimodal image fusion model to obtain a target fusion image output by the multimodal image fusion model; wherein the multimodal image fusion model is trained according to the multimodal image fusion model training method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Lightweight infrared and visible light image fusion method, system, equipment and medium

    CN116363034A

  • Placenta image processing method and system based on semantic segmentation

    CN116645507A

  • Multi-modal medical image fusion method based on feature aggregation decomposition

    CN117132854A

  • Infrared and visible light image fusion system based on distillation-fusion-semantic joint driving

    CN117274759A

  • Self-supervised visible light and infrared image fusion method based on knowledge distillation

    CN117372271A

Cited By

  • Mineral identification method and system based on multi-modal knowledge distillation and storage medium

    CN120580525A

  • Image fusion and detection model training and application method, equipment, medium and product

    CN122493173A

  • Image fusion and detection model training and application method, device, medium and product

    CN122493173B