A graph-text matching method for single-category low-information data

Using Gaussian kernel functions and optimization algorithms to perform kernel processing and projection learning on single-category low-information data, the problem of low image-text matching accuracy is solved, and a higher average matching accuracy and a more robust hawthorn algorithm are achieved. Hic code matrix improves the performance of image-text matching.

CN117315687BActive Publication Date: 2024-10-08HONGKEYALI (BEIJING) LABOR DISPATCH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311502015.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2024-10-08
Estimated Expiration
2043-11-10

AI Technical Summary

Technical Problem

The existing technology performs poorly in processing single-category image-text matching tasks with low information content, resulting in a decrease in image-text matching accuracy. Especially when sample information is insufficient and manual labeling is difficult, the cost of obtaining multi-category labeled data is high. , leading to the problem of low information content of the data.

Method used

The Gaussian kernel function is used to kernelize the low-information data, construct the objective function and projection learning formula, obtain the hash code matrix and hash projection matrix through the optimization algorithm, decompose the graphic representation matrix, embed the label information, and impose semantic constraints to Correct the mapping direction to improve the accuracy of the public representation matrix and the robustness of the hash code matrix.

Benefits of technology

Significantly improves the average accuracy of image-text matching for single-category low-information data, extracts nonlinear features, enhances the consistency of the public representation matrix and the discriminability of the hash projection matrix, and the learned hash code matrix is ​​more robust sex and discriminability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117315687B_ABST
    Figure CN117315687B_ABST
Patent Text Reader

Abstract

A method for image-text matching for single-category low-information data belongs to the field of image-text matching in multimedia information processing. The present invention first divides a data set into a training set and a test set. Then, the low-information data of the training set and the test set are kernelized using a Gaussian kernel function, and mapped to a high-dimensional kernel space to extract nonlinear features. Then, an objective function and a projection learning formula for the image-text matching problem of single-category low-information data are constructed for subsequent learning of a hash code matrix and a hash projection matrix. Then, the objective function is optimized using optimization algorithm 1 to obtain a hash code matrix B. Then, the projection learning formula is optimized using optimization algorithm 2 to obtain hash projection matrices H1 and H2. Finally, the hash code matrix B and hash projection matrices H1 and H2 obtained in the above steps are used to test the test set and calculate the average accuracy of image-text matching. Compared with other methods, the average accuracy of the present invention is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of image-text matching in multimedia information processing, and in particular relates to an image-text matching method for single-category low-information data. Background Art

[0002] In the field of multimedia information processing, images and texts are widely used and easy to obtain data modal types. Most of the previous matching methods are aimed at a single modality, such as text-text matching and image-image matching. With the advent of the big data era, single-modality matching can no longer meet the needs of users, and multimodal matching (image-text, audio-video, etc.) has emerged. Considering the environment, equipment and other reasons, the data obtained during the sample collection process may not be particularly complete, and the collected data contains a low amount of information. These low-information data do not provide sufficient features, which leads to a decrease in their feature discrimination ability, thereby affecting the accuracy of the image-text matching task. On the other hand, image-text data containing multi-class labels helps to improve the performance of the image-text matching task because it provides rich labeling information. However, due to the difficulty of manual labeling, the cost of obtaining multi-class label data is high. In the real environment, only image-text data with single-category attribute labels can be obtained, that is, each pair of image-text samples contains only one category attribute, which also leads to low information content of the data at the label level. The existing image-text matching methods perform poorly on this type of data, and effective novel technical methods are needed to solve the image-text matching problem of single-category low-information data. Summary of the invention

[0003] In order to solve the above problem, the present invention provides a graph-text matching method for single-category low-information data, the method comprising the steps of:

[0004] Divide the dataset into training set and test set.

[0005] The Gaussian kernel function is used to perform kernelization on the low-information data of the training set and the test set.

[0006] Construct the objective function and projection learning formula for the single-category low-information data image-text matching problem.

[0007] The objective function is optimized using optimization algorithm 1 to obtain the hash code matrix B.

[0008] The projection learning formula is optimized using optimization algorithm 2 to obtain hash projection matrices H1 and H2.

[0009] The hash code matrix B and hash projection matrices H1 and H2 obtained in the above steps are used to test the test set and calculate the average accuracy of image-text matching.

[0010] Further, the Gaussian kernel function is defined as:

[0011]

[0012] Where x is a column vector of data samples, is the i-th element of x subjected to Gaussian kernelization, where is the square of the 2-norm of the vector, are q column vectors randomly extracted from the data sample without repetition (the size of q is also the dimension of the kernelized data in the objective function), is the kernel width, where n is the number of samples, x i is the i-th column vector of the data sample, g j for is the j-th column vector in , and ||·||2 is the 2-norm of the vector.

[0013] Furthermore, the objective function is:

[0014]

[0015] stB∈{-1,1} r×n ,QQ T =I

[0016] in, is the low-information image data matrix, is a low-information text data matrix, where d1 and d2 are the dimensions of low-information image and text data, and n is the number of samples. is the kernelized image and text data matrix, where q is the dimension of the kernelized data, U1, U2∈R q×r are the basis matrices of images and texts respectively, where r is the hash code length, V∈R r×n is the unified representation matrix of image and text, C1, C2∈R r×n are the specific representation matrices of images and texts, L∈R c×n is the label matrix, where c is the number of label types, R∈R c×r is the projection matrix, Q∈R r×r is a projection matrix with orthogonal constraints, I is the identity matrix, B∈{-1,1} r×n is a hash code matrix whose elements are -1 or 1, K, Y∈R r×n is the auxiliary matrix used for subsequent optimization, tr(·) is the trace of the matrix, is the square of the matrix F-norm, ||·|| * is the nuclear norm of the matrix, Re(·) is the sum of the squares of the F-norm of each item in •, and λ1, λ2, α, β, γ, ω, μ1, ρ are trade-off parameters.

[0017] Furthermore, the projection learning formula is:

[0018]

[0019] Where r is the hash code length, M∈R c×n is the normalized label matrix, i.e., M i = l i / ||l i ||2, l i is the i-th column vector of the label matrix L, ||•||2 is the 2-norm of the vector, H t ∈R r×q is the hash projection matrix of the t-th modality (when t=1, the modality is image, when t=2, the modality is text), where q is the dimension of the kernelized data mentioned in the objective function, and μ2 is the trade-off parameter.

[0020] Further, the optimization algorithm 1 is summarized as follows:

[0021]

[0022] Furthermore, the optimization algorithm 2 is summarized as follows:

[0023]

[0024]

[0025] The present invention provides a method for matching images and texts for single-category low-information data, which has the following advantages:

[0026] (1) The method uses a Gaussian kernel function to perform kernelization on low-information data and maps it to a high-dimensional kernel space, thereby extracting the nonlinear features of the low-information data.

[0027] (2) The method decomposes the representation matrix of the image and text into a common representation matrix and a specific representation matrix. The inconsistency of the two specific representation matrices is guaranteed, so that the learned common representation matrix can contain more consistent information of the image and text representation than the common representation matrix obtained by the traditional method.

[0028] (3) The method decomposes the label matrix into the product of the projection matrix and the public representation matrix, and decomposes the hash code matrix into the product of the orthogonal projection matrix and the public representation matrix. In this way, the label information is embedded in the public representation matrix, making the public representation matrix more accurate, thereby learning a more robust hash code matrix.

[0029] (4) The method imposes semantic constraints on the hash projection matrix in the first term of the projection learning formula, which helps to correct the mapping direction. The learned hash projection matrix is ​​more discriminative than the hash projection matrix obtained by the traditional simple linear projection method. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative labor.

[0031] Figure 1 It is a flow chart of the image-text matching method for single-category low-information data provided by the present invention; DETAILED DESCRIPTION

[0032] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0033] Exemplary Methods

[0034] like Figure 1 The present invention provides a method for matching images and texts for single-category low-information data, and the method steps are as follows:

[0035] Step S110: Divide the data set into a training set and a test set.

[0036] Step S120: Use the Gaussian kernel function to perform kernel processing on the low-information data of the training set and the test set. (1) , X (2) Using Gaussian kernel function Processed

[0037] Step S130: construct an objective function and projection learning formula for the single-category low-information data image-text matching problem.

[0038] The objective function is as follows:

[0039]

[0040] stB∈{-1,1} r×n ,QQ T =I

[0041] in, is the low-information image data matrix, is a low-information text data matrix, where d1 and d2 are the dimensions of low-information image and text data, and n is the number of samples. is the kernelized image and text data matrix, where q is the dimension of the kernelized data, U1, U2∈R q×r are the basis matrices of images and texts respectively, where r is the hash code length, V∈R r×n is the unified representation matrix of image and text, C1, C2∈R r×n are the specific representation matrices of images and texts, L∈R c×n is the label matrix, where c is the number of label types, R∈R c×r is the projection matrix, Q∈R r×r is a projection matrix with orthogonal constraints, I is the identity matrix, B∈{-1,1} r×n is a hash code matrix whose elements are -1 or 1, K, Y∈R r×n is the auxiliary matrix used for subsequent optimization, tr(·) is the trace of the matrix, is the square of the matrix F-norm, ||·|| * is the nuclear norm of the matrix, Re(·) is the sum of the squares of the F-norm of each item in •, and λ1, λ2, α, β, γ, ω, μ1, ρ are trade-off parameters.

[0042] The projection learning formula is as follows:

[0043]

[0044] Where r is the hash code length, M∈R c×n is the normalized label matrix, i.e., M i = l i / ||l i ||2, l i is the i-th column vector of the label matrix L, ||•||2 is the 2-norm of the vector, H t ∈R r×q is the hash projection matrix of the t-th modality (when t=1, the modality is image, when t=2, the modality is text), where q is the dimension of the kernelized data mentioned in the objective function, and μ2 is the trade-off parameter.

[0045] Step S140: Optimize the objective function using optimization algorithm 1 to obtain a hash code matrix B. The optimization algorithm 1 is as follows:

[0046]

[0047] Step S150: Optimize the projection learning formula using optimization algorithm 2 to obtain hash projection matrices H1 and H2. Optimization algorithm 2 is as follows:

[0048]

[0049]

[0050] Step S160: Use the hash code matrix B and hash projection matrices H1 and H2 obtained in the above steps to test the test set and calculate the average accuracy of image-text matching.

[0051] Through this implementation, the data set is first divided into a training set and a test set, and then the low-information data of the training set and the test set are kernelized using a Gaussian kernel function, and then the objective function and projection learning formula for the single-category low-information data image-text matching problem are constructed, and then the objective function is optimized using optimization algorithm 1 to obtain a hash code matrix B, and then the projection learning formula is optimized using optimization algorithm 2 to obtain hash projection matrices H1 and H2. Finally, the hash code matrix B and hash projection matrices H1 and H2 obtained in the above steps are used to test the test set and calculate the average accuracy of image-text matching.

[0052] To further illustrate, assuming that a single-category low-information image-text matching data set is matched according to this implementation, a matching result with an average accuracy higher than that of most methods will be obtained.

[0053] Detailed description of the invention Results

[0054] This implementation uses a publicly available single-category low-information image-text matching dataset, the details of which are described as follows:

[0055] The Wiki dataset consists of 2,866 text-image pairs crawled from Wikipedia. These text-image pairs can be divided into ten categories, and each text-image pair belongs to only one of them. For each pair of samples, the text is represented by a 10-dimensional LDA feature and the image is represented by a 128-dimensional SIFT feature.

[0056] In order to verify the superiority of this implementation (Ours), this implementation is compared with several existing image-text matching methods, including ASCSH, FCMH, LCMFH, OCMFH and other methods. The average accuracy (mAP) of these methods using hash codes of different lengths for image-text matching on the above public datasets will be compared. The specific data comparison is shown in Table 1.

[0057] Table 1 Average accuracy mAP (%) of image-text matching in Wiki dataset

[0058] Hash code length ASCSH FCMH LCMFH OCMFH Ours 16 72.17 69.4 65.56 55.32 76.39 32 74.2 69.13 66.65 58.59 76.69 64 74.52 71.26 67.18 58.75 77.14

[0059] By comparing the data in the above two tables, we can see that Ours achieves the best performance in the selected hash code length, significantly improving the average accuracy of single-category low-information data image-text matching. The quantitative results fully demonstrate the superiority of Ours, because Ours uses Gaussian kernel function to process low-information data, which can map it to a high-dimensional kernel space and extract nonlinear features; Ours decomposes the representation matrix of images and texts into a common representation matrix and a specific representation matrix, and the learned common representation matrix can contain more consistent information of image and text representation than the common representation matrix obtained by traditional methods; Ours embeds label information into the common representation matrix, making the common representation matrix more accurate, thereby learning a more robust hash code matrix; Imposing semantic constraints on the hash projection matrix helps to correct the mapping direction, making the learned hash projection matrix more discriminative than the hash projection matrix obtained by the traditional simple linear projection method. A large number of experiments show that this method is superior to most existing methods. Regarding the setting of parameters of this embodiment, in all experiments, the weighted parameters are λ1=5e-4, λ2=6e-4, α=5e-6, β=1, γ=220, ω=5e-5, ρ=250, μ1=5e-4, μ2=8e-6.

[0060] This embodiment proposes a method for matching single-category low-information image and text data, which is used to match single-category low-information image and text data. The low-information data is processed by using the Gaussian kernel function, and projected into a high-dimensional kernel space to obtain the nonlinear characteristics of the low-information data. The constructed objective function is optimized by using the optimization algorithm 1 to obtain the hash code matrix B, and then the constructed projection learning formula is optimized by using the optimization algorithm 2 to obtain the hash projection matrices H1 and H2. Finally, the hash code matrix B and the hash projection matrices H1 and H2 are used to test the test set and calculate the average accuracy of the image and text matching. The experimental results on the public data set Wiki show that this embodiment has a higher average matching accuracy than other methods and has better superiority.

[0061] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.

Claims

1. A method for matching images and texts for single-category low-information data, the method comprising the steps of: Divide the data set into training set and test set; Use Gaussian kernel function to kernelize the low-information data in the training set and test set; Construct the objective function and projection learning formula for the single-category low-information data image-text matching problem; The objective function is: s.t.B∈{-1,1} r×n ,QQ T =I in, is the low-information image data matrix, is a low-information text data matrix, where d1 and d2 are the dimensions of low-information image and text data, and n is the number of samples. is the kernelized image and text data matrix, where q is the dimension of the kernelized data, U1, U2∈R q×r are the basis matrices of images and texts respectively, where r is the hash code length, V∈R r×n is the unified representation matrix of image and text, C1, C2∈R r×n are the specific representation matrices of images and texts, L∈R c×n is the label matrix, where c is the number of label types, R∈R c×r is the projection matrix, Q∈R r×r is a projection matrix with orthogonal constraints, I is the identity matrix, B∈{-1,1} r×n is a hash code matrix whose elements are -1 or 1, K, Y∈R r×n is the auxiliary matrix used for subsequent optimization, tr(·) is the trace of the matrix, is the square of the matrix F-norm, ||·|| * is the nuclear norm of the matrix, Re(·) is the sum of the squares of the F-norm of each item in ·, λ1, λ2, α, β, γ, ω, μ1, ρ are trade-off parameters; The projection learning formula is: Where r is the hash code length, M∈R c×n is the normalized label matrix, i.e., M i = l i / ||l i ||2, l i is the i-th column vector of the label matrix L, ||·||2 is the 2-norm of the vector, H t ∈R r×q is the hash projection matrix of the t-th modality. When t=1, the modality is image, and when t=2, the modality is text. q is the dimension of the kernelized data mentioned in the objective function, and μ2 is the trade-off parameter. Use optimization algorithm 1 to optimize the objective function and obtain the hash code matrix B; The optimization algorithm 1 is summarized as follows: The hash code matrix B and hash projection matrices H1 and H2 obtained in the above steps are used to test the test set and calculate the average accuracy of image-text matching.

2. The image-text matching method for single-category low-information data according to claim 1, characterized in that: The Gaussian kernel function is defined as: Where x is a column vector of data samples, is the i-th element of x subjected to Gaussian kernelization, where is the square of the 2-norm of the vector, is q column vectors randomly extracted from the data sample without repetition. The size of q is also the dimension of the kernelized data in the objective function. is the kernel width, where n is the number of samples, x i is the i-th column vector of the data sample, g j for is the j-th column vector in , and ||·||2 is the 2-norm of the vector.

Citation Information

Patent Citations

  • Image-text sample-oriented efficient supervision graph embedding cross-media hash retrieval method

    CN112214623A

  • Multi-modal Hash retrieval method guided by Hadamard matrix

    CN114637751A

  • Image retrieval method based on multi-label projection online Hash algorithm

    CN115618039A

  • Deep surrogate langevin sampling for multi-objective constraint black box optimization with applications to optimal inverse design problems

    US20220076130A1