A multimodal data fusion and processing method and device based on graph model
Through the multi-modal data fusion method based on the graph model, the problem of ignoring global dependencies and detail enhancement in image fusion in the existing technology is solved, achieving scene-adaptive high-quality image fusion, and improving the fusion effect and generalization ability.
Patent Information
- Application Number
- CN202410675864.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-29
AI Technical Summary
Existing image fusion methods ignore the global dependence and detail enhancement of images when processing multi-modal images, and cannot effectively utilize scene features, resulting in unstable fusion effects and insufficient generalization capabilities.
A multi-modal data fusion method based on the graph model is adopted to obtain visual feature maps through shallow and deep feature extraction modules, construct graph representations, and use the scene perception module to generate dynamic model parameters, combined with the graph interaction module for feature fusion and reconstruction, to achieve Scene adaptive image fusion.
It effectively models the correlation between image blocks, fully integrates different modal features, improves the quality and stability of image fusion, and improves the generalization ability in different scenarios.
Smart Images

Figure CN118247622B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to a multimodal data fusion and processing method and device based on a graphical model. Background Art
[0002] In actual scenarios, the image content is very rich, the scenes are complex, and there are large differences between images of different modalities, which brings challenges to image fusion.
[0003] In related technologies, the LRRNet (Low-Rank Representation Network) model is a deep learning model for infrared and visible light image fusion. The core of this model is to use low-rank representation as the basis of the model, strictly formulate the fusion task in a mathematical way, and establish the connection between the optimal solution and the network architecture, thereby avoiding the trial and error method in the traditional fusion network design. LRRNet adopts a learnable representation method, uses an optimization algorithm to guide the construction of the network architecture, converts matrix multiplication into convolution operations, and integrates the iterative optimization process into a special feedforward network to improve the efficiency and quality of image fusion. The network has shown good fusion performance on public datasets and uses fewer training parameters than other methods.
[0004] However, the LRRNet model ignores the global dependency in image fusion and cannot enhance details well. At the same time, the structure of the LRRNet model does not design scene feature extraction, which makes it unable to adapt to scene changes well. Summary of the invention
[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a multimodal data fusion and processing method and device based on a graphical model.
[0006] The present disclosure provides a multimodal data fusion and processing method based on a graph model, the method comprising:
[0007] Acquiring a first modality image and a second modality image;
[0008] Inputting the first modal image into a shallow feature extraction module to obtain a first underlying visual feature map, and inputting the first underlying visual feature map into a deep feature extraction module to obtain a first semantic feature map;
[0009] Inputting the second modal image into the shallow feature extraction module to obtain a second underlying visual feature map, and inputting the second underlying visual feature map into the deep feature extraction module to obtain a second semantic feature map;
[0010] Constructing a first graph representation and a second graph representation corresponding to the first semantic feature graph and the second semantic feature graph respectively;
[0011] Inputting the first modality image and the second modality image into a scene perception module respectively to obtain a first model parameter and a second model parameter;
[0012] Inputting the first graph representation, the second graph representation, the first model parameter, and the second model parameter into a graph interaction module to obtain a first output feature graph and a second output feature graph;
[0013] The first output feature map and the second output feature map are input into a feature fusion and reconstruction module to obtain a fused image.
[0014] The present disclosure also provides a multimodal data fusion and processing device based on a graph model, the device comprising:
[0015] An acquisition module, used for acquiring a first modality image and a second modality image;
[0016] An extraction module, configured to input the first modal image into a shallow feature extraction module to obtain a first underlying visual feature map, and input the first underlying visual feature map into a deep feature extraction module to obtain a first semantic feature map;
[0017] The extraction module is further used to input the second modal image into the shallow feature extraction module to obtain a second underlying visual feature map, and input the second underlying visual feature map into the deep feature extraction module to obtain a second semantic feature map; the construction module is used to respectively construct a first image representation and a second image representation corresponding to the first semantic feature map and the second semantic feature map;
[0018] A model parameter acquisition module, used to input the first modality image and the second modality image into a scene perception module respectively to obtain a first model parameter and a second model parameter;
[0019] An interaction module, configured to input the first graph representation, the second graph representation, the first model parameter, and the second model parameter into a graph interaction module to obtain a first output feature graph and a second output feature graph;
[0020] The processing module is used to input the first output feature map and the second output feature map into a feature fusion and reconstruction module to obtain a fused image.
[0021] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement a multimodal data fusion and processing method based on a graphical model as provided in an embodiment of the present disclosure.
[0022] The embodiments of the present disclosure also provide a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the multimodal data fusion and processing method based on the graphical model as provided in the embodiments of the present disclosure.
[0023] The present disclosure also provides a computer program product, including a computer program, wherein the computer program is executed by a processor as the multimodal data fusion and processing method based on a graph model provided in the present disclosure.
[0024] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art: the multimodal data fusion and processing solution based on the graph model provided by the embodiments of the present disclosure obtains a first modal image and a second modal image, inputs the first modal image into a shallow feature extraction module to obtain a first underlying visual feature map, and inputs the first underlying visual feature map into a deep feature extraction module to obtain a first semantic feature map, inputs the second modal image into a shallow feature extraction module to obtain a second underlying visual feature map, and inputs the second underlying visual feature map into a deep feature extraction module to obtain a second semantic feature map, respectively constructs a first graph representation and a second graph representation corresponding to the first semantic feature map and the second semantic feature map, respectively inputs the first modal image and the second modal image into a scene perception module to obtain a first model parameter and a second model parameter, inputs the first graph representation, the second graph representation, the first model parameter and the second model parameter into a graph interaction module to obtain a first output feature map and a second output feature map, and inputs the first output feature map and the second output feature map into a feature fusion and reconstruction module to obtain a fused image. The above technical solution is used to solve the technical problem of poor existing image fusion effect. By utilizing the graph model to fully model the association between image blocks within a single modality and the association between image blocks of different modalities, the characteristics of different modalities are fully integrated to obtain an ideal fusion result. In addition, the scene information in the image is fully utilized to achieve scene-adaptive image fusion, that is, the hypernetwork is used to generate scene-related model parameters, and the model weights in the graph model are dynamically adjusted to achieve scene-adaptive image fusion. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0026] Figure 1 A flowchart of a multimodal data fusion and processing method based on a graph model provided in an embodiment of the present disclosure;
[0027] Figure 2 A structural example diagram of a deep feature extraction module provided in an embodiment of the present disclosure;
[0028] Figure 3 An example diagram of the structure of a scene perception module provided in an embodiment of the present disclosure;
[0029] Figure 4 An example diagram of a multimodal data fusion and processing method based on a graph model provided in an embodiment of the present disclosure;
[0030] Figure 5 A schematic diagram of the structure of a multimodal data fusion and processing device based on a graph model provided in an embodiment of the present disclosure;
[0031] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0033] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0034] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0035] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0036] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0037] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0038] Specifically, the SwinFusion (image fusion framework) model is a deep learning model that uses the Swin Transformer (a new type of neural network model based on the self-attention mechanism) architecture for cross-domain remote learning to achieve high-quality image fusion. The model consists of three main parts: feature extraction, feature fusion, and image reconstruction. SwinTransformer captures the long-distance dependencies between multimodal image sources to achieve cross-domain information integration; at the same time, the multimodal image fusion and digital photography image fusion tasks are processed in a unified manner, and the structural information, texture details, and development control in the image are optimized by designing a unified loss function and fusion strategy. The SwinFusion model has shown superior performance in multimodal image fusion and digital photography image fusion tasks.
[0039] However, although the SwinFusion model can efficiently fuse the global complementary information between different image sources, it cannot adapt to the influence of different scene environments. The structure of the model is committed to extracting the local information of a single image and the global complementary information between different image sources, but does not extract scene environment features to adjust the feature fusion process. The model only focuses on the quality of the fused image, without considering the requirements of subsequent advanced visual tasks for the fusion results and comprehensive understanding of the image.
[0040] Based on the background technology and the above description, although there are many image fusion methods, the existing methods still have many defects. On the one hand, the existing methods do not make full use of the scene context information and fail to effectively use the scene information to guide the multimodal image fusion process, resulting in unstable fusion effects in different scenes and unsatisfactory model generalization ability. On the other hand, the existing methods do not adequately model the association between image blocks of different modalities, resulting in limited fusion effects.
[0041] The multimodal data fusion and processing method based on the graph model proposed in the embodiment of the disclosure uses the graph model for feature fusion, rather than a simple splicing operation or the use of an attention mechanism. The graph model is naturally suitable for modeling the association between features, so the use of the graph model for the fusion of features within and between features can more effectively fuse features; the hypernetwork is used to achieve scene-adaptive multimodal data fusion; the existing multimodal fusion methods almost all use fixed model parameters in testing, and cannot be adjusted as the image scene changes, resulting in limited fusion effects. The embodiment of the disclosure proposes that the method uses the hypernetwork for the first time to adjust the dynamic parameters of the fusion process, achieving scene-adaptive multimodal data set fusion and processing.
[0042] Figure 1 The present invention provides a flowchart of a method for multimodal data fusion and processing based on a graph model, which can be performed by a multimodal data fusion and processing device based on a graph model, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 1 As shown, the method includes:
[0043] Step 101: Acquire a first modality image and a second modality image.
[0044] In the disclosed embodiment, the first modal image and the second modal image are two different modal images, for example, an R (Red) G (Green) B (Blue) image taken by a mobile phone or a camera is used as the first modal image and a depth image taken by a depth camera is used as the second modal image, and so on. The specific setting is selected according to the application scenario.
[0045] It should be noted that the first modality image and the second modality image can be multiple images of different modalities, that is, the fusion is not limited to two modality images, and can be two or more modality images, such as the fusion of RGB images and infrared images, the fusion of medical images of different modalities, including the fusion of sound modules and visual modalities, etc.
[0046] Step 102: input the first modal image into a shallow feature extraction module to obtain a first underlying visual feature map, and input the first underlying visual feature map into a deep feature extraction module to obtain a first semantic feature map.
[0047] Step 103: input the second modal image into a shallow feature extraction module to obtain a second underlying visual feature map, and input the second underlying visual feature map into a deep feature extraction module to obtain a second semantic feature map.
[0048] In some embodiments, the shallow feature extraction module can be set according to the needs of the application scenario, for example, using two 3 times 3 convolutional layers, with the number of output channels set to 32 and 64 respectively, to extract the underlying image features, including image texture, shape, color and other features.
[0049] In some embodiments, the underlying visual feature map is input into a deep feature extraction module to obtain a semantic feature map, including: inputting the underlying visual feature map into multiple residual transformation modules in sequence and then into a convolution module for processing to obtain a semantic feature map; wherein the residual transformation module includes multiple transformation layers, a convolution layer and a residual connection; the transformation layer is composed of a normalization layer, a multi-head self-attention layer and a multi-layer perceptron.
[0050] Specifically, the deep feature extraction module uses, for example, four residual swin transformer blocks (RSTB) and one convolution module. Figure 2 As shown in the figure, each RSTB module consists of six transformation layers (STL, Swin Transformer Layer), a convolution layer (Conv) and a residual connection, and each transformation layer consists of a LayerNorm (normalization) layer and a multi-head self-attention layer (MSA, Muti-head Self Attention), and a multi-layer perceptron (MLP, Multilayer Perceptron). Through the self-attention mechanism, the deep feature extraction module can effectively extract high-level semantic features in the image, laying a good foundation for subsequent feature fusion.
[0051] Step 104: construct a first graph representation and a second graph representation corresponding to the first semantic feature graph and the second semantic feature graph, respectively.
[0052] In the embodiments of the present disclosure, a graph representation is constructed for the semantic feature map of each modality. In some embodiments, the semantic feature map is divided into multiple feature blocks, each feature block is mapped to a node vector through a linear layer, and a graph representation is constructed based on each node vector.
[0053] Step 105: Input the first modality image and the second modality image into the scene perception module respectively to obtain the first model parameter and the second model parameter.
[0054] Specifically, the role of the scene perception module is to convert the input image into model parameters, realize the adaptive adjustment of the model parameters, and then realize the scene-adaptive multimodal data fusion. The traditional deep image fusion method has fixed parameters after the model is trained and used for testing, so it cannot adapt well to multimodal data in different scenes. The scene perception model can dynamically adjust the model parameters, and the fusion effect in different scenes is better.
[0055] In some embodiments, the modal image is sequentially input into two two-dimensional convolution layers and then into a pooling layer, and then into two two-dimensional convolution layers and then into a global pooling layer for feature extraction to obtain scene features, and the scene features are input into a fully connected layer to obtain model parameters.
[0056] Specifically, Figure 3 As shown, the scene perception module consists of four two-dimensional ( Figure 3 The convolutional layer (Conv), a pooling layer, and a global average pooling layer (GAP) are used to extract features. Then, two fully connected layers (FC1 and FC2) convert the features into model parameters (including Figure 3 Model parameters 1 and 2 shown in Figure 3 are used to guide the fusion process of the graph interaction module.
[0057] Specifically, for the input image I (first modality image and second modality image), the scene perception model generates two sets of fully connected parameters: and It is used to construct a dynamic fully connected layer, which can be expressed as the following formula (1): .in, represents the scene perception module, represents the model parameters of the scene perception module. and They are respectively used as parameters of the fully connected layer and applied to the graph node features before and after inter-modal feature fusion.
[0058] Specifically, the node features of modality 1 image (first modality image) For example, the process can be expressed as follows: , is the updated node feature, For Parameterized fully connected layers.
[0059] Step 106: Input the first graph representation, the second graph representation, the first model parameter, and the second model parameter into a graph interaction module to obtain a first output feature graph and a second output feature graph.
[0060] In some embodiments, the first image representation, the second image representation, the first model parameters and the second model parameters are input into the image interaction module to obtain the first output feature map and the second output feature map, including: inputting the first image representation into the first image attention layer for processing to obtain a first upper fusion image representation, and performing a residual connection between the first image representation and the first upper fusion image representation and inputting them into the second image attention layer for processing to obtain a second upper fusion image representation, performing a residual connection between the first upper fusion image representation and the second upper fusion image representation and inputting them into the fully connected layer constructed by the first model parameters to obtain a third upper fusion image representation, inputting the second image representation into the third image attention layer for processing to obtain a first lower fusion image representation, and performing a residual connection between the second image representation and the first lower fusion image representation and inputting them into the fourth image attention layer for processing to obtain a second lower fusion image representation, The first lower fusion graph representation and the second lower fusion graph representation are residually connected and input into the fully connected layer constructed by the second model parameters to obtain the third lower fusion graph representation, each node in the third upper fusion graph representation is respectively connected with each node in the third lower fusion graph representation and input into the fifth graph attention layer for processing to obtain the fourth upper fusion graph representation, and the third upper fusion graph representation and the fourth upper fusion graph representation are residually connected and input into the fully connected layer constructed by the first model parameters to obtain the first output feature map, each node in the third lower fusion graph representation is respectively connected with each node in the third upper fusion graph representation and input into the sixth graph attention layer for processing to obtain the fourth lower fusion graph representation, and the third lower fusion graph representation and the fourth lower fusion graph representation are residually connected and input into the fully connected layer constructed by the second model parameters to obtain the second output feature map.
[0061] Specifically, the graph interaction module consists of three graph attention networks (GAT). In order to avoid over-smoothing, each graph attention module adds a residual connection to better fuse features. In the graph interaction module, the input initial graph representation first passes through two layers of graph attention layers to fuse the internal features of the modality. Since GAT can dynamically calculate the attention weights between nodes and can handle graph structures with dynamically changing node numbers and structures, it can fully fuse the information of different feature blocks. Get the feature and After being processed by the fully connected layer in formula (2), the inter-modal feature fusion is performed through the graph model. Specifically, for each node in the modality 1 image (first modality image), it is connected to each node in the modality 2 image (second modality image), and then GAT is used for feature fusion. Conversely, for each node in the modality 2 image (second modality image), it is connected to each node in the modality 1 image (first modality image), and then GAT is used for feature fusion. Finally, the output features are processed again using the fully connected layer in formula (2), and the scene context information is injected into the feature fusion process to achieve scene-adaptive multi-modal data fusion and processing.
[0062] Step 107: Input the first output feature map and the second output feature map into a feature fusion and reconstruction module to obtain a fused image.
[0063] In some embodiments, the first output feature map and the second output feature map are processed respectively by two fully connected layers to obtain a first two-dimensional output feature map and a second two-dimensional output feature map, the first two-dimensional output feature map and the second two-dimensional output feature map are spliced according to the channel dimension to obtain a spliced feature map, and the spliced feature map is sequentially input into multiple convolutional layers to obtain a fused image.
[0064] Specifically, the feature fusion and reconstruction module first uses, for example, two fully connected layers to map the one-dimensional node features back to two-dimensional feature blocks, obtains the feature maps of the two modalities and splices them along the channel dimension. Then, for example, five 3x3 convolutional layers and one 1x1 convolutional layer are used to map the spliced features to a 3-channel (RGB) output image, i.e., the fused image. Among them, a Leaky Relu (Leaky Rectified Linear Unit) activation function is added after each convolutional layer.
[0065] The multimodal data fusion and processing solution based on the graph model provided by the embodiment of the present disclosure obtains a first modality image and a second modality image, inputs the first modality image into a shallow feature extraction module to obtain a first underlying visual feature map, and inputs the first underlying visual feature map into a deep feature extraction module to obtain a first semantic feature map, inputs the second modality image into the shallow feature extraction module to obtain a second underlying visual feature map, and inputs the second underlying visual feature map into the deep feature extraction module to obtain a second semantic feature map, respectively constructs a first graph representation and a second graph representation corresponding to the first semantic feature map and the second semantic feature map, respectively inputs the first modality image and the second modality image into a scene perception module to obtain a first model parameter and a second model parameter, inputs the first graph representation, the second graph representation, the first model parameter and the second model parameter into a graph interaction module to obtain a first output feature map and a second output feature map, and inputs the first output feature map and the second output feature map into a feature fusion and reconstruction module to obtain a fused image. The above technical solution is used to solve the technical problem of poor existing image fusion effect. By utilizing the graph model to fully model the association between image blocks within a single modality and the association between image blocks of different modalities, the characteristics of different modalities are fully integrated to obtain an ideal fusion result. In addition, the scene information in the image is fully utilized to achieve scene-adaptive image fusion, that is, the hypernetwork is used to generate scene-related model parameters, and the model weights in the graph model are dynamically adjusted to achieve scene-adaptive image fusion.
[0066] As an example scenario, Figure 4 As shown, the method proposed in the embodiment of the present disclosure consists of four parts: shallow / deep feature extraction module, scene perception model, graph interaction module and feature fusion and reconstruction module. Assume that the two input modal images are represented as and , the two images of different modalities are firstly processed by the shallow feature extraction module to extract the underlying visual features, including the texture, shape, color and other features of the image; then the deep feature extraction module is used to further extract the high-level semantic features, which are represented as and .
[0067] It should be noted that the shallow and deep feature extraction modules used by images of different modalities are the same, that is, the feature extraction parameters between modalities are shared. On this basis, a graph representation is constructed for the features of each modality. Specifically, the feature graph is divided into multiple feature blocks, each of which is mapped to a node vector through a linear layer, represented as and , N is the number of nodes. In order to fully understand the relationship between different features, the initial graph is set to a fully connected graph. After that, the graph representations of the two modalities are sent to the graph interaction module for feature fusion. The graph interaction module consists of three graph attention layers ( Figure 4The three GATs shown, for example, are represented by two modal diagrams, respectively. Figure 4 The initial graph representation first passes through two graph attention layers to perform intra-modal feature fusion to obtain the feature and .
[0068] In order to match feature fusion with scene content, the disclosed embodiment designs a scene perception module to convert input images of each modality into model parameters, and then use these parameters to guide the model fusion process. and After inter-modal feature fusion, intra-modal feature fusion and scene feature guidance are performed again to obtain feature and Finally, the features of the two modalities are reversely mapped into feature blocks through a linear layer, and we get and After the two are spliced, they pass through the convolution layer to get the fused image.
[0069] Therefore, in the process of multimodal data fusion, the present disclosure uses the graph attention structure to perform feature fusion within the modality and feature fusion between modalities. The association between feature blocks is dynamically calculated through the self-attention mechanism, and then feature fusion is performed according to the strength of the association, and the fusion effect is more efficient. Since the present disclosure uses a graph attention layer, the number of nodes represented by the graph can be dynamically adjusted according to the size of the image and the complexity of the content, achieving a better fusion effect.
[0070] This disclosure applies the hypernetwork model to multimodal image fusion for the first time, achieving scene adaptation in the fusion process. Therefore, compared with the existing deep learning multimodal data fusion model, the present invention has better scene adaptation ability for fusing multimodal data, better generalization ability, and can achieve effective multimodal data fusion and processing in different scenarios.
[0071] The present disclosure can be applied to a wide range of multimodal data, such as the fusion of RGB images and infrared images, the fusion of medical images of different modalities, including the fusion of sound modules and visual modalities. In addition, based on the dynamic network mechanism of the present disclosure, the present disclosure can be applied to the fusion of two or more modal data, rather than just limited to the fusion of two modal data. In terms of tasks, it can be applied to a wide range of computer vision tasks such as image quality enhancement, image classification, and saliency prediction.
[0072] Figure 5The present invention provides a schematic diagram of a multimodal data fusion and processing device based on a graph model, which can be implemented by software and / or hardware and can generally be integrated into an electronic device. Figure 5 As shown, the device comprises:
[0073] The acquisition module 501 is used to acquire a first modality image and a second modality image.
[0074] The extraction module 502 is used to input the first modal image into a shallow feature extraction module to obtain a first underlying visual feature map, and input the first underlying visual feature map into a deep feature extraction module to obtain a first semantic feature map.
[0075] The extraction module 502 is used to input the second modal image into the shallow feature extraction module to obtain a second underlying visual feature map, and input the second underlying visual feature map into the deep feature extraction module to obtain a second semantic feature map.
[0076] The construction module 503 is used to construct a first graph representation and a second graph representation corresponding to the first semantic feature graph and the second semantic feature graph respectively.
[0077] The model parameter acquisition module 504 is used to input the first modality image and the second modality image into the scene perception module respectively to obtain the first model parameter and the second model parameter.
[0078] The interaction module 505 is used to input the first graph representation, the second graph representation, the first model parameter and the second model parameter into a graph interaction module to obtain a first output feature graph and a second output feature graph.
[0079] The processing module 506 is used to input the first output feature map and the second output feature map into a feature fusion and reconstruction module to obtain a fused image.
[0080] Optionally, the extraction module 502 is specifically configured to:
[0081] The bottom-level visual feature map is sequentially input into a plurality of residual transformation modules and then into a convolution module for processing to obtain a semantic feature map; wherein the residual transformation module comprises a plurality of transformation layers, a convolution layer and a residual connection; the transformation layer comprises a normalization layer, a multi-head self-attention layer and a multi-layer perceptron.
[0082] Optionally, the construction module 503 is specifically used to:
[0083] Dividing the semantic feature map into a plurality of feature blocks;
[0084] Each of the feature blocks is mapped into a node vector through a linear layer, and the graph representation is constructed based on each of the node vectors.
[0085] Optionally, the model parameter acquisition module 504 is specifically used to:
[0086] The modal image is sequentially input into two two-dimensional convolution layers and then into a pooling layer, and then into two two-dimensional convolution layers and then into a global pooling layer for feature extraction to obtain scene features;
[0087] The scene features are input into the fully connected layer to obtain the model parameters.
[0088] Optionally, the interaction module 505 is specifically used to:
[0089] Input the first graph representation into a first graph attention layer for processing to obtain a first upper fused graph representation, and perform a residual connection between the first graph representation and the first upper fused graph representation and then input them into a second graph attention layer for processing to obtain a second upper fused graph representation;
[0090] Performing a residual connection between the first upper fusion graph representation and the second upper fusion graph representation, and inputting the resultant to a fully connected layer constructed with the first model parameters, to obtain a third upper fusion graph representation;
[0091] Input the second image representation into the third image attention layer for processing to obtain a first lower fused image representation, and perform a residual connection between the second image representation and the first lower fused image representation and then input them into the fourth image attention layer for processing to obtain a second lower fused image representation;
[0092] Performing a residual connection on the first lower fusion graph representation and the second lower fusion graph representation, and inputting the residual connection into a fully connected layer constructed by the second model parameters to obtain a third lower fusion graph representation;
[0093] Connect each node in the third upper fusion graph representation with each node in the third lower fusion graph representation respectively, and input the resultant nodes into the fifth graph attention layer for processing to obtain a fourth upper fusion graph representation, and perform a residual connection between the third upper fusion graph representation and the fourth upper fusion graph representation, and input the resultant nodes into the fully connected layer constructed by the first model parameters to obtain the first output feature graph;
[0094] Each node in the third lower fusion graph representation is respectively connected to each node in the third upper fusion graph representation and then input into the sixth graph attention layer for processing to obtain a fourth lower fusion graph representation, and the third lower fusion graph representation and the fourth lower fusion graph representation are residually connected and then input into the fully connected layer constructed by the second model parameters to obtain the second output feature graph.
[0095] Optionally, the processing module 506 is specifically configured to:
[0096] Processing the first output feature map and the second output feature map respectively through two fully connected layers to obtain a first two-dimensional output feature map and a second two-dimensional output feature map;
[0097] Concatenate the first two-dimensional output feature map and the second two-dimensional output feature map according to the channel dimension to obtain a concatenated feature map;
[0098] The concatenated feature map is sequentially input into multiple convolutional layers to obtain the fused image.
[0099] The multimodal data fusion and processing device based on the graph model provided in the embodiments of the present disclosure can execute the multimodal data fusion and processing method based on the graph model provided in any embodiment of the present disclosure, and has the functional modules and beneficial effects corresponding to the execution method.
[0100] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the multimodal data fusion and processing method based on a graphical model provided by any embodiment of the present disclosure.
[0101] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The electronic device 600 in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0102] like Figure 6 As shown, the electronic device 600 may include a processing device 601 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in ROM 602 (ROM is a read-only memory) or the program loaded from the storage device 608 to RAM 603 (RAM is a random access memory). In RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, ROM 602 and RAM 603 are connected to each other through a bus 604. An I / O interface 605 (I / O is input / output) is also connected to the bus 604.
[0103] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0104] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the multimodal data fusion and processing method based on the graph model of the embodiment of the present disclosure are executed.
[0105] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0106] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0107] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0108] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a first modal image and a second modal image, inputs the first modal image into a shallow feature extraction module to obtain a first underlying visual feature map, and inputs the first underlying visual feature map into a deep feature extraction module to obtain a first semantic feature map, inputs the second modal image into a shallow feature extraction module to obtain a second underlying visual feature map, and inputs the second underlying visual feature map into a deep feature extraction module to obtain a second semantic feature map, respectively constructs a first image representation and a second image representation corresponding to the first semantic feature map and the second semantic feature map, respectively inputs the first modal image and the second modal image into a scene perception module to obtain a first model parameter and a second model parameter, inputs the first image representation, the second image representation, the first model parameter and the second model parameter into an image interaction module to obtain a first output feature map and a second output feature map, and inputs the first output feature map and the second output feature map into a feature fusion and reconstruction module to obtain a fused image.
[0109] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0110] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0111] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0112] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0113] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0114] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:
[0115] processor;
[0116] a memory for storing instructions executable by the processor;
[0117] The processor is used to read the executable instructions from the memory and execute the instructions to implement any multimodal data fusion and processing method based on a graphical model as provided in the present disclosure.
[0118] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute any of the multimodal data fusion and processing methods based on a graphical model as provided in the present disclosure.
[0119] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0120] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0121] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A multimodal data fusion and processing method based on graph model, It is characterized in that include: Acquiring a first modality image and a second modality image; Inputting the first modal image into a shallow feature extraction module to obtain a first underlying visual feature map, and inputting the first underlying visual feature map into a deep feature extraction module to obtain a first semantic feature map; Inputting the second modal image into the shallow feature extraction module to obtain a second underlying visual feature map, and inputting the second underlying visual feature map into the deep feature extraction module to obtain a second semantic feature map; Constructing a first graph representation and a second graph representation corresponding to the first semantic feature graph and the second semantic feature graph respectively; Inputting the first modality image and the second modality image into a scene perception module respectively to obtain a first model parameter and a second model parameter; Inputting the first graph representation, the second graph representation, the first model parameter, and the second model parameter into a graph interaction module to obtain a first output feature graph and a second output feature graph; Inputting the first output feature map and the second output feature map into a feature fusion and reconstruction module to obtain a fused image; The step of inputting the first graph representation, the second graph representation, the first model parameter, and the second model parameter into a graph interaction module to obtain a first output feature graph and a second output feature graph includes: Input the first graph representation into a first graph attention layer for processing to obtain a first upper fused graph representation, and perform a residual connection between the first graph representation and the first upper fused graph representation and then input them into a second graph attention layer for processing to obtain a second upper fused graph representation; Performing a residual connection between the first upper fusion graph representation and the second upper fusion graph representation, and inputting the resultant to a fully connected layer constructed with the first model parameters, to obtain a third upper fusion graph representation; Input the second image representation into the third image attention layer for processing to obtain a first lower fused image representation, and perform a residual connection between the second image representation and the first lower fused image representation and then input them into the fourth image attention layer for processing to obtain a second lower fused image representation; Performing a residual connection on the first lower fusion graph representation and the second lower fusion graph representation, and inputting the residual connection into a fully connected layer constructed by the second model parameters to obtain a third lower fusion graph representation; Connect each node in the third upper fusion graph representation with each node in the third lower fusion graph representation respectively, and input the resultant nodes into the fifth graph attention layer for processing to obtain a fourth upper fusion graph representation, and perform a residual connection between the third upper fusion graph representation and the fourth upper fusion graph representation, and input the resultant nodes into the fully connected layer constructed by the first model parameters to obtain the first output feature graph; Each node in the third lower fusion graph representation is respectively connected to each node in the third upper fusion graph representation and then input into the sixth graph attention layer for processing to obtain a fourth lower fusion graph representation, and the third lower fusion graph representation and the fourth lower fusion graph representation are residually connected and then input into the fully connected layer constructed by the second model parameters to obtain the second output feature graph.
2. According to the multimodal data fusion and processing method based on the graph model according to claim 1, It is characterized in that The underlying visual feature map is input into the deep feature extraction module to obtain the semantic feature map, including: The underlying visual feature map is sequentially input into a plurality of residual transformation modules and then into a convolution module for processing to obtain the semantic feature map; wherein the residual transformation module comprises a plurality of transformation layers, a convolution layer and a residual connection; the transformation layer comprises a normalization layer, a multi-head self-attention layer and a multi-layer perceptron.
3. The multimodal data fusion and processing method based on the graph model according to claim 1, It is characterized in that Construct the graph representation corresponding to the semantic feature graph, including: Dividing the semantic feature map into a plurality of feature blocks; Each of the feature blocks is mapped into a node vector through a linear layer, and the graph representation is constructed based on each of the node vectors.
4. The multimodal data fusion and processing method based on the graph model according to claim 1, It is characterized in that The modal image is input into the scene perception module to obtain the model parameters, including: The modal image is sequentially input into two two-dimensional convolution layers and then into a pooling layer, and then into two two-dimensional convolution layers and then into a global pooling layer for feature extraction to obtain scene features; The scene features are input into the fully connected layer to obtain the model parameters.
5. The multimodal data fusion and processing method based on the graph model according to claim 1, It is characterized in that Inputting the first output feature map and the second output feature map into a feature fusion and reconstruction module to obtain a fused image, including: Processing the first output feature map and the second output feature map respectively through two fully connected layers to obtain a first two-dimensional output feature map and a second two-dimensional output feature map; Concatenate the first two-dimensional output feature map and the second two-dimensional output feature map according to the channel dimension to obtain a concatenated feature map; The concatenated feature map is sequentially input into multiple convolutional layers to obtain the fused image.
6. A multimodal data fusion and processing device based on a graph model, It is characterized in that include: An acquisition module, used for acquiring a first modality image and a second modality image; An extraction module, configured to input the first modal image into a shallow feature extraction module to obtain a first underlying visual feature map, and input the first underlying visual feature map into a deep feature extraction module to obtain a first semantic feature map; The extraction module is further configured to input the second modal image into the shallow feature extraction module to obtain a second bottom-layer visual feature map, and input the second bottom-layer visual feature map into the deep feature extraction module to obtain a second semantic feature map; A construction module, used to construct a first graph representation and a second graph representation corresponding to the first semantic feature graph and the second semantic feature graph, respectively; A model parameter acquisition module, used to input the first modality image and the second modality image into a scene perception module respectively to obtain a first model parameter and a second model parameter; An interaction module, configured to input the first graph representation, the second graph representation, the first model parameter, and the second model parameter into a graph interaction module to obtain a first output feature graph and a second output feature graph; A processing module, configured to input the first output feature map and the second output feature map into a feature fusion and reconstruction module to obtain a fused image; Wherein, the interaction module is specifically used for: Input the first graph representation into a first graph attention layer for processing to obtain a first upper fused graph representation, and perform a residual connection between the first graph representation and the first upper fused graph representation and then input them into a second graph attention layer for processing to obtain a second upper fused graph representation; Performing a residual connection between the first upper fusion graph representation and the second upper fusion graph representation, and inputting the resultant to a fully connected layer constructed with the first model parameters, to obtain a third upper fusion graph representation; Input the second image representation into the third image attention layer for processing to obtain a first lower fused image representation, and perform a residual connection between the second image representation and the first lower fused image representation and then input them into the fourth image attention layer for processing to obtain a second lower fused image representation; Performing a residual connection on the first lower fusion graph representation and the second lower fusion graph representation, and inputting the residual connection into a fully connected layer constructed by the second model parameters to obtain a third lower fusion graph representation; Connect each node in the third upper fusion graph representation with each node in the third lower fusion graph representation respectively, and input the resultant nodes into the fifth graph attention layer for processing to obtain a fourth upper fusion graph representation, and perform a residual connection between the third upper fusion graph representation and the fourth upper fusion graph representation, and input the resultant nodes into the fully connected layer constructed by the first model parameters to obtain the first output feature graph; Each node in the third lower fusion graph representation is respectively connected to each node in the third upper fusion graph representation and then input into the sixth graph attention layer for processing to obtain a fourth lower fusion graph representation, and the third lower fusion graph representation and the fourth lower fusion graph representation are residually connected and then input into the fully connected layer constructed by the second model parameters to obtain the second output feature graph.
7. An electronic device, It is characterized in that The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the multimodal data fusion and processing method based on the graphical model as described in any one of claims 1-5 above.
8. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is used to execute the multimodal data fusion and processing method based on the graphical model as described in any one of claims 1 to 5.
9. A computer program product comprising a computer program, in, When the computer program is executed by a processor, it implements the multimodal data fusion and processing method based on the graphical model as described in any one of claims 1 to 5.
