A cross-modal retrieval method integrating graph convolution

By using the method of combining graph convolution and fully connected coding in cross-modal retrieval, a local neighbor structure graph is constructed, which solves the problem of insufficient local consistency mining of multi-modal data in the existing technology and improves retrieval accuracy and performance. Achieved higher semantic consistency and retrieval accuracy.

CN113536016BActive Publication Date: 2024-09-06CHENGDU ZHENHUA WANXING TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202110760740.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-02
Publication Date
2024-09-06
Estimated Expiration
2041-07-02

AI Technical Summary

Technical Problem

Existing cross-modal retrieval methods cannot effectively mine local consistency information when processing multi-modal data, resulting in insufficient retrieval accuracy. Moreover, traditional convolutional neural networks ignore graph structure information and cannot model complex nonlinear relationships.

Method used

Using a cross-modal retrieval method that fuses graph convolution, by constructing a local neighbor structure graph, using graph convolution to update node features, combined with fully connected coding features, a highly locally consistent common representation feature is obtained, and through the common representation learning layer and linear Classifier enhances semantic discrimination.

Benefits of technology

It improves the accuracy and performance of cross-modal retrieval, and improves the semantic consistency of different modalities and the accuracy of retrieval results by retaining local structural information and interactive information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113536016B
    Figure CN113536016B
Patent Text Reader

Abstract

The present invention discloses a cross-modal retrieval method integrating graph convolution, and belongs to the technical field of cross-modal retrieval. The method constructs respective modal graphs for different modalities, where each node in the graph represents the original features of a sample of the modality, and uses graph convolution to update the node features in the graph according to the nearest neighbor relationship, while combining the fully connected coding features to obtain highly semantically consistent fused coding features of different modalities. Afterwards, a common representation with consistent representation is obtained through the modality invariant loss of the common representation learning layer, and the semantic recognition of the common representation of each modality is enhanced through the linear classifiers at the top of the two subnets, further improving the cross-modal retrieval performance; experiments on the Wikipedia dataset and the Pascal Sentence dataset have proved that the average mAP values ​​of the method of the present application are improved by 2.3% and 2.4% respectively compared with the DSCMR method with the best performance in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a cross-modal retrieval method integrating graph convolution, and belongs to the technical field of cross-modal retrieval. Background Art

[0002] The emergence of massive information data has made the field of multimodal content understanding a hot topic. As one of its important components, cross-modal retrieval has also attracted much attention. Compared with single-modal retrieval, cross-modal retrieval can achieve information retrieval across different modalities. For example, it can achieve mutual retrieval of text information and image information, meeting the growing retrieval needs of users.

[0003] The main challenges facing cross-modal retrieval are the semantic gap within the modality of multimodal data and the heterogeneous gap between modalities. If these two problems cannot be solved well, it will directly lead to the failure of retrieval of corresponding results. In the original space of different modalities, samples with similar semantics also have similar feature distributions. This local consistent information helps to eliminate the semantic gap within the modality and is very important for generating semantically consistent cross-modal public representations. Although traditional cross-modal retrieval methods use graph regularization to preserve graph structure information, that is, local information of multimodal data, during the linear mapping process, they cannot model complex nonlinear relationships. In addition, since traditional convolutional neural networks cannot effectively process data in non-Euclidean spaces such as graph structures, cross-modal retrieval methods based on deep learning often ignore graph structure information.

[0004] In recent years, graph convolutional neural networks have attracted much attention due to their powerful processing capabilities for graph structured data, and research in the field of multimodal content understanding has also gradually emerged. However, graph convolution methods in this field usually construct graph structures for multiple salient targets in a single sample to improve the original features of a single sample, ignoring the interactive information between the original features of different samples. Therefore, the retrieval accuracy still needs to be further improved. Summary of the invention

[0005] In order to solve the problem that the existing cross-modal retrieval methods do not sufficiently mine the local consistency of multimodal data, resulting in the inability to further improve their retrieval accuracy, the present invention provides a cross-modal retrieval method that integrates graph convolution. This method is different from the existing idea of ​​improving the original features of a single sample. It is committed to using graph convolution to mine the interactive information between samples, retain their local structural information, and learn highly locally consistent public representation features, thereby obtaining higher retrieval accuracy. The method constructs a local neighbor structure graph for multimodal data, and uses graph convolution to update the features of each node in the graph to retain the local consistency information of each modality. At the same time, combined with the fully connected encoding features, highly locally consistent fused encoding features of different modalities are obtained. Afterwards, a consistent public representation is obtained through the modality-invariant loss of the public representation learning layer, and the semantic recognition of the public representation of each modality is enhanced through the linear classifiers at the top of the two subnets, thereby further improving the retrieval accuracy.

[0006] A cross-modal retrieval method integrating graph convolution, the method comprising:

[0007] Step S1: construct a fused graph convolution cross-modal retrieval network, wherein the fused graph convolution cross-modal retrieval network includes a picture subnet and a text subnet; the picture subnet and the text subnet respectively include four components: an underlying feature extraction network, a feature encoding network, a common representation learning layer, and a linear classifier, and each component is connected in sequence; wherein the feature encoding network of the picture subnet includes a picture graph convolution encoding network and a picture fully connected encoding network; the feature encoding network of the text subnet includes a text graph convolution feature encoding network and a text fully connected feature encoding network;

[0008] Step S2: using a public dataset to train a fusion graph convolution cross-modal retrieval network;

[0009] Step S3: Use the trained fusion graph convolution cross-modal retrieval network to obtain the optimal common representation features of the image or text to be retrieved, and use the cosine distance to measure the distance between the optimal common representation features of the image or text to be retrieved and the common representation features of each image or text in the database to obtain a similarity matrix, and output the corresponding cross-modal retrieval results according to the similarity matrix.

[0010] Optionally, when training the constructed fusion graph convolution cross-modal retrieval network, the method includes:

[0011] Setp1: Use the underlying feature extraction networks of the image subnet and text subnet to extract the original feature matrix O of the image v And the original feature matrix O t ; and construct the image modal graph and text modal graph respectively, and calculate the adjacency matrix A of the image modal graph v and the adjacency matrix A of the text modal graph t ;

[0012] Setp2: The original feature matrix O of the image v And the adjacency matrix A of the image modal graph v At the same time, the image graph convolutional coding network is fed to learn the image graph convolutional coding feature G v ; The original feature matrix O of the text t and the adjacency matrix A of the text modal graph t At the same time, it is sent to the text graph convolutional coding network to learn the text graph convolutional coding feature G t ;

[0013] Setp3: The original feature matrix O of the image v Send the image to the fully connected encoding network to learn the fully connected encoding feature C of the image v ; The text depth feature O t Send it to the text fully connected encoding network to learn the text fully connected encoding feature C t ;

[0014] Setp4: Convolutional encoding feature G of the image obtained in Setp2 v And the image fully connected encoding feature C obtained by Setp3 v Fusion, get the image fusion feature F v ; The text graph convolutional coding feature G obtained by Setp2 t And the text fully connected encoding feature C obtained by Setp3 t Fusion, get the text fusion feature F t ;

[0015] Setp5: Fusion feature F v Input the public representation learning layer of the image subnet to learn the public representation feature M of the image; fuse the text feature F t Input the common representation learning layer of the text subnet to learn the common text representation feature N;

[0016] Setp6: Send the image public representation feature M and the corresponding true category label matrix Y to the linear classifier of the image subnet, so that the predicted category of the image public representation feature M is consistent with its true category; send the text public representation feature N and the corresponding true category label matrix Y to the linear classifier of the text subnet, so that the predicted category of the text public representation is consistent with its true category;

[0017] Setp7: Minimize the total network loss function L to obtain the optimal parameters of the cross-modal retrieval network fused with graph convolution, thereby obtaining a trained cross-modal retrieval network fused with graph convolution.

[0018] Optionally, in Setp1, a picture modal graph and a text modal graph are constructed respectively, and the adjacency matrix A of the picture modal graph is calculated.v and the adjacency matrix A of the text modal graph t ,include:

[0019] Constructing the image modality graph: inputting the original features of the image modality Each eigenvector in its original space Consider it as a node in the image modal graph, calculate the Euclidean distance between this node and other nodes, and find the k sample points closest to it according to the k nearest neighbor algorithm and connect them; similarly, for any node Use the same method to find the k sample points closest to it, and after obtaining the connection relationship of all nodes in the graph, they can be connected to form the image modal graph MG v =(V v ,E v ),in, Represents distance samples The set of k nearest neighbor points, E v Represents the set of edges connecting each vertex; Picture modal graph MG v The adjacency matrix A v ={a ij}∈R n×n , a ij Represents the vertices in the image modal graph and vertices The adjacent weights of

[0020] Constructing text modality graph: Raw features of input text modality Each eigenvector in its original space Consider it as a node in the text modal graph, calculate the Euclidean distance between this node and other nodes, and find the k sample points closest to it according to the k nearest neighbor algorithm and connect them; similarly, for any node Use the same method to find the k sample points closest to it, and after obtaining the connection relationship of all nodes in the graph, they can be connected to form the text modal graph MG t =(V t ,E t ),in, Represents distance samples The set of k nearest neighbor points, E t Represents the set of edges connecting each vertex; text modal graph MG t The adjacency matrix A t = {b ij}∈R n×n , b ij Represents the vertices in the image modal graph and vertices The neighbor weights of .

[0021] Optionally, a modality-invariant loss L2 is defined in the common representation learning layer of the image subnet and the text subnet:

[0022]

[0023] Among them, ||·|| F represents the F-norm, and n is the total number of logarithms of images and texts.

[0024] Optionally, a semantic loss L1 is defined in the linear classifiers of the image subnet and the text subnet:

[0025]

[0026] Among them, P v Represents the mapping matrix of the image subnet linear classifier, represents the image modality prediction vector generated by the image subnet linear classifier; P t Represents the mapping matrix of the text subnet linear classifier, P t T N represents the text modality prediction vector generated by the text subnet linear classifier.

[0027] Optionally, the network total loss function L is:

[0028]

[0029] Among them, α is a balancing hyperparameter.

[0030] Optionally, when minimizing the total network loss function L, the parameter update formula of the linear classifier of the image subnet and the text subnet is P v =(MM T ) -1 M T Y, P t =(NN T ) -1 N T Y.

[0031] Optionally, the image graph convolutional encoding network and the text graph convolutional encoding network both include two layers of graph convolutions whose activation function is ReLU, and the number of hidden units corresponding to the two layers of graph convolutions is 4096 and 2048 respectively; the image fully connected encoding network and the text fully connected encoding network are both single-layer fully connected, with the number of hidden units being 2048 and the activation function being ReLU.

[0032] Optionally, the common representation learning layer of the image subnet and the common representation learning layer of the text subnet share weights, the number of hidden units is 2048, and the activation function is ReLU.

[0033] Optionally, the linear classifier of the image subnet is used to retain the semantic recognition of the common representation feature M of the image, which is a single-layer fully connected; the linear classifier of the text subnet is used to retain the semantic recognition of the common representation feature N of the text, which is a single-layer fully connected.

[0034] The beneficial effects of the present invention are:

[0035] By constructing modal graphs for different modalities, each node in the graph represents the original features of a sample of the modality, and using graph convolution to update the node features in the graph according to the nearest neighbor relationship, and combining the fully connected encoding features, we can obtain highly semantically consistent fusion encoding features of different modalities. Then, we obtain a consistent public representation through the modality invariant loss of the public representation learning layer, and enhance the semantic recognition of the public representation of each modality through the linear classifiers at the top of the two subnets, further improving the cross-modal retrieval performance. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 It is a schematic diagram of the structure of a fused graph convolution cross-modal retrieval network constructed in a cross-modal retrieval method of fused graph convolution provided in an embodiment of the present invention.

[0038] Figure 2 It is a schematic diagram of constructing a modal diagram in one embodiment of the present invention.

[0039] Figure 3 It is a schematic diagram of updating node features through a graph convolutional coding network in one embodiment of the present invention.

[0040] Figure 4 It is a schematic diagram of fusion coding in one embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0042] Embodiment 1:

[0043] This embodiment provides a cross-modal retrieval method integrating graph convolution, the method comprising:

[0044] Step S1, constructing a fused graph convolution cross-modal retrieval network, wherein the fused graph convolution cross-modal retrieval network includes a picture subnet and a text subnet; the picture subnet and the text subnet respectively include four components: an underlying feature extraction network, a feature encoding network, a common representation learning layer, and a linear classifier, and each component is connected in sequence; wherein the feature encoding network of the picture subnet includes a picture graph convolution encoding network and a picture fully connected encoding network; the feature encoding network of the text subnet includes a text graph convolution feature encoding network and a text fully connected feature encoding network;

[0045] Step S2, using a public dataset to train a fused graph convolutional cross-modal retrieval network;

[0046] The training process includes:

[0047] Setp1: Use the underlying feature extraction networks of the image subnet and text subnet to extract the original feature matrix O of the image v And the original feature matrix O t ; and construct the image modal graph and text modal graph respectively, and calculate the adjacency matrix A of the image modal graph v and the adjacency matrix A of the text modal graph t ;

[0048] Setp2: The original feature matrix O of the image v And the adjacency matrix A of the image modal graph v At the same time, the image graph convolutional coding network is fed to learn the image graph convolutional coding feature G v ; The original feature matrix O of the text t and the adjacency matrix A of the text modal graph t At the same time, it is sent to the text graph convolutional coding network to learn the text graph convolutional coding feature G t ;

[0049] Setp3: The original feature matrix O of the image v Send the image to the fully connected encoding network to learn the fully connected encoding feature C of the image v ; The text depth feature O t Send it to the text fully connected encoding network to learn the text fully connected encoding feature C t ;

[0050] Setp4: Convolutional encoding feature G of the image obtained in Setp2 v And the image fully connected encoding feature C obtained by Setp3 v Fusion, get the image fusion feature F v ; The text graph convolutional coding feature G obtained by Setp2 t And the text fully connected encoding feature C obtained by Setp3 t Fusion, get the text fusion feature Ft ;

[0051] Setp5: Fusion feature F v Input the public representation learning layer of the image subnet to learn the public representation feature M of the image; fuse the text feature F t Input the common representation learning layer of the text subnet to learn the common text representation feature N;

[0052] Setp6: Send the image public representation feature M and the corresponding true category label matrix Y to the linear classifier of the image subnet, so that the predicted category of the image public representation feature M is consistent with its true category; send the text public representation feature N and the corresponding true category label matrix Y to the linear classifier of the text subnet, so that the predicted category of the text public representation is consistent with its true category;

[0053] Setp7: Minimize the total network loss function L to obtain the optimal parameters of the cross-modal retrieval network fused with graph convolution, thereby obtaining a trained cross-modal retrieval network fused with graph convolution.

[0054] Step S3: Use the trained fusion graph convolution cross-modal retrieval network to obtain the optimal common representation features of the image or text to be retrieved, and use the cosine distance to measure the distance between the optimal common representation features of the image or text to be retrieved and the common representation features of each image or text in the database to obtain a similarity matrix, and output the corresponding cross-modal retrieval results according to the similarity matrix.

[0055] Embodiment 2

[0056] This embodiment provides a cross-modal retrieval method fused with graph convolution. This embodiment uses two internationally open and widely used cross-modal datasets, the Wikipedia dataset and the Pascal Sentence dataset, to train and test the fused graph convolution deep network constructed in the proposed cross-modal retrieval method fused with graph convolution.

[0057] Among them, the Wikipedia dataset contains 10 semantic categories and a total of 2,866 image-text pairs. In this dataset, the text descriptions paired with the images consist of varying numbers of paragraphs. The Pascal Sentence dataset contains 20 semantic categories and a total of 1,000 image-text pairs. In this dataset, the text descriptions paired with the images consist of five manually annotated sentences.

[0058] For the Wikipedia dataset, please refer to “A new approach to cross-modalmultimedia retrieval” by Rasiwasia N et al., which was published in “ACM International Conference on Multimedia” in 2010, pages 251-260.

[0059] For the Pascal Sentence dataset, please refer to "Collecting image annotations using Amazon's Mechanical Turk" by Rashtchian C et al., which was published in "Workshop on Creating Speech and Language Data with Amazon's Mechanical Turk. Stroudsburg" in 2010, pages 139-147.

[0060] The cross-modal retrieval method integrating graph convolution of the present invention comprises the following steps:

[0061] Step (1) Construct a fused graph convolution cross-modal retrieval network:

[0062] Step 1.1: Reference Figure 1 The fused graph convolution cross-modal retrieval network constructed by the method of the present invention includes two symmetrical end-to-end subnets, namely the image subnet and the text subnet. Each subnet includes four components, namely the corresponding underlying feature extraction network, the feature encoding network, the common representation learning layer and the linear classifier. Among them, the feature encoding network is composed of a graph convolution feature encoding part and a fully connected feature encoding part.

[0063] Step 1.2: Reference Figure 1 The underlying feature extraction network of the image subnet is consistent with the VGG19 network pre-trained on ImageNet, which is used to extract the original features of the image. The feature encoding network of the image subnet consists of a convolutional image encoding part and a fully connected image encoding part. The convolutional image encoding part contains two layers of graph convolutions with ReLU activation function, and the number of hidden units corresponding to the two layers of graph convolutions is 4096 and 2048 respectively. The fully connected image encoding part is a single-layer fully connected part with 2048 hidden units and ReLU activation function.

[0064] Convolutional encoding features of the image And the image fully connected encoding features Fusion to obtain fusion features The fusion features As the input of the image subnet public representation learning layer, we can obtain a highly locally consistent image public representation M = {m1,m2,…,m n The linear classifier of the image subnet is used to preserve the semantic recognition of the common representation of the image. It is a single-layer fully connected network with the same number of hidden units as the number of categories in the dataset.

[0065] Step 1.3: The underlying feature extraction network of the text subnet is consistent with the Text CNN, which is used to extract the original features of the text The feature encoding network of the text subnet consists of a text graph convolutional encoding part and a text fully connected encoding part. The text graph convolutional encoding part contains two layers of graph convolutions with ReLU activation function, and the number of hidden units corresponding to the two layers of graph convolution is 4096 and 2048 respectively. The text fully connected encoding part is a single-layer fully connected part with 2048 hidden units and ReLU activation function.

[0066] Convolutional encoding features of text graph And text fully connected encoding features Fusion to obtain fusion features The fusion features As the input of the text subnet public representation learning layer, we can obtain a highly locally consistent text public representation N = {n1, n2, ..., n n The linear classifier of the text subnet is used to preserve the semantic recognition of the public representation of the text. It is a single-layer fully connected layer with the same number of hidden units as the number of categories in the dataset. In addition, the public representation learning layer of the image subnet and the public representation learning layer of the text subnet share weights, with 2048 hidden units and ReLU activation function.

[0067] For the Text CNN network, please refer to Kim Y et al.’s “Convolutional neural networks for sentence classification”, which was published in the Conference on Empirical Methods in Natural Language Processing in 2014, pages 1746-1751.

[0068] Step 1.4: In order to ensure that semantically consistent samples are close to each other in the common subspace after feature mapping, and semantically inconsistent samples are far away from each other in the common subspace, a semantic loss L1 is defined in the linear classifier part of the top layer of the image subnet and the text subnet. The semantic categories of the image common representation M and the text common representation N are predicted by the linear classifiers at the top layer of the image subnet and the text subnet respectively. The smaller the distance between the obtained c-dimensional predicted label vector and the true label vector, the better. Let the mapping matrix of the linear classifier of the image subnet be Pv , the generated image modality prediction vector is The mapping matrix of the text linear classifier is P t , the generated text modality prediction vector is P t T N, then the semantic loss of the linear classifier on the top layer of the image subnet and the text subnet can be defined as

[0069]

[0070] In order to eliminate the differences between different modal data and learn modality-invariant common representations, a modality-invariant loss L2 is defined in the common representation learning layer of the image subnet and the text subnet. This loss mines the matching information between samples by minimizing the distance between the common representation feature vectors of paired image and text samples. It is defined as

[0071]

[0072] Among them, ||·|| F represents the F-norm, and n is the number of samples.

[0073] The overall objective function of the constructed fusion graph convolutional deep network is set as:

[0074]

[0075] Among them, α is a balance hyperparameter, which indicates the importance of the modal invariance constraint.

[0076] Step (2) Dataset preprocessing:

[0077] Step 2.1: Randomly divide the Wikipedia dataset into training set, test set and validation set. The training set contains 2173 image-text pairs, the test set contains 462 image-text pairs, and the rest are validation sets.

[0078] The Pascal Sentence dataset is also randomly divided into three parts, where the training set contains 800 image-text pairs, the test set contains 100 image-text pairs, and the rest are validation sets.

[0079] Step 2.2: Get the label matrix corresponding to the dataset y i Represents the label of the i-th pair of samples, and the labels corresponding to the paired images and texts are the same.

[0080] Sample picture and text Corresponding label vector y i ={y i1 ,y i2 ,…,y ic}∈R c, c represents the number of categories in the data set, represents the i-th picture, represents the i-th text; c = 10 in the Wikipedia dataset and c = 20 in the Pascal Sentence dataset. If the i-th pair of samples belongs to the j-th category, then y ij =1, otherwise y ij =0.

[0081] Step 2.3: Reference Figure 2 , construct the image modal graph and text modal graph, and calculate the adjacency matrix of each modal graph.

[0082] Taking the construction of image modality as an example, the original features of the input image modality are Each eigenvector in its original space Considered as a node in the modal graph, such as the node Calculate the Euclidean distance between the node and other nodes and find the k sample points closest to it according to the k nearest neighbor algorithm and connect them. Similarly, for any node Use the same method to find the k sample points closest to it, and after obtaining the connection relationship of all nodes in the graph, they can be connected to form a modal graph.

[0083] Modal graph for pictures MG v =(V v ,E v ), among which, Represents distance samples The set of k nearest neighbor points, E v Represents the set of edges connecting each vertex. Image modal graph MG v The adjacency matrix A v ={a ij}∈R n×n , a ij Represents a vertex in the modal graph and vertices The adjacent weight of is calculated as:

[0084]

[0085] Corresponding construction of text modal graph: original features of input text modality Each eigenvector in its original space Consider it as a node in the text modal graph, calculate the Euclidean distance between this node and other nodes, and find the k sample points closest to it according to the k nearest neighbor algorithm and connect them; similarly, for any node Use the same method to find the k sample points closest to it, and after obtaining the connection relationship of all nodes in the graph, they can be connected to form the text modal graph MG t =(V t ,E t ),in, Represents distance samples The set of k nearest neighbor points, E t Represents the set of edges connecting each vertex; text modal graph MG t The adjacency matrix A t = {b ij}∈R n×n , b ij Represents the vertices in the image modal graph and vertices The neighbor weights of .

[0086] Step (3) Network training:

[0087] Step 3.1: Set the learning rate τ = 0.0001, the maximum number of iterations N = 1000, the equalization parameter α = 1, and the randomly initialized weights, including the trainable parameter γ of the image mapping function v , the trainable parameter γ of the text mapping function t And the linear classifier parameter P v and P t The following steps are repeated for each iteration until N iterations are completed.

[0088] Step 3.2: The image samples and text samples in the training set obtained in step 2.1 are sent into the fused graph convolution cross-modal retrieval network in two ways.

[0089] Step 3.3: For each image, use the VGG19 network pre-trained on ImageNet to extract its features, output the 4096-dimensional image features of the fully connected layer fc7, and perform the same operation on the entire training set images to obtain the original feature matrix O of the image v .

[0090] For each text, we first use the Word2Vec model pre-trained on Google News to obtain the k-dimensional embedding vector representation of each word in the text. Then each text can be represented as an m×k-dimensional feature matrix, where m is the number of words in each text. Then, we feed the obtained text word vector into the Text CNN network and output the 300-dimensional text features of the pooling layer. We perform the same operation on the entire training set to obtain the original text feature matrix O. t .

[0091] Step 3.4: Extract the original features O of the image in step 3.3 vAnd the adjacency matrix A of the image modal graph obtained in step 2.3 v At the same time, the image graph convolutional coding network is fed to learn the image graph convolutional coding feature G v . Reference Figure 3 , the final graph convolutional coding feature of the image modality of the method for

[0092]

[0093] Similarly, the original text features O extracted in step 3.3 are t And the adjacency matrix A of the text modal graph obtained in step 2.3 t At the same time, it is sent to the text graph convolutional coding network to learn the text graph convolutional coding feature G t .

[0094] Step 3.5: Extract the original features O of the image in step 3.3 v Send the image to the fully connected encoding network to learn the fully connected encoding feature C of the image v The specific update formula of the fully connected encoding feature of the method is:

[0095] C v =ReLU(f(O v )) (6)

[0096] Similarly, the original text features O extracted in step 3.3 are t Send it to the text fully connected encoding network to learn the text fully connected encoding feature C t .

[0097] Step 3.6: Reference Figure 4 , the image graph convolutional coding feature G learned in step 3.4 v And the fully connected encoding feature C of the image learned in step 3.5 v Fusion, get the fusion feature F v , the fusion formula is:

[0098] F v =C v +G v (7)

[0099] Fusion feature F v Input the public representation learning layer of the image subnet to learn the public representation of the image. Similarly, the text graph convolutional encoding feature G learned in step 3.4 is t And the text fully connected encoding feature C learned in step 3.5 t Fusion, and text fusion feature F t Input the common representation learning layer of the text subnet to learn the common representation of the text.

[0100] Step 3.7: Send the image common representation M learned in step 3.6 and its corresponding true category label matrix Y to the linear classifier at the top layer of the image subnet to make the predicted category of the image common representation consistent with its true category.

[0101] The text common representation N learned in step 3.6 and its corresponding true category label matrix Y are fed into the linear classifier at the top layer of the text subnet to make the predicted category of the text common representation consistent with its true category.

[0102] Step 3.8: Minimize the total network loss L and use the Adam model to update the parameters, where the update formula of the linear classifier parameters is P v =(MM T ) -1 M T Y, P t =(NN T ) -1 N T Y, the update formula of the trainable parameters of the image-text mapping function is

[0103] For an introduction to the Adam model, please refer to: Kingma DP, Ba J. Adam: a method for stochastic optimization [EB / OL]. https: / / arxiv.org / abs / 1412.6980, 2014-12-22.

[0104] Step (4) Cross-modal retrieval accuracy test:

[0105] Step 4.1: Perform two cross-modal retrieval tasks, image retrieval text (I2T) and text retrieval image (T2I), on the two cross-modal datasets Wikipedia and Pascal Sentence, and feed the images and texts in the test set into the trained optimal model.

[0106] Step 4.2: Use the trained cross-modal retrieval network with fused graph convolution to learn the optimal common representation features for the test set samples, and use the cosine distance to measure the distance between the common representations of images and texts to obtain the similarity matrix.

[0107] Output the corresponding cross-modal retrieval results according to the similarity matrix.

[0108] To further evaluate the cross-modal retrieval performance of this application, continue with step 4.3;

[0109] Step 4.3: Calculate the AP value of each sample based on the similarity matrix obtained in step 4.2, and average the AP values ​​of all samples in the test set to obtain the final mAP value, which can evaluate the performance of the cross-modal retrieval method.

[0110] Step 4.4: In order to verify the performance of this method, a comparative experiment was conducted on the two benchmark datasets mentioned above between the present invention and eight existing advanced cross-modal retrieval methods, including two traditional cross-modal retrieval methods, namely CCA and JRL, and six depth-based cross-modal retrieval algorithms, namely CMDN, CCL, DCCA, ACMR, DSCMR and MMCA-CMR.

[0111] Experimental results:

[0112] Table 1 shows the comparison results of mAP values ​​of cross-modal retrieval on the Wikipedia dataset.

[0113] Table 2 shows the comparison results of mAP values ​​for cross-modal retrieval on the Pascal Sentence dataset.

[0114] Table 1 Results on the Wikipedia dataset

[0115]

[0116] Table 2 Results of Pascal Sentence dataset

[0117]

[0118]

[0119] From the results in Tables 1 and 2, it can be seen that the average mAP of the method provided by this application in the image retrieval text I2T task on the Wikipedia dataset and the Pascal Sentence dataset is 0.588 and 0.745 respectively, and the average mAP value of the method provided by this application in the text retrieval image T2I task on the Wikipedia dataset and the Pascal Sentence dataset is 0.524 and 0.775 respectively. Compared with the 8 methods, the method provided by this application performs better in each retrieval task, and all of them exceed the 8 comparison methods. In addition, DSCMR has the best performance among the 8 comparison methods. Compared with them, the average mAP value of the method on the two datasets is increased by 2.3% and 2.4% respectively.

[0120] CCA can refer to Hotelling H's "Relations between two sets of variates", which was published in "Biometrika" on pages 321-377 in 1936. This method maximizes the correlation between paired data of different modes by means of typical variables to learn a set of mapping matrices.

[0121] JRL can refer to "Leaming crossmedia joint representation with sparse and semisupervised regularization" by Zhai XH et al., which was published in "IEEE Transactions on Circuits and Systems for Video Technology" in 2014, pages 965-978. This method builds a graph model for multimodal data to jointly mine semantic information and related information.

[0122] For CMDN, please refer to “Cross-media shared representation by hierarchical learning with multiple deep networks” by Peng YX et al., which was published in “International Joint Conference on Artificial Intelligence” in 2016, pages 3846-3853. This method fully exploits the information within and between modalities through joint learning of hierarchical networks.

[0123] CCL can refer to "Cross-modal correlation learning with multigrained fusion by hierarchical network" by Peng YX et al., which was published in "IEEE Transactions on Multimedia" on pages 405-420 in 2017. This method models the coarse and fine granularity information of multimodal data while combining a multi-task learning framework to autonomously balance the learning of intra-modal constraints and inter-modal constraints.

[0124] DCCA can refer to "Deep canonical correlation analysis" by Andrew G et al., which was published in "International Conference on Machine Learning" in 2013, pages 1247-1255. This method combines CCA with a deep network to learn the nonlinear transformation relationship between two modal data.

[0125] ACMR can refer to "Adversarial cross-modal retrieval" by Wang BK et al., which was published in "ACM International Conference on Multimedia" in 2017, pages 154-162. This method learns the common representation of multimodal data through a feature generator, and uses a modality discriminator to distinguish the original modality of the generated features to learn the modality-invariant representation of multimodal data.

[0126] DSCMR can refer to "Deep supervised cross-modal retrieval" by Zhen LL et al., which was published in "IEEE / CVF Conference on Computer Vision and Pattern Recognition" in 2019, pages 10394-10403. This method minimizes the discriminative loss of the common subspace and label space and the modality invariance loss between different modal data to improve cross-modal retrieval performance.

[0127] MMCA-CMR can refer to "Deep supervised multimodal semantic autoencoder for cross-modal retrieval" by Tian Y et al., which was published in Volume 31 of "Computer Animation and Virtual Worlds" in 2020. This method uses a multimodal semantic autoencoder to learn content-aware feature vectors to fully mine the relevant information between different modal data.

[0128] Some steps in the embodiments of the present invention may be implemented using software, and the corresponding software program may be stored in a readable storage medium, such as a CD or a hard disk.

[0129] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A cross-modal retrieval method integrating graph convolution, characterized in that: The method comprises: Step S1, constructing a fused graph convolution cross-modal retrieval network, wherein the fused graph convolution cross-modal retrieval network includes a picture subnet and a text subnet; the picture subnet and the text subnet respectively include four components: an underlying feature extraction network, a feature encoding network, a common representation learning layer, and a linear classifier, and each component is connected in sequence; wherein the feature encoding network of the picture subnet includes a picture graph convolution encoding network and a picture fully connected encoding network; the feature encoding network of the text subnet includes a text graph convolution feature encoding network and a text fully connected feature encoding network; Step S2, using a public dataset to train a fused graph convolutional cross-modal retrieval network; Step S3: using the trained fusion graph convolution cross-modal retrieval network to obtain the optimal common representation features of the retrieved image or text, and using the cosine distance to measure the distance between the optimal common representation features of the image or text to be retrieved and the common representation features of each image or text in the database to obtain a similarity matrix, and outputting the corresponding cross-modal retrieval results according to the similarity matrix; The method includes, when training the constructed fusion graph convolution cross-modal retrieval network: Step 1: Use the underlying feature extraction network of the image subnet and text subnet to extract the original feature matrix O of the image v And the original feature matrix O t ; and construct the image modal graph and text modal graph respectively, and calculate the adjacency matrix A of the image modal graph v and the adjacency matrix A of the text modal graph t ; Step 2: The original feature matrix O of the image v And the adjacency matrix A of the image modal graph v At the same time, the image graph convolutional coding network is fed to learn the image graph convolutional coding feature G v ; The original feature matrix O of the text t and the adjacency matrix A of the text modal graph t At the same time, it is sent to the text graph convolutional coding network to learn the text graph convolutional coding feature G t ; Step 3: The original feature matrix O of the image v Send the image to the fully connected encoding network to learn the fully connected encoding feature C of the image v ; The original feature matrix O of the text t Send it to the text fully connected encoding network to learn the text fully connected encoding feature C t ; Step 4: Convolutionally encode the image features G obtained in Step 2 v And the image fully connected encoding feature C obtained in Step 3 v Fusion, get the image fusion feature F v ; Convolutional coding feature G of the text graph obtained in Step 2 t And the text fully connected encoding feature C obtained in Step 3 t Fusion, get the text fusion feature F t ; Step 5: Fusion feature F v Input the public representation learning layer of the image subnet to learn the public representation feature M of the image; fuse the text feature F t Input the common representation learning layer of the text subnet to learn the common text representation feature N; Step 6: Send the image public representation feature M and the corresponding true category label matrix Y1 to the linear classifier of the image subnet, so that the predicted category of the image public representation feature M is consistent with its true category; send the text public representation feature N and the corresponding true category label matrix Y2 to the linear classifier of the text subnet, so that the predicted category of the text public representation is consistent with its true category; Step 7: Minimize the total network loss function L to obtain the optimal parameters of the cross-modal retrieval network fused with graph convolution, thereby obtaining a trained cross-modal retrieval network fused with graph convolution; In the Step 1, the image modal graph and the text modal graph are constructed respectively, and the adjacency matrix A of the image modal graph is calculated. v and the adjacency matrix A of the text modal graph t ,include: Constructing the image modality graph: inputting the original features of the image modality Each feature vector oiv in its original space is regarded as a node in the image modal graph, the Euclidean distance between the node and other nodes is calculated, and the k sample points closest to it are found according to the k-nearest neighbor algorithm and connected; similarly, for any node Use the same method to find the k sample points closest to it, and after obtaining the connection relationship of all nodes in the graph, they can be connected to form the image modal graph MG v =(V v ,E v ),in, Represents distance samples The set of k nearest neighbor points, E v Represents the set of edges connecting each vertex; Picture modal graph MG v The adjacency matrix of a ij Represents the vertices in the image modal graph and vertices The adjacent weights of Constructing text modality graph: Raw features of input text modality Each eigenvector in its original space Consider it as a node in the text modal graph, calculate the Euclidean distance between this node and other nodes, and find the k sample points closest to it according to the k nearest neighbor algorithm and connect them; similarly, for any node Use the same method to find the k sample points closest to it, and after obtaining the connection relationship of all nodes in the graph, they can be connected to form the text modal graph MG t =(V t ,E t ),in, Represents distance samples The set of k nearest neighbor points, E t Represents the set of edges connecting each vertex; text modal graph MG t The adjacency matrix of b ij Represents the vertices in the image modal graph and vertices The neighbor weights of .

2. The method according to claim 1, characterized in that The modality invariant loss L2 is defined in the common representation learning layer of the image subnet and the text subnet: Among them, ||·‖ F represents the F-norm, and n is the total number of logarithms of images and texts.

3. The method according to claim 2, characterized in that The semantic loss L1 is defined in the linear classifier of the image subnet and the text subnet: Among them, P v Represents the mapping matrix of the image subnet linear classifier, represents the image modality prediction vector generated by the image subnet linear classifier; P t Represents the mapping matrix of the text subnet linear classifier, P t T N represents the text modality prediction vector generated by the text subnet linear classifier.

4. The method according to claim 3, characterized in that The total loss function L of the network is: Among them, α is a balancing hyperparameter.

5. The method according to claim 4, characterized in that When minimizing the total network loss function L, the parameter update formula of the linear classifier of the image subnet and the text subnet is P v =(MM T ) -1 M T Y1, P t =(NN T ) -1 N T Y2.

6. The method according to claim 5, characterized in that The image graph convolutional encoding network and the text graph convolutional encoding network both contain two layers of graph convolutions with ReLU activation function, and the number of hidden units corresponding to the two layers of graph convolutions are 4096 and 2048 respectively; the image fully connected encoding network and the text fully connected encoding network are both single-layer fully connected, with 2048 hidden units and ReLU activation function.

7. The method according to claim 6, characterized in that The common representation learning layer of the image subnet and the common representation learning layer of the text subnet share weights, the number of hidden units is 2048, and the activation function is ReLU.

8. The method according to claim 7, characterized in that The linear classifier of the image subnet is used to retain the semantic recognition of the common representation feature M of the image, which is a single-layer fully connected; the linear classifier of the text subnet is used to retain the semantic recognition of the common representation feature N of the text, which is a single-layer fully connected.

Citation Information

Cited By

  • Noise label cross-modal retrieval method based on gradient guided dynamic division

    CN119829810A