Multimodal fusion processing method, electronic device, and medium for modality loss

Through the pre-trained business prediction model, when multi-modal data is missing, the first modal feature is used to generate the second modal feature, which solves the problem of deviation in analysis results and reduced prediction ability caused by the lack of multi-modal data, and improves prediction Accuracy and model robustness.

CN118332508BActive Publication Date: 2024-08-23ZHEJIANG LAB

Patent Information

Application Number
CN202410767443.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-08-23
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Multimodal data are often missing in actual operations, resulting in large deviations in analysis results or reduced predictive capabilities. Existing technologies such as discarding incomplete samples or data interpolation methods fail to effectively consider variable correlation and missing patterns, which have a negative impact on downstream tasks. influence.

Method used

Through the pre-trained business prediction model, the first modal data and its corresponding second modal data are obtained, and feature extraction and fusion are performed. If the second modal data does not exist, the first modal features are used to generate the second modal data. Modal features ensure the accuracy of business predictions when some modal data are missing.

Benefits of technology

It improves the accuracy of business prediction when some modal data are missing, relaxes the requirements for data availability, and integrates multi-modal fusion training or testing by simulating similar features to improve the robustness and prediction performance of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332508B
    Figure CN118332508B
Patent Text Reader

Abstract

The present invention discloses a multimodal fusion processing method, electronic device, and medium for modality missing, the method comprising: obtaining first modal data and second modal data corresponding thereto one-to-one; inputting the first modal data and the second modal data into a pre-trained business prediction model to obtain a business prediction value; wherein the execution process of the business prediction model comprises: extracting features from the first modal data to obtain first modal features; when the second modal data exists, extracting features from the second modal data to obtain second modal features; when the second modal data does not exist, generating the second modal features through the first modal features; obtaining the business prediction value after feature fusion of the first modal features and the second modal features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data processing technology, and in particular relates to a multi-modal fusion processing method, electronic equipment, and medium for modality loss. Background Art

[0002] Generally speaking, modality refers to the way things happen or exist. Each source or form of information can be called a modality. Multimodality refers to the combination of two or more modalities in various forms. Processing multimodal information can obtain rich feature information.

[0003] In actual research and data analysis, data integrity is crucial for the network to accurately predict specific downstream tasks. However, in actual operations, due to incomplete records and measurement errors, multimodal data are often missing, and multimodal data cannot be aligned one by one, resulting in a lack of actual available data for multimodal analysis tasks, which cannot maximize the potential value of the data and may lead to large deviations in analysis results or reduced prediction capabilities.

[0004] To solve the problem of missing multimodal data, discarding incomplete samples or performing data interpolation are two common methods. However, discarding data will aggravate the overfitting problem and increase data bias. At the same time, the interpolation method does not take into account the impact of variable correlation and missing patterns on the prediction accuracy of downstream tasks. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a multi-modal fusion processing method, electronic device, and medium for modality loss.

[0006] In a first aspect, an embodiment of the present invention provides a multimodal fusion processing method for modality loss, the method comprising:

[0007] Acquire first modal data and second modal data corresponding one to the first modal data;

[0008] The first modality data and the second modality data are input into a pre-trained business prediction model to obtain a business prediction value; wherein, the execution process of the business prediction model includes: extracting features from the first modality data to obtain first modality features; when the second modality data exists, extracting features from the second modality data to obtain second modality features; when the second modality data does not exist, generating the second modality features through the first modality features; and obtaining the business prediction value after feature fusion of the first modality features and the second modality features.

[0009] In a second aspect, an embodiment of the present invention provides a multimodal fusion processing system for modality loss, the system comprising:

[0010] A data acquisition module, used to acquire first modal data and second modal data corresponding thereto one-to-one;

[0011] The business prediction module is used to input the first modality data and the second modality data into a pre-trained business prediction model to obtain a business prediction value; wherein, the execution process of the business prediction model includes: extracting features from the first modality data to obtain first modality features; when the second modality data exists, extracting features from the second modality data to obtain second modality features; when the second modality data does not exist, generating the second modality features through the first modality features; after feature fusion of the first modality features and the second modality features, obtaining a business prediction value.

[0012] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the above-mentioned multimodal fusion processing method for modal missingness.

[0013] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned multimodal fusion processing method for modality loss.

[0014] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the above-mentioned multimodal fusion processing method for modality loss.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention provides a multimodal fusion processing method for modal missingness, which learns the correlation between the first modal data and the second modal data through a pre-trained business prediction model, and can generate the second modal features through the first modal features when the second modal data does not exist, thereby ensuring the accuracy of business prediction when some modal data is missing. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 A schematic diagram of a flow chart of a multimodal fusion processing method for modality loss provided by an embodiment of the present invention;

[0018] Figure 2A schematic diagram of a process for fusing the first modal feature and the second modal feature provided in an embodiment of the present invention;

[0019] Figure 3 A schematic diagram of a business prediction model provided by an embodiment of the present invention;

[0020] Figure 4 A schematic diagram of generating a second modal feature by using a first modal feature provided by an embodiment of the present invention;

[0021] Figure 5 A schematic diagram of feature fusion provided by an embodiment of the present invention;

[0022] Figure 6 A schematic diagram of downsampling first modal data provided by an embodiment of the present invention;

[0023] Figure 7 A schematic diagram of downsampling the second modality data provided by an embodiment of the present invention;

[0024] Figure 8 A schematic diagram of outputting a service prediction value provided by an embodiment of the present invention;

[0025] Fig. 9 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] 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.

[0027] It should be noted that, in the absence of conflict, the features in the following embodiments and implementations may be combined with each other.

[0028] like Figure 1 As shown, an embodiment of the present invention provides a multi-modal fusion processing method for modality loss, which specifically includes the following steps:

[0029] Step S1, obtaining first modal data and second modal data corresponding thereto one-to-one; and preprocessing the first modal data and the second modal data.

[0030] Exemplarily, in this example, the first modal data is image data, and the second modal data is text data. It should be noted that the second modal data can also be replaced by audio data, etc. When the text data is missing, it is recorded as "N / A". The extracted image data and text data are recorded as data set O(I,T), where I represents image data and T represents text data. There is a one-to-one correspondence between image data I and text data T, that is, I i and T i Represents the image data and text data corresponding to the i-th instance.

[0031] Wherein, the image data I i including but not limited to three-dimensional images or two-dimensional images, , N is the number of instances in the data set; in this example, taking a three-dimensional image as an example, the process of preprocessing image data is described:

[0032] Get the region of interest of a single image. If the sizes in the three dimensions (z1, y1, x1) are all smaller than the size (z, y, x) required by the business prediction model input, fill the edges with 0 to the target size while ensuring that the region of interest is located in the center of the volume; if the size in any dimension is larger than the size required by the network, fill the edges with 0 according to the ratio. The whole region of interest is reduced to make the dimension with the largest difference the same as the size required by the business prediction model. Then the edge of the reduced region of interest is filled with zeros to the target size of the network. The final image region is recorded as ; Finally, the data that meets the input requirements of the business prediction model is normalized to the maximum and minimum values, and its pixel values ​​are linearly transformed to between [0,1] to obtain The specific steps are shown in the following formula.

[0033]

[0034] in, express The maximum and minimum pixel values ​​in .

[0035] The text data T can be divided into two categories: structured information and unstructured information. In this example, the process of preprocessing text data is described by taking structured information as an example:

[0036] For the missing features in the text data T, the median of the valid values ​​of the feature in the data set is used to fill in; secondly, the categorical features are converted into numerical types; for example, the smoking frequency is represented as "frequent", "occasionally" and "non-smoking" in the text record, and the conversion rule is: frequent == 2, occasional == 1, non-smoking == 0; discontinuous discrete variables with large spans such as age or years of smoking are divided by the median of the variable in the data set for normalization.

[0037] The preprocessed dataset is represented as , i=1,2,…,N. N is the number of instances in the data set, represents the image data and text data of the i-th instance after preprocessing, is the three-dimensional image data, An S-dimensional vector contains S items of text data.

[0038] Step S2, inputting the first modality data and the second modality data into a pre-trained business prediction model to obtain a business prediction value; wherein, the execution process of the business prediction model includes: extracting features from the first modality data to obtain first modality features; when the second modality data exists, extracting features from the second modality data to obtain second modality features; when the second modality data does not exist, generating second modality features through the first modality features; obtaining a business prediction value after feature fusion of the first modality features and the second modality features.

[0039] Furthermore, the business prediction model includes: a shallow feature extraction block, n modality fusion blocks (Fusion_Module) and a decision block (FC_block). In this example, n=5.

[0040] Specifically, Figure 3 As shown, step S2 specifically includes the following steps:

[0041] Step S201: first modal data I i Perform feature extraction to obtain the first modal feature i_f1; when the second modal data T i When the second modal data T exists, feature extraction is performed on the second modal data to obtain the second modal feature t_f1; when the second modal data T i When it does not exist, the second modal feature t_f1 is generated by the first modal feature.

[0042] Among them, when the second modal data T i When it does not exist, the first modal feature I i The process of generating the second modal feature t_f1 includes:

[0043] The extracted first modal feature is processed by the modal generation block (GenCli_block) to generate the second modal feature t_f1.

[0044] Specifically, Figure 4 As shown, the first modal feature is processed by average pooling, group normalization, and ReLU activation function to obtain the average value of each dimension in each channel as the weight;

[0045] Multiply the weights by the first modal features, and obtain the reconstructed features after the maximum pooling layer and group normalization.

[0046] The reconstructed features are superimposed with random noise and processed by the softplus activation function to obtain the second modal features.

[0047] The expression is as follows:

[0048] t_f j =Gencli_bolck(i_f j ), j=1,2,…,n+1

[0049] t_f j =softplus(t f +ε)

[0050] t f =GN{Max_pool[i_f j opt G (i_f j )]}

[0051] opt G =ReLU{GN[Avg_pool(.)]}

[0052] Where ε is the noise randomly sampled from the regularizer, which is used to perturb the latent features to achieve smooth embedding; opt G The layer consists of average pooling Avg_pool, group normalization GN and ReLU activation function. The first modal feature i_f j Through opt G Get the average value of each dimension in each channel as the weight, and add the weight to the first modal feature i_f j Multiply, and after the maximum pooling layer and group normalization, the reconstructed feature t is obtained. f , reconstruct feature t f The second modal feature t_f is reconstructed after being superimposed with random noise ε and processed by the softplus activation function. j The softplus activation function is used to prevent overfitting of the network and is regarded as a smooth representation of the ReLU activation.

[0053] It should be noted that the present invention allows a certain proportion of second modality data to be missing, and relaxes the requirements for data availability. The specific solution is to simulate similar second modality features based on the extracted first modality features, and integrate them into the subsequent multimodal fusion training or testing. In the process of generating second modality features from first modality features, this example adds the values ​​randomly sampled by the regularizer to the reconstructed features, perturbing the potential features to achieve smooth embedding and improve the robustness of the business prediction model.

[0054] Exemplarily, in this example, the image data and text data corresponding to the same instance are simultaneously input into the business prediction model in the format required by the business prediction model. The shape of the image data is (B, 1, z, y, x), where B represents the data batch size batch_size input to the business prediction model, where B=1, (z, y, x) is the size of the image region of interest obtained after preprocessing, and is also the input size required by the business prediction model; the shape of the text data is (B, S), where S is the dimension of the text data.

[0055] The image data is subjected to a three-dimensional convolution with a convolution kernel size of 3×3×3 and a stride of 1×2×2 to extract features of 16 channels, and batch normalization (BN) and ReLU activation function are performed on this feature to obtain the image feature i_f1 with a data shape of (B, 16, z, y / 2, x / 2).

[0056] When there is text data in the input of the business prediction model, the text data is extracted from the S-dimensional text data into 16-dimensional features through the linear layer, and the features are batch normalized (BN) to obtain the second modal feature t_f1, and the data shape is (B, 16). When there is no text data in the input of the business prediction model, the text feature t_f1 is generated through the extracted image features through the modal generation block (GenCli_block), and the data shape is.

[0057] Step S202, as Figure 2 As shown, the average value of each channel in the first modal feature i_f1 is concatenated with the second modal feature t_f1 to obtain the intermediate fusion modality i_t_f1;

[0058] Based on the intermediate fusion modality i_t_f1, the first weights i_f of the first modality feature i_f1 and the second modality feature t_f1 in the overall feature are obtained. out and the second weight t_f out ;

[0059] The first weight i_f out Multiply it with the first modal feature i_f1 to get the first modal fusion feature i_f fusion1 ; Second weight t_fout Multiply it with the second modal feature t_f1 to get the second modal fusion feature t_f fusion1 ;

[0060] Fusion feature i_f for the first modality fusion1 Down-sampling is performed to obtain the updated first modal feature i_f2;

[0061] When the second modality data exists, the second modality fusion feature t_f fusion1 Downsampling is performed to obtain an updated second modal feature t_f2; when the second modal data does not exist, an updated second modal feature t_f2 is generated by using the updated first modal feature i_f2;

[0062] By analogy, after being processed by n modal fusion blocks, the first modal feature i_f after modal fusion is obtained n+1 and the second modal feature t_f n+1 .

[0063] Among them, Figure 5 As shown, the first modal fusion feature i_f is obtained fusion1 The process includes:

[0064] Unfold the back three-dimensional image of the first modal feature i_f1 to obtain the data of (B, 16, z×y / 2×x / 2), and then take the average value of each channel to obtain the channel average i_channel mean , the dimension is (B,16).

[0065] The channel average i_channel corresponding to the first modal feature i_f1 mean It is concatenated with the second modal feature t_f1 along the channel dimension, and then passes through the fully connected layer and the activation function ReLU to obtain the intermediate fusion modality i_t_f1.

[0066] The intermediate fusion modality i_t_f1 is passed through two different sets of fully connected layers and activation function Sigmoid to obtain the first weight i_f of the first modality feature i_f1 and the second modality feature t_f1 in the overall feature. out and the second weight t_f out .

[0067] The first weight i_f out Multiply it with the first modal feature i_f1 to get the first modal fusion feature i_f fusion1 ; Second weight t_f out and the second modal feature t_f1 to obtain the second modal fusion feature t_f fusion1 .

[0068] In this example, since the first weight i_fout The dimension of the first modal feature i_f1 is different from that of the first modal feature i_f1. out Expand to (B, 16, 1, 1, 1) and then perform the multiplication operation.

[0069] The above calculation process can be expressed as:

[0070] i_t_f1=ReLU{Linear[mean[i_f1.view(B,C1,z×y / 2×x / 2)]⊕t_f1]}

[0071] i_f fusion1 = i_f1 {Sigmoid[Linear i (i_t_f1)].view(B,C1,1,1,1)}

[0072] t_f fusion1 =t_f1 Sigmoid[Linear t (i_t_f1)]

[0073] In the formula, ReLU(.) and Sigmoid(.) represent different activation functions; Linear(.), Linear i (.) and Linear t (.) indicates different fully connected layers; ⊕ indicates feature concatenation; Indicates feature multiplication; .view(.) indicates the adjustment of the feature size; C1 indicates the number of channels in the first modality fusion block C1=16, and the number of channels in the remaining four fusion blocks is C N =16×2 N-1 , N=2,3,4,5.

[0074] like Figure 6 As shown, the first downsampling block is used to fusion feature i_f of the first modality fusion1 The process of downsampling to obtain the updated first modal feature i_f2 includes:

[0075] The first modality fusion feature is passed through a three-dimensional convolution and batch normalization layer to obtain the first residual;

[0076] The first modality fusion feature is processed by downsampling based on the channel attention mechanism to obtain the first deep feature;

[0077] The first deep feature is superimposed on the first residual and processed by the ReLU activation function to obtain an updated first modal feature.

[0078] The specific process is shown in the following formula:

[0079] i_f2=ReLU(i_θ1+i_f att1 )

[0080] i_θ1=BN[Conv3d(i_f fusion1 )]

[0081] x=opt I (i_f fusion1 )

[0082] avgpool weight =Avg_pool(x)-mean[Avg_pool(x)]

[0083] maxpool weight =Max_pool[ReLU(avgpool weight ) x]

[0084] i_f att1 =Sigmoid(maxpool weight ) x

[0085] Where i_θ1 is the first modal fusion feature i_f fusion1 The first residual obtained by the three-dimensional convolution Conv3d(.) and the batch normalization layer BN(.) has a dimension of (B, 32, z / 2, y / 4, x / 4); the first modality fusion feature i_f fusion1 First, we pass an opt consisting of two ReLU{BN[Conv3d(.)]} I Get the intermediate eigenvalue x of dimension (B, 32, z / 2, y / 4, x / 4); then perform global average pooling Avg_pool(.) on each channel of the intermediate eigenvalue x, and subtract the mean of the global average pooling to get the average pooling weight avgpool weight , whose dimension is (B, 32, 1, 1, 1); then the ReLU activation function is used for activation, so that the average pooling weight avgpool weight Only the channel values ​​with a greater attention value than the mean are retained and multiplied with the intermediate eigenvalue x, which enhances the channels in the intermediate eigenvalue x that deserve more attention. On this basis, the maximum pooling Max_pool(.) is performed to obtain the maximum pooling weight maxpool weight , as the intermediate feature value x, the attention weight that needs to be enhanced for each channel is finally obtained; finally, the maximum pooling weight maxpool after Sigmoid activation is weight Multiplying with the intermediate eigenvalue x yields the first deep feature i_f extracted using the channel dimension attention mechanism att1The first deep feature i_f att1 It is superimposed with the first residual i_θ1 and processed by the ReLU activation function to obtain the updated first modal feature i_f2.

[0086] It should be noted that when extracting first modal features of different dimensions, the present invention adds a channel attention mechanism, which can adaptively predict potential first modal features, thereby reducing the impact of irrelevant features on the business prediction model.

[0087] like Figure 7 As shown, the second downsampling block is used to fusion feature t_f of the second modality. fusion1 The process of downsampling respectively to obtain the updated second modal feature t_f2 includes:

[0088] The second modality fusion feature is passed through a fully connected layer and a batch normalization layer to obtain a second residual;

[0089] The second modality fusion feature is processed by the Transformer encoding layer to obtain the second deep feature;

[0090] The dimension equal to 1 in the second deep feature is removed, and then superimposed with the second residual and processed by the ReLU activation function to obtain the updated second modal feature.

[0091] The specific process is shown in the following formula:

[0092] t_f2=ReLU[t_θ1+squeeze(t_f trans1 )]

[0093] t_θ1=BN[Linear(t_f fusion1 )]

[0094] t_f trans1 =Transformer_encoder{unsqueeze[opt T (t_f fusion1 ,1]}

[0095] In the formula, squeeze(.) means removing the dimension equal to 1 in the tensor, and unsqueeze(.) means expanding 1 dimension at the specified position. t_θ1 is the second modal fusion feature t_f fusion1 The second residual obtained after the fully connected layer Linear(.) and the batch normalization layer BN(.) has a dimension of (B,32). t_f trans1 is the second modality fusion feature t_f fusion1 The deep features obtained through the 8-head Transformer encoding layer have a dimension of (B, 32). The second modality fusion feature t_f fusion1Before entering the Transformer encoding layer, it first passes through the fully connected layer Linear, batch normalization BN and ReLU activation function. T (.)=ReLU{BN[Linear(.)]}, and then expand the extra dimension before the channel dimension to make it meet the requirements of the Transformer encoding layer. The second deep feature t_f trans1 After being superimposed with the second residual t_θ1 and processed by the ReLU activation function, the updated second modal feature t_f2 is obtained.

[0096] When the second modal data does not exist, the process of generating an updated second modal feature t_f2 by using the updated first modal feature i_f2 includes:

[0097] The updated first modal feature i_f2 is processed by average pooling, group normalization, and ReLU activation function to obtain the average value of each dimension in each channel as the weight;

[0098] Multiply the weight with the updated first modal feature i_f2, and obtain the reconstructed feature after the maximum pooling layer and group normalization.

[0099] The reconstructed features are superimposed with random noise and processed by the softplus activation function to reconstruct the updated second modal features t_f2.

[0100] Furthermore, in this example, the number of feature channels output by the modal fusion block (Fusion_Module) in the business prediction model is 32, 64, 128, 256, and 512, respectively. Each time the image feature passes through a modal fusion block, the three dimensions of zyx will be downsampled by 1 / 2. The data shape of the updated image feature i_f2 output by the first modal fusion block is (B, 32, Z / 2, y / 4, x / 4), and the data shape of the text feature t_f2 is (B, 32). The data shape of the updated image feature i_f3 output by the second modal fusion block is (B, 64, Z / 4, y / 8, x / 8), and the data shape of the text feature t_f3 is (B, 64). The data shape of the updated image feature i_f4 output by the third modal fusion block is (B, 128, Z / 8, y / 16, x / 16), and the data shape of the text feature t_f4 is (B, 128). The data shape of the updated image feature i_f5 output by the fourth modal fusion block is (B, 256, Z / 16, y / 32, x / 32), and the data shape of the text feature t_f5 is (B, 256). The data shape of the updated image feature i_f6 output by the fifth modal fusion block is (B, 512, Z / 32, y / 64, x / 64), and the data shape of the text feature t_f6 is (B, 512).

[0101] Step S203: The first modal feature i_f after modal fusion n+1 and the second modal feature t_f n+1 The splicing is performed to predict the business and obtain the business prediction value.

[0102] Specifically, Figure 8 As shown, in this example, the initial image feature i_f1 and text feature t_f1 are passed through the five modal fusion blocks (Fusion_Module) of the business prediction model to obtain the modal fused image feature i_f6 and text feature t_f6, which are input to the decision block (FC_block) for the final prediction task, and the business prediction value pred of the business prediction model for the downstream task is obtained. The decision block (FC_block) is a classifier composed of four fully connected layers. The input is a one-dimensional vector concatenated from the modal fused image feature i_f6 and text feature t_f6 flattened along the channel dimension, that is, flatten(i_f6)⊕t_f6, and the output is the business prediction value pred of the downstream task. The data size of the business prediction value pred is (B,1).

[0103] Furthermore, this example can use image data and text data to process downstream tasks under the condition of incomplete small data samples. In the training stage, the present invention requires some text data to help the network better fit text features through image features, but in the testing stage, the business prediction model can only use image data, that is, 100% of the text information is missing, for inference.

[0104] The training process of the business prediction model includes:

[0105] Step S100, obtaining first modal data and second modal data corresponding thereto; and preprocessing the first modal data and the second modal data. The preprocessed data set is represented as , i=1,2,…,N. N is the number of instances in the data set, After preprocessing, The first modal data and the second modal data of the bit instance.

[0106] Step S200: preprocess the data set Partitioned into full modality data for training , the second mode of missing data and test data for testing Among them, L f , L m and L k is the task-related label corresponding to the instance. Depending on the specific research objectives of the downstream task, the label has different forms. Assume that the complete modal data DStrf The amount of data is F, and the second modality is missing data DS trm The amount of data is M, the test data DS te The amount of data is K, then , , , and F+M+K=N.

[0107] Step S300, in the training phase, the training data used is the complete modal data DS trf and the second modality missing data DS trm , use the step-by-step training method to train them separately. Assuming that the network has a total of E iterations, that is, there are E epoch training rounds, then each epoch training round first trains the complete modal data DS trf Fitting is performed so that the business prediction model can learn the common features of the first modal data and the second modal data, and then the missing data DS of the second modality is trm Fitting is performed to generate the second modal data from the first modal data. In the testing phase, the test data DS is used te Specifically, it can be divided into tests when the second modal data exists and when the second modal data does not exist, which is used to evaluate the accuracy and generalization of the business prediction model under two different situations: complete and incomplete multimodal data, so as to make it more suitable for the use scenario of the second modal data.

[0108] In this example, assuming that the downstream prediction task is the prognosis prediction task of disease recurrence, the loss function is set according to the negative log-partial-likelihood loss (NLPL loss), and the expression is as follows:

[0109]

[0110] In the formula, B E =1 is the number of instances of recurrence events in the business prediction model input, E=1 means that the label of instance recurrence is 1; B is the batch_size of the business prediction model input, that is, the total number of instances of a single training input. pred is a single node with linear activation output by the business prediction model, which is also the predicted probability of the final event. λ is Regularization The hyperparameters of θ represent all the trainable weights of the business prediction model.

[0111] It should be noted that the label L corresponding to the prognosis prediction task of disease recurrence is not a simple 0 or 1, but is composed of the time interval T between the occurrence or observation of the event and the label E generated by the event, that is, L(E,T). If an event (such as death) is observed, the time interval T corresponds to the time elapsed between the time when the baseline data was collected and the time when the event occurred, and the event label E=1. If no event is observed, the time interval T corresponds to the time elapsed between the collection of the baseline data and the last contact with the instance (such as the end of the study), and the event label E=0. When performing survival prediction, the time interval T is usually additionally divided, and generally only the survival probability of T≥t is calculated. In the present invention, no additional division of t is made, that is, the recurrence probability in the entire cycle is studied.

[0112] Step S400, using the test data to test the business prediction model when the second modality data exists and when the second modality data does not exist.

[0113] Specifically, in the testing or reasoning phase, the business prediction model can be applied to the test data DS te (I k ,T k ,L k ) The second modality data is complete and the second modality data is missing. The probability pred for the training task is output. te The specific calculation process is shown in the following formula:

[0114]

[0115] Among them, f θ is the transformation function of the business prediction model.

[0116] Furthermore, the step S400 also includes: calculating indicators related to downstream tasks to evaluate the prediction ability of the business prediction model.

[0117] For example, for the recurrence prognosis prediction task, the prediction ability of the business prediction model can be evaluated by calculating the consistency index (C-index), which refers to the consistency between the actual probability of the outcome and the predicted probability, and takes a value of [0,1], where 0.5 represents the expected result of random prediction, 1.0 represents perfect consistency, and 0.0 represents perfect anti-consistency. For classification tasks, the evaluation index related to network performance can be calculated by analyzing the confusion matrix.

[0118] Example 1: Recurrence prediction example of non-small cell lung cancer

[0119] In this example, a total of 107 cases of non-small cell lung cancer were collected, all of which contained image data and text data. The image data was the patient's preoperative CT, and the text data was clinical records. Due to the particularity of medical data, the HU value (Hounsfield Unit) needs to be truncated before preprocessing the image data and text data, and the HU value range is selected as HU=[-1000,400].

[0120] The size of the image region of interest after preprocessing is (112, 140, 138), and the text information is a 17-dimensional vector. The 107 instances are randomly sampled 5 times according to the ID, and each sampling divides the data set into the complete modality training set DS trf , text missing training set DS trm and the test set DS te .

[0121] Train each sampling separately and record the average c-index of five samplings on the test set. The specific sampling results are shown in Table 1:

[0122] Table 1: Non-small cell lung cancer dataset division results

[0123]

[0124] In order to compare the effectiveness of the present invention, the experiment also sets up three experiments: single-modal text input, single-modal image input, and complete multi-modal image and text input. The networks used in these three sets of comparative experiments are pruned based on the business prediction model proposed in the present invention, and only the complete modality training set DS is used. trf Conduct training to simulate the missing modality data DS in text usage trm Completely unusable scenario. For unimodal input, remove Fusion_block and the processing part related to the non-input modality in the modal fusion module; for complete multimodal input, remove GenCli_block. The c-index of unimodal text input, unimodal image input, complete multimodal image and text input, and multimodal image and text input with missing data on the training set is shown in Table 2. In the multimodal image and text experiments with missing data, the test set used assumes the existence of text data and the absence of text data when performing reasoning. The test set DS te The c-index is the average of 5 sampling results.

[0125] Table 2: Experimental results of non-small cell lung cancer

[0126]

[0127] As can be seen from Table 2, the disease prognosis prediction network for modality loss obtained the best prediction result in the prediction of recurrence of non-small cell lung cancer compared with the other three training methods, c-index = 0.805, and the highest accuracy in the prediction of recurrence probability, indicating that the performance of the network has been significantly improved. Regardless of whether there is text data in the test set, the obtained c-index is better than the other three experiments. The c-index = 0.805 with text data and the c-index = 0.772 without text data are both higher than the c-index of the other three experiments, proving the flexibility of the network for multi-scenario use. The business prediction model structure and training method proposed in the present invention improve the utilization of multimodal data, and can utilize the missing modal data abandoned in the traditional multimodal data fusion method. Not only does it improve the accuracy of the network on the basis of increasing the amount of information, but it also enables the network to have more flexible application scenarios while maintaining performance, and its robustness is also optimized.

[0128] The present invention also provides a multi-modal fusion processing system for modality loss, the system comprising:

[0129] A data acquisition module, used to acquire first modal data and second modal data corresponding thereto one-to-one;

[0130] The business prediction module is used to input the first modality data and the second modality data into a pre-trained business prediction model to obtain a business prediction value; wherein, the execution process of the business prediction model includes: extracting features from the first modality data to obtain first modality features; when the second modality data exists, extracting features from the second modality data to obtain second modality features; when the second modality data does not exist, generating the second modality features through the first modality features; after feature fusion of the first modality features and the second modality features, obtaining a business prediction value.

[0131] Regarding the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0132] For the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application. A person of ordinary skill in the art can understand and implement it without creative work.

[0133] Accordingly, the present application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the multi-modal fusion processing method for modality loss as described above. Fig. 9 As shown, a hardware structure diagram of any device with data processing capability in which the multimodal fusion processing method for modality loss provided by an embodiment of the present invention is located, except Fig. 9 In addition to the processor, memory and network interface shown, any device with data processing capability in which the apparatus in the embodiment is located may also include other hardware, generally based on the actual functions of the device with data processing capability, which will not be described in detail.

[0134] Correspondingly, the present application also provides a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by the processor, the multimodal fusion processing method for modality loss as described above is implemented. The computer-readable storage medium can be an internal storage unit of any device with data processing capabilities described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium can also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), an SD card, a flash card (Flash Card), etc. equipped on the device. Furthermore, the computer-readable storage medium can also include both an internal storage unit and an external storage device of any device with data processing capabilities. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capabilities, and can also be used to temporarily store data that has been output or is to be output.

[0135] Those skilled in the art will readily appreciate other embodiments of the present application after considering the description and practicing the contents disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application. The description and examples are intended to be exemplary only.

[0136] It will be appreciated that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims

1. A multi-modal fusion processing method for modality loss, characterized in that: The method comprises: Acquire first modal data and second modal data corresponding one to the first modal data; Inputting the first modality data and the second modality data into a pre-trained business prediction model to obtain a business prediction value; wherein the execution process of the business prediction model includes: extracting features from the first modality data to obtain first modality features; when the second modality data exists, extracting features from the second modality data to obtain second modality features; when the second modality data does not exist, generating the second modality features through the first modality features; after the first modality features and the second modality features are feature fused, the business prediction value is obtained after being processed by a fully connected layer; The process of fusing the first modal feature with the second modal feature includes: The average value of each channel in the first modality feature is concatenated with the second modality feature to obtain an intermediate fusion modality; Obtaining first weights and second weights of the first modality feature and the second modality feature in the overall feature respectively based on the intermediate fusion modality; The first weight is multiplied by the first modal feature to obtain the first modal fusion feature; the second weight is multiplied by the second modal feature to obtain the second modal fusion feature; Down-sampling the first modality fusion feature to obtain an updated first modality feature; When the second modality data exists, down-sample the second modality fusion feature to obtain an updated second modality feature; when the second modality data does not exist, generate an updated second modality feature through the updated first modality feature; complete one modality fusion; By analogy, after n times of modal fusion, the first modal features and the second modal features after modal fusion are obtained.

2. The multimodal fusion processing method for modality loss according to claim 1, characterized in that: The process of generating the second modal feature through the first modal feature includes: The first modal feature is processed by average pooling, group normalization, and ReLU activation function to obtain the average value of each dimension in each channel as the weight; Multiply the weights by the first modal features, and obtain the reconstructed features after the maximum pooling layer and group normalization. The reconstructed features are superimposed with random noise and processed by the softplus activation function to reconstruct the second modal features.

3. The multimodal fusion processing method for modality loss according to claim 1, characterized in that: The process of downsampling the first modal fusion feature to obtain an updated first modal feature includes: The first modality fusion feature is passed through a three-dimensional convolution and batch normalization layer to obtain the first residual; The first modality fusion feature is processed by downsampling based on the channel attention mechanism to obtain the first deep feature; The first deep feature is superimposed on the first residual and processed by the ReLU activation function to obtain an updated first modal feature.

4. The multimodal fusion processing method for modality loss according to claim 1, characterized in that: The process of downsampling the second modality fusion feature to obtain an updated second modality feature includes: The second modality fusion feature is passed through a fully connected layer and a batch normalization layer to obtain a second residual; The second modality fusion feature is processed by the Transformer encoding layer to obtain the second deep feature; The dimension equal to 1 in the second deep feature is removed, and then superimposed with the second residual and processed by the ReLU activation function to obtain the updated second modal feature.

5. The multi-modal fusion processing method for modality loss according to claim 1, characterized in that: The training process of the business prediction model includes: Acquire the first modality data and the second modality data corresponding thereto one-to-one, and construct a data set; Divide the data set into complete modality data, second modality missing data, and test data; The loss function is set according to the negative logarithmic partial likelihood estimation, and the training rounds are preset; the business prediction model is first trained using the complete modality data so that the business prediction model learns the characteristics of the first modality data and the second modality data; the missing data of the second modality is fitted so that the first modality data generates the second modality data; The business prediction model is tested using the test data when the second modality data exists and when the second modality data does not exist.

6. A multi-modal fusion processing system for modality loss, characterized in that: To implement the multimodal fusion processing method for modality loss described in any one of claims 1 to 5, the system includes: A data acquisition module, used to acquire first modal data and second modal data corresponding thereto one-to-one; The business prediction module is used to input the first modality data and the second modality data into a pre-trained business prediction model to obtain a business prediction value; wherein, the execution process of the business prediction model includes: extracting features from the first modality data to obtain first modality features; when the second modality data exists, extracting features from the second modality data to obtain second modality features; when the second modality data does not exist, generating the second modality features through the first modality features; after feature fusion of the first modality features and the second modality features, obtaining a business prediction value.

7. An electronic device comprising a memory and a processor, characterized in that: The memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the multimodal fusion processing method for modality loss described in any one of claims 1-5 above.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the multimodal fusion processing method for modality loss as described in any one of claims 1 to 5 is implemented.

9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the multimodal fusion processing method for modality loss described in any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Information prediction model training method and device, equipment and storage medium

    CN113192639A

  • Multi-modal image aesthetic quality evaluation method for solving modal missing problem

    CN114549850A

  • Learning participation degree identification method, apparatus and device, and readable storage medium

    CN114926716A

  • Training method and device of multi-modal training model, computer equipment and medium

    CN116150620A

  • Multi-modal sentiment analysis method, system and equipment based on similar modal completion

    CN117540007A

Cited By

  • Multimodal image detection and classification artificial intelligence algorithm development method

    CN122949267A