WO2024011815A1 - 图文互检模型训练方法及装置、图文互检方法、设备 - Google Patents
图文互检模型训练方法及装置、图文互检方法、设备 Download PDFInfo
- Publication number
- WO2024011815A1 WO2024011815A1 PCT/CN2022/134092 CN2022134092W WO2024011815A1 WO 2024011815 A1 WO2024011815 A1 WO 2024011815A1 CN 2022134092 W CN2022134092 W CN 2022134092W WO 2024011815 A1 WO2024011815 A1 WO 2024011815A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- text
- image
- data
- training
- features
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3344—Query execution using natural language analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/35—Clustering; Classification
- G06F16/353—Clustering; Classification into predefined classes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/5846—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using extracted text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
- G06F40/211—Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Definitions
- This application relates to the field of retrieval technology, in particular to image and text mutual inspection model training methods and devices, image and text mutual inspection methods and equipment.
- the purpose of this application is to provide image and text mutual inspection model training methods and devices, image and text mutual inspection methods and equipment, which can improve the performance of the image and text mutual inspection model, and thereby improve the accuracy of image and text mutual inspection.
- the specific plan is as follows:
- this application discloses a method for training a picture-text mutual inspection model, which includes:
- the training data pair includes text training data and image training data
- the text training data includes long text data
- the long text data is text data containing multiple target texts
- the target text is a sentence or phrase
- the text coding module includes a multi-layer LSTM network, and multiple The layer LSTM network includes a first LSTM network layer and a second LSTM network layer.
- the first LSTM network layer is used to obtain the characteristics of each target text based on the characteristics of each word in each target text;
- the second LSTM network layer is used to obtain the characteristics of each target text based on The features of each target text obtain the features of long text data;
- the initial model after parameter adjustment is determined as the image-text mutual detection model.
- the first LSTM network layer includes multiple BiLSTM networks, and each BiLSTM network includes multiple BiLSTM units; different BiLSTM units are used to extract features of different words, and different BiLSTM networks output features of different target texts;
- the second LSTM network layer includes multiple BiLSTM units, and the input of the BiLSTM unit is the feature of the target text output by the corresponding BiLSTM network in the first LSTM network layer.
- the text training data includes multiple long text data.
- the text encoding module includes multiple multi-layer LSTM networks, and each multi-layer LSTM network is used to obtain the characteristics of a long text data.
- the text training data also includes short text data, which is text data containing a target text; correspondingly, the text encoding module also includes a short text feature extraction module for extracting features of the short text data.
- use the text encoding module in the initial model to extract text encoding features of the text training data including:
- the features of multiple long text data and the features of short text data are spliced to obtain the text encoding features of the text training data.
- training data pairs including:
- Each type of text data is determined as the text training data in the training data pair, and the image data is determined as the image training data in the training data pair.
- the image training data is an image sequence
- the image coding module includes a backbone network and a BiLSTM network.
- the image coding module is used to extract the image coding features of the image training data, including:
- the image coding module also includes an attention structure.
- the image features are input into the BiLSTM network to obtain image coding features, including:
- the final features of each image feature are determined based on the attention weight, and the final features are input into the BiLSTM network to obtain the image encoding features.
- calculate training loss based on text encoding features and image encoding features including:
- the coding feature pairs are the coding pairs composed of the text coding features and image coding features of the training data pairs
- the anchor sample is any text encoding feature or image encoding feature in the N encoding feature pairs
- the positive sample is another encoding feature paired with the anchor sample
- the negative sample is the other encoding feature in the N encoding feature pair. All coding features except;
- the training loss is calculated based on the anchor sample and the positive and negative samples corresponding to the anchor sample.
- the training data pairs into the initial model before inputting the training data pairs into the initial model, it also includes:
- the target long text data is long text data with temporal relationships between sentences in the text training data
- the target long text data will be scrambled, otherwise the target long text data will not be scrambled;
- the label indicates whether the target long text data has been scrambled.
- Optional also includes:
- the temporal constraint loss is calculated based on the characteristics of the target long text data and the labels of the target long text data.
- calculate the training loss based on the anchor sample and the positive and negative samples corresponding to the anchor sample including:
- the training loss is calculated using the target triplet loss and the temporal constraint loss.
- this application discloses a picture-text mutual inspection method, which includes:
- target data is image data or text data
- all data encoding features are text encoding features; if the target data is text data, all data encoding features are image encoding features.
- this application discloses a picture-text mutual inspection model training device, which includes:
- the training data acquisition module is used to obtain training data pairs; the training data pairs include text training data and image training data.
- the text training data includes long text data.
- the long text data is text data containing multiple target texts.
- the target text is a sentence or phrase;
- the feature extraction module is used to input the training data pairs into the initial model, and respectively uses the text coding module and the image coding module in the initial model to extract the text coding features of the text training data and the image coding features of the image training data;
- the text coding module includes Multi-layer LSTM network
- the multi-layer LSTM network includes a first LSTM network layer and a second LSTM network layer.
- the first LSTM network layer is used to obtain the characteristics of each target text based on the characteristics of each word in each target text
- the second The LSTM network layer is used to obtain the features of long text data based on the features of each target text;
- Loss calculation module used to calculate training loss based on text encoding features and image encoding features
- Parameter adjustment module used to adjust parameters of the initial model based on training loss
- the image-text mutual detection model determination module is used to determine the initial model after parameter adjustment as the image-text mutual detection model if the training loss meets the convergence condition.
- this application discloses an electronic device, including a memory and a processor, wherein:
- Memory used to hold computer programs
- the processor is configured to execute a computer program to implement the aforementioned image-text mutual inspection model training method, and/or the aforementioned image-text mutual inspection method.
- the present application discloses a non-volatile readable storage medium for storing a computer program, wherein when the computer program is executed by a processor, the aforementioned image-text mutual inspection model training method is implemented, and/or, the aforementioned The picture and text mutual inspection method.
- this application obtains training data pairs; the training data pairs include text training data and image training data, the text training data includes long text data, the long text data is text data containing multiple target texts, and the target text is a sentence or phrase; then Input the training data pairs into the initial model, and use the text coding module and image coding module in the initial model to extract the text coding features of the text training data and the image coding features of the image training data; among them, the text coding module includes a multi-layer LSTM network, and multiple The layer LSTM network includes a first LSTM network layer and a second LSTM network layer.
- the first LSTM network layer is used to obtain the characteristics of each target text based on the characteristics of each word in each target text; the second LSTM network layer is used to obtain the characteristics of each target text based on The features of each target text are obtained from the features of the long text data. Then the training loss is calculated based on the text encoding features and image encoding features, and the parameters of the initial model are adjusted based on the training loss. If the training loss meets the convergence conditions, the adjusted parameters are The initial model is determined to be a picture-text mutual inspection model.
- a multi-layer LSTM network is used to extract the features of text training data, and the first LSTM network layer is first used to obtain the features of each sentence or phrase based on the features of each word in each target text, and then the second LSTM network layer is used to obtain the features of each sentence or phrase.
- the LSTM network layer obtains the characteristics of long text data based on the characteristics of each sentence or phrase. In this way, it solves the problem of information forgetting between words, sentences or phrases that are far apart in long text data, and obtains richer text information, which can Improve the performance of the image-text mutual inspection model, thereby improving the accuracy of image-text mutual inspection.
- Figure 1 is a flow chart of a training method for a picture-text mutual inspection model disclosed in this application;
- Figure 2 is a schematic diagram of a text encoding module disclosed in this application.
- Figure 3 is a schematic diagram of a specific image coding module disclosed in this application.
- FIG. 4 is a schematic diagram of an attention module disclosed in this application.
- Figure 5 is a schematic diagram of a specific positive and negative sample disclosed in this application.
- Figure 6 is a flow chart of a specific image-text mutual inspection model training method disclosed in this application.
- Figure 7 is a schematic diagram of a specific image-text mutual inspection model training disclosed in this application.
- Figure 8 is a flow chart of a graphic-text interactive method disclosed in this application.
- Figure 9 is a schematic structural diagram of a picture-text mutual inspection model training device disclosed in this application.
- Figure 10 is a structural diagram of an electronic device disclosed in this application.
- Figure 11 is a schematic structural diagram of a non-volatile readable storage medium disclosed in this application.
- this application provides a picture-text mutual check model training and picture-text mutual check scheme, which can improve the performance of the picture-text mutual check model and thereby improve the accuracy of picture-text mutual check.
- a picture-text mutual inspection model training method includes:
- Step S11 Obtain a training data pair; the training data pair includes text training data and image training data, the text training data includes long text data, the long text data is text data containing multiple target texts, and the target text is a sentence or a phrase.
- Step S12 Input the training data pairs into the initial model, and use the text coding module and the image coding module in the initial model to extract the text coding features of the text training data and the image coding features of the image training data;
- the text coding module includes a multi-layer LSTM Network
- the multi-layer LSTM network includes a first LSTM network layer and a second LSTM network layer.
- the first LSTM network layer is used to obtain the characteristics of each target text based on the characteristics of each word in each target text
- the second LSTM network layer Used to obtain features of long text data based on the features of each target text.
- the first LSTM network layer includes multiple BiLSTM (Bi-directional Long-Short Term Memory) networks, and each BiLSTM network includes multiple BiLSTM units; different BiLSTM units are used to extract different Characteristics of words, different BiLSTM networks output the characteristics of different target texts; the second LSTM network layer includes multiple BiLSTM units, and the input of the BiLSTM units is the characteristics of the target text output by the corresponding BiLSTM network in the first LSTM network layer.
- BiLSTM Bi-directional Long-Short Term Memory
- the text encoding module also includes a word encoding layer, which is used to encode each word in the text training data, and the encoding of each word of different target texts in the long text data is input into the BiLSTM in different BiLSTM networks in the first LSTM network layer. unit.
- the word encoding layer can be a transformer layer or a word 2 vector (that is, words are converted into vectors) layer. That is, the encoding of words in different target texts is input into different BiLSTM networks.
- the second LSTM network layer may include two sub-network layers, the first sub-network layer includes multiple BiLSTM networks, and each BiLSTM network includes multiple BiLSTM unit, the input of the BiLSTM unit is the characteristics of the target text output by the corresponding BiLSTM network in the first LSTM network layer, and different BiLSTM networks output the characteristics of different sections of text.
- the second sub-network layer includes multiple BiLSTM units. The input of the BiLSTM unit is the feature of the text segment output by the corresponding BiLSTM network in the first sub-network layer. The output of the second sub-network layer is the feature of the long text data.
- the text training data can include multiple long text data.
- the text encoding module includes multiple multi-layer LSTM networks, and each multi-layer LSTM network is used to obtain the characteristics of a long text data.
- the text training data may also include short text data, which is text data containing a target text; correspondingly, the text encoding module also includes a short text feature extraction module for extracting features of the short text data.
- short text data is text data containing a target text
- the text encoding module also includes a short text feature extraction module for extracting features of the short text data.
- one-word text can also be used as short text.
- the embodiment of the present application splices the features of multiple long text data and the features of short text data to obtain the text coding features of the text training data.
- text data and image data in the same paper can be extracted.
- extract text data and image data from medical papers classify the text data based on semantics, and obtain various types of text data, including: abstract, keywords, and titles.
- the abstract includes multiple sentences, and the keywords include multiple phrases. , are determined to be long text data, and the title is a sentence, which is determined to be short text data.
- medical reports include many types, such as medical papers and so on.
- Medical papers include the paper title, paper abstract, paper keywords and paper body. You can select the title, abstract, and keywords of a medical paper as the main components of text data, and images of medical records or images in the paper as image data.
- Figure 2 is a schematic diagram of a text encoding module provided by an embodiment of the present application.
- the abstract, keywords and title of the medical paper are the first text information, the second text information and the third text information respectively. Since the first text information is a paragraph composed of multiple sentences, and the second text information is composed of multiple sentence phrases, in order to encode the first text information and the second text information, this application proposes a cascaded LSTM structure, That is, a multi-layer LSTM network.
- the input text data of the model includes the first text information, the second text information and the third text information. All words are encoded through the transformer layer.
- the transformer can encode each word into a feature vector and become the representation of the word. . Different text information can correspond to different transformer layers.
- the first text information is encoded through the transformer layer, and then for each sentence of the first text information, it is input into a different BiLSTM network.
- the encoding of different words is input into different BiLSTM units in the BiLSTM network.
- the first BiLSTM network layer The BiLSTM network in is used to extract the feature representation of each sentence of the first text information.
- the feature of the first word or the feature of the last word of each sentence can be selected as the feature representation of the entire sentence.
- Representation method for example, take the mean value of the character features output by all BiLSTM units in the BiLSTM network as the feature of the entire sentence. In this way, the feature representation of each sentence is obtained and combined into a new sequence.
- the features of each sentence are respectively Input the BiLSTM unit in the second LSTM network layer to finally obtain the overall feature expression of the first text information.
- a row of BiLSTM units forms a BiLSTM network.
- the same strategy as for the first text message is adopted.
- the basic transformer model is used to directly obtain features. In this way, three different types of text features are obtained, and the features of all text information are spliced.
- e ttl , e ins , and e ing represent the characteristics of the third text information, the first text information, and the second text information respectively.
- [] represents feature splicing, that is, features are connected end to end.
- e rec represents the spliced features.
- the spliced features are mapped through a fully connected layer to obtain a vector with the same dimension as the word.
- the dimension of the word is the length of the encoding (vector) of the word, and the text encoding features of the text training data are obtained. Subsequently used to match with image coding features.
- the formula is as follows:
- e′ rec represents the text encoding feature of the text training data
- fc represents the fully connected layer processing
- the image training data is an image sequence;
- the image coding module includes a backbone network and a BiLSTM network.
- the embodiment of the present application can use the backbone network to extract the features of each image in the image sequence to obtain image features; input each image feature into the BiLSTM network, Get image coding features.
- the image coding module also includes an attention structure.
- each image feature can be input into the attention structure to obtain the attention weight of each image feature; and the weight of each image feature is determined based on the attention weight.
- final features and input the final features into the BiLSTM network to obtain image encoding features.
- FIG. 3 is a schematic diagram of a specific image encoding module disclosed in an embodiment of the present application.
- the ResNet i.e. Residual Network, residual network
- the ResNet backbone network can be used to extract the image features of each image, and the features of the ResNet network in the previous layer of the classification layer are obtained as each image. image features.
- the image features are input into the BiLSTM network, and each image is input into a BiLSTM unit in the BiLSTM network to obtain the overall characteristics of the image sequence, that is, the image coding characteristics.
- the formula is as follows:
- image sequence also includes reverse order and sequential order. All contain temporal semantic information.
- the embodiment of this application uses the above formula to encode it.
- BiLSTM represents each BiLSTM unit of the BiLSTM network.
- is the output of the i-th BiLSTM unit. represents the image feature, i represents the i-th image, ⁇ represents the order, ⁇ represents the reverse order, I represents the BiLSTM network including I images, ⁇ att () represents the attention structure, and fc represents the fully connected layer.
- the average feature encoding output of the BiLSTM unit can be taken as the output of the BiLSTM network. The formula is as follows:
- e csi represents image feature encoding.
- the attention module designed in this application includes a fully connected layer, an attention module, a softmax layer, a multiplication module, and an addition module.
- the attention module is shown in Figure 4 and includes two fully connected layers FC and one ReLU (i.e. Linear rectification function, linear rectification function) layer.
- FC i.e. Linear rectification function, linear rectification function
- the image obtains embedded features after passing through the backbone network, and the embedded features pass through a fully connected layer to obtain the final embedded feature e of each image.
- the final embedded feature e will pass through the attention module to calculate the weight of each feature.
- the weight is a number and is normalized through the sigmoid layer.
- the weights of the features of all images will be uniformly entered into the softmax layer to determine which image is important.
- the feature weight of the image after the softmax layer will be multiplied by the corresponding final embedded feature e of each image. That is to say, in the embodiment of the present application, the embodiment of the present application can use the backbone network to extract the features of each image in the image sequence to obtain the image features, input the image features into a fully connected layer to obtain the embedded features, and input each embedded feature into the attention layer. force module, obtain the attention weight of each image feature, and then process it through the softmax layer.
- the final features of each image feature are determined, and the final features are input into the BiLSTM network to obtain the image coding features.
- the embodiment of this application introduces the idea of residual network. For each image, the output of its attention structure is as follows:
- Step S13 Calculate training loss based on text encoding features and image encoding features, and adjust parameters of the initial model based on the training loss.
- the positive samples and negative samples corresponding to the anchor point samples can be determined for the N coding feature pairs of the N training data pairs in a batch; wherein the coding feature pairs are the text coding features and images of the training data pairs.
- the anchor sample is any text coding feature or image coding feature among the N coding feature pairs.
- the positive sample is another coding feature paired with the anchor sample.
- the negative sample is N coding features. For all coding features except another coding feature, the training loss is calculated based on the anchor sample and the positive and negative samples corresponding to the anchor sample. The formula used is as follows:
- a text encoding feature corresponds to an image encoding feature.
- this application will traverse each image encoding feature and text encoding feature to find the average loss.
- a total of N times are traversed, and N represents a total of N paired samples in this batch.
- First encode the image features Traverse (N in total), traversing the selected image feature encoding is called a represents anchor (anchor sample).
- anchor sample an anchor sample
- the text feature encoding paired with the anchor sample is denoted as p stands for positive. In the same way, in this batch, All remaining unpaired samples are recorded as s np .
- ⁇ is a hyperparameter, fixed during training, and can be set to 0.4 in this application.
- the same traversal operation is also performed for text feature encoding, represents the sample selected in the traversal, and its corresponding positive image feature encoding sample is recorded as Those that do not correspond are recorded as s np .
- Figure 5 which is a specific schematic diagram of positive and negative samples disclosed in the embodiment of the present application. min represents the minimum value operation, is the target triplet loss,
- Step S14 If the training loss meets the convergence condition, the initial model after parameter adjustment is determined as the image-text mutual detection model.
- the embodiment of the present application obtains a training data pair; the training data pair includes text training data and image training data, the text training data includes long text data, the long text data is text data containing multiple target texts, and the target text is a sentence or a phrase. ; Then input the training data pairs into the initial model, and use the text coding module and image coding module in the initial model to extract the text coding features of the text training data and the image coding features of the image training data; among them, the text coding module includes a multi-layer LSTM network , the multi-layer LSTM network includes the first LSTM network layer and the second LSTM network layer.
- the first LSTM network layer is used to obtain the characteristics of each target text based on the characteristics of each word in each target text; the second LSTM network layer is used To obtain the features of long text data based on the characteristics of each target text, and then calculate the training loss based on the text encoding features and image encoding features, and adjust the parameters of the initial model based on the training loss. If the training loss meets the convergence conditions, the parameters will be adjusted.
- the final initial model is determined as the picture-text mutual inspection model.
- a multi-layer LSTM network is used to extract the features of text training data, and the first LSTM network layer is first used to obtain the features of each sentence or phrase based on the features of each word in each target text, and then the features of each sentence or phrase are obtained using The second LSTM network layer obtains the characteristics of long text data based on the characteristics of each sentence or phrase.
- the embodiment of the present application discloses a specific image-text mutual inspection model training method, which includes:
- Step S21 Obtain a training data pair; the training data pair includes text training data and image training data, the text training data includes long text data, the long text data is text data containing multiple target texts, and the target text is a sentence or a phrase.
- Step S22 Determine whether to shuffle the target long text data based on the preset probability; wherein the target long text data is long text data with a temporal relationship between sentences in the text training data.
- Step S23 If it is determined that the target long text data is to be scrambled, then the target long text data is scrambled. Otherwise, the target long text data is not scrambled.
- sentences with a preset proportion can be selected, and the positions of the selected sentences can be swapped to implement shuffling.
- the first text information that is, the summary, in the foregoing embodiments usually has a context or time sequence relationship. If you scramble the sentences, you may not know what the abstract is about.
- the text information is randomly selected to be scrambled or not scrambled with a probability of 50%. If the first text information is selected to be scrambled, 30% of the sentences of the first text information are randomly selected. The selected sentences in the first text information exchange positions with each other, and the unselected sentences remain unchanged in their original positions. New first text information can be obtained through the above replacement steps. That is, the first text information after scrambling.
- Step S24 Add a label to the target long text data, where the label indicates whether the target long text data has been scrambled.
- Step S25 Input the training data pairs into the initial model, and respectively use the text encoding module and the image encoding module in the initial model to extract the text encoding features of the text training data and the image encoding features of the image training data;
- the text encoding module includes a multi-layer LSTM Network
- the multi-layer LSTM network includes a first LSTM network layer and a second LSTM network layer.
- the first LSTM network layer is used to obtain the characteristics of each target text based on the characteristics of each word in each target text
- the second LSTM network layer Used to obtain features of long text data based on the features of each target text.
- Step S26 Calculate training loss based on text encoding features and image encoding features, and adjust parameters of the initial model based on the training loss.
- training loss calculation specifically includes the following steps:
- Step 260 Calculate the training loss based on the anchor sample and the positive and negative samples corresponding to the anchor sample to calculate the target triplet loss.
- step 260 Regarding the specific calculation process of the above-mentioned step 260, reference may be made to the content disclosed in the foregoing embodiments, and details will not be described again here.
- Step 261 Calculate the timing constraint loss based on the characteristics of the target long text data and the labels of the target long text data.
- B represents the batch size (batch processing size)
- yi ⁇ 0, 1 ⁇ represents the true value label of whether the target long text data is scrambled
- pi represents the probability value of using the characteristics of the target long text data to determine whether the target long text data is scrambled. Represents timing constraint loss.
- Step 262 Calculate the training loss using the target triplet loss and the timing constraint loss.
- the training loss is formulated as follows:
- L represents the total training loss
- Step S27 If the training loss meets the convergence condition, the initial model after parameter adjustment is determined as the image-text mutual detection model.
- FIG. 7 is a schematic diagram of a specific image-text mutual detection model training disclosed in an embodiment of the present application.
- the network is trained according to the above loss function to make it converge.
- the network training process is divided into two stages. The first stage is the stage where data is propagated from low level to high level, that is, the forward propagation stage.
- Another stage is the stage where the error is propagated from the high level to the bottom level, that is, the back propagation stage, when the results obtained by the forward propagation are not in line with expectations.
- the specific training process is as follows: all network layer weights are initialized, generally using random initialization; the input image and text data are forward propagated through the neural network, convolution layer, downsampling layer, fully connected layer and other layers to obtain the output value; find Find the output value of the network and find the loss of the output value of the network. The loss is transmitted back to the network, and the back propagation error of each layer of the network is obtained in turn.
- Each layer of the network adjusts all weight coefficients in the network based on the backpropagation error of each layer, that is, updates the weights.
- the embodiment of the present application discloses a method for mutual inspection of images and texts, which includes:
- Step S31 Obtain target data; where the target data is image data or text data;
- Step S32 Input the target data into the image-text mutual detection model, so that the image-text mutual detection model can extract the target encoding features of the target data; wherein the image-text mutual detection model is obtained based on the image-text mutual detection model training method of the aforementioned embodiment.
- Step S33 Match all data coding features of the data set to be retrieved to obtain the retrieval results.
- the vector distance such as the Euclidean distance
- the distance between the target encoding feature and all data encoding features can be calculated, and the data encoding feature with the smallest distance is determined as the retrieval result.
- all data encoding features are text encoding features; if the target data is text data, all data encoding features are image encoding features.
- the image-text mutual detection model is used to extract features from medical texts or medical images and store them in the data set to be retrieved.
- the user gives any medical text data or medical image data, which is called query data.
- Medical data source channels have diversified characteristics.
- a large-scale medical multi-modal database is constructed and the data query mode in the medical field is optimized.
- doctors use the database to query information, they can screen the desired information with a simple description, which makes the query method more convenient and saves labor costs and time costs.
- the embodiments of this application are except for the field of medical paper retrieval. It can also be adapted to any multi-text type retrieval tasks, such as manual retrieval.
- a picture-text mutual inspection model training device which includes:
- the training data acquisition module 11 is used to acquire training data pairs;
- the training data pairs include text training data and image training data, the text training data includes long text data, the long text data is text data containing multiple target texts, and the target text is a sentence. or phrase;
- the feature extraction module 12 is used to input the training data pairs into the initial model, respectively using the text coding module and the image coding module in the initial model to extract the text coding features of the text training data and the image coding features of the image training data; wherein, the text coding module Including a multi-layer LSTM network, the multi-layer LSTM network includes a first LSTM network layer and a second LSTM network layer, the first LSTM network layer is used to obtain the characteristics of each target text based on the characteristics of each word in each target text; the first The second LSTM network layer is used to obtain the features of long text data based on the features of each target text;
- Loss calculation module 13 used to calculate training loss based on text encoding features and image encoding features
- Parameter adjustment module 14 used to adjust parameters of the initial model based on training loss
- the image-text mutual detection model determination module 15 is used to determine the initial model after parameter adjustment as the image-text mutual detection model if the training loss satisfies the convergence condition.
- the embodiment of the present application obtains a training data pair; the training data pair includes text training data and image training data, the text training data includes long text data, the long text data is text data containing multiple target texts, and the target text is a sentence or a phrase. ; Then input the training data pairs into the initial model, and use the text coding module and image coding module in the initial model to extract the text coding features of the text training data and the image coding features of the image training data; among them, the text coding module includes a multi-layer LSTM network , the multi-layer LSTM network includes the first LSTM network layer and the second LSTM network layer.
- the first LSTM network layer is used to obtain the characteristics of each target text based on the characteristics of each word in each target text; the second LSTM network layer is used To obtain the features of long text data based on the characteristics of each target text, and then calculate the training loss based on the text encoding features and image encoding features, and adjust the parameters of the initial model based on the training loss. If the training loss meets the convergence conditions, the parameters will be adjusted.
- the final initial model is determined as the picture-text mutual inspection model.
- a multi-layer LSTM network is used to extract the features of text training data, and the first LSTM network layer is first used to obtain the features of each sentence or phrase based on the features of each word in each target text, and then the features of each sentence or phrase are obtained using The second LSTM network layer obtains the characteristics of long text data based on the characteristics of each sentence or phrase.
- the first LSTM network layer includes multiple BiLSTM networks, and each BiLSTM network includes multiple BiLSTM units; different BiLSTM units are used to extract features of different words, and different BiLSTM networks output features of different target texts;
- the second LSTM network layer includes There are multiple BiLSTM units, and the input of the BiLSTM unit is the feature of the target text output by the corresponding BiLSTM network in the first LSTM network layer.
- the text training data includes multiple long text data.
- the text encoding module includes multiple multi-layer LSTM networks, and each multi-layer LSTM network is used to obtain the characteristics of a long text data.
- the text training data also includes short text data, which is text data containing a target text; correspondingly, the text encoding module also includes a short text feature extraction module, which is used to extract features of the short text data.
- the feature extraction module 12 is specifically used to splice features of multiple long text data and features of short text data to obtain text coding features of the text training data.
- the training data acquisition module 11 is specifically used to extract text data and image data in the same paper. Classify text data based on semantics to obtain various types of text data; determine each type of text data as long text data or short text data based on the number of target texts; determine each type of text data as text training in training data pairs data, and identifying the image data as the image training data in the training data pair.
- the image training data is an image sequence
- the image coding module includes a backbone network and a BiLSTM network.
- the feature extraction module 12 is specifically used to extract features of each image in the image sequence using the backbone network to obtain image features. ; Input each image feature into the BiLSTM network to obtain image coding features.
- the image coding module also includes an attention structure.
- the feature extraction module 12 is specifically used to input each image feature into the attention structure to obtain the attention weight of each image feature; determine based on the attention weight
- the final features of each image feature are input into the BiLSTM network to obtain the image encoding features.
- the loss calculation module 13 is specifically used to determine the positive samples and negative samples corresponding to the anchor point samples for the N coding feature pairs of a batch of N training data pairs; wherein the coding feature pairs are training data A coding pair composed of a pair of text coding features and image coding features.
- the anchor sample is any text coding feature or image coding feature among the N coding feature pairs.
- the positive sample is another coding feature paired with the anchor sample.
- the negative samples are all coding features in the N coding feature pairs except the other coding feature; the training loss is calculated based on the anchor sample and the positive and negative samples corresponding to the anchor sample.
- the apparatus further includes:
- the shuffling processing module is used to determine whether to shuffle the target long text data based on a preset probability; wherein the target long text data is long text data with a temporal relationship between sentences in the text training data; if it is determined that the target long text data If the data is scrambled, the target long text data will be scrambled, otherwise the target long text data will not be scrambled; a label will be added to the target long text data, and the label indicates whether the target long text data has been scrambled.
- the loss calculation module 13 is specifically configured to calculate the timing constraint loss based on the characteristics of the target long text data and the tags of the target long text data. Calculate the training loss based on the anchor sample and the positive and negative samples corresponding to the anchor sample to calculate the target triplet loss; use the target triplet loss and timing constraint loss to calculate the training loss.
- the embodiment of the present application discloses an electronic device 20, which includes a processor 21 and a memory 22; the memory 22 is used to save a computer program; the processor 21 is used to execute the computer program.
- the aforementioned embodiment The disclosed image-text mutual inspection model training method, and/or the aforementioned image-text mutual inspection method.
- the memory 22, as a carrier for resource storage may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the storage method may be short-term storage or permanent storage.
- the electronic device 20 also includes a power supply 23, a communication interface 24, an input and output interface 25 and a communication bus 26; the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can provide the electronic device 20 with working voltage.
- a data transmission channel with external devices and the communication protocol it follows is any communication protocol that can be applied to the technical solution of this application, which is not specifically limited here; the input and output interface 25 is used to obtain external input data or To output data to the outside world, the specific interface type can be selected according to specific application needs, and is not specifically limited here.
- the embodiment of the present application also discloses a non-volatile readable storage medium 30 for storing the computer program 31, wherein the computer program 31 implements the disclosure of the foregoing embodiment when executed by the processor.
- the image-text mutual inspection model training method, and/or the aforementioned image-text mutual inspection method are examples of the image-text mutual inspection model training method, and/or the aforementioned image-text mutual inspection method.
- RAM random access memory
- ROM read-only memory
- electrically programmable ROM electrically erasable programmable ROM
- registers hard disks, removable disks, CD-ROMs, or anywhere in the field of technology. any other known form of storage media.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Library & Information Science (AREA)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- Databases & Information Systems (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Evolutionary Computation (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims (20)
- 一种图文互检模型训练方法,其特征在于,包括:获取训练数据对;所述训练数据对包括文本训练数据和图像训练数据,所述文本训练数据包括长文本数据,所述长文本数据为包含多个目标文本的文本数据,所述目标文本为句子或短语;将所述训练数据对输入初始模型,分别利用所述初始模型中的文本编码模块和图像编码模块提取所述文本训练数据的文本编码特征以及所述图像训练数据的图像编码特征;其中,所述文本编码模块包括多层LSTM网络,所述多层LSTM网络包括第一LSTM网络层和第二LSTM网络层,所述第一LSTM网络层用于基于每个所述目标文本中每个字的特征获取每个所述目标文本的特征;所述第二LSTM网络层用于基于每个所述目标文本的特征获取所述长文本数据的特征;基于所述文本编码特征和所述图像编码特征计算训练损失,并基于所述训练损失对所述初始模型进行参数调节;若所述训练损失满足收敛条件,则将参数调节后的初始模型确定为图文互检模型。
- 根据权利要求1所述的图文互检模型训练方法,其特征在于,所述第一LSTM网络层包括多个BiLSTM网络,每个BiLSTM网络包括多个BiLSTM单元;不同所述BiLSTM单元用于提取不同字的特征,不同BiLSTM网络输出不同目标文本的特征;所述第二LSTM网络层包括多个BiLSTM单元,BiLSTM单元的输入为所述第一LSTM网络层中相应BiLSTM网络输出的目标文本的特征。
- 根据权利要求2所述的图文互检模型训练方法,其特征在于,所述文本编码模块还包括字编码层,用于将所述长文本数据中不同目标文本的每个字的编码输入所述第一LSTM网络层中不同BiLSTM网络中的BiLSTM单元。
- 根据权利要求2所述的图文互检模型训练方法,其特征在于,所述长文本数据为包括多段文本的文本数据,所述第二LSTM网络层包括两个子网络层,第一子网络层包括多个BiLSTM网络,每个所述第一子网络层中相应BiLSTM网络包括多个BiLSTM单元,所述第一子网络层中相应BiLSTM单元的输入为所述第一LSTM网络层中相应BiLSTM网络输出的目标文本的特征,不同所述第一子网络层中相应BiLSTM网络输出不同段文本的特征;第二子网络层包括多个BiLSTM单元,所述第二子网络层中相应BiLSTM单元的输入为所述第一子网络层中相应BiLSTM网络输出的成段文本的特征,所述第二子网络层的输出为所述长文本数据的特征。
- 根据权利要求1所述的图文互检模型训练方法,其特征在于,所述文本训练数据包括多个所述长文本数据,相应的,所述文本编码模块包括多个多层LSTM网络,每个所述多层LSTM网络用于获取一个所述长文本数据的特征。
- 根据权利要求5所述的图文互检模型训练方法,其特征在于,所述文本训练数据还包括短文本数据,所述短文本数据为包含一个所述目标文本的文本数据;相应的,所述文本编码模块还包括短文本特征提取模块,用于提取所述短文本数据的特征。
- 根据权利要求6所述的图文互检模型训练方法,其特征在于,利用所述初始模型中的文本编码模块提取所述文本训练数据的文本编码特征,包括:对多个所述长文本数据的特征以及所述短文本数据的特征进行拼接,得到所述文本 训练数据的文本编码特征。
- 根据权利要求6所述的图文互检模型训练方法,其特征在于,所述获取训练数据对,包括:提取同一论文中的文本数据和图像数据;基于语义对所述文本数据分类,得到各类型的文本数据;基于所述目标文本的数量将所述各类型的文本数据确定为长文本数据或短文本数据;将所述各类型的文本数据确定为所述训练数据对中的文本训练数据,以及将所述图像数据确定为所述训练数据对中的图像训练数据。
- 根据权利要求1所述的图文互检模型训练方法,其特征在于,所述图像训练数据为图像序列;所述图像编码模块包括骨干网络和BiLSTM网络,相应的,利用图像编码模块提取所述图像训练数据的图像编码特征,包括:利用骨干网络提取所述图像序列中每张图像的特征,得到图像特征;将各所述图像特征输入所述BiLSTM网络,得到图像编码特征。
- 根据权利要求9所述的图文互检模型训练方法,其特征在于,所述图像编码模块还包括注意力结构,相应的,所述将所述图像特征输入所述BiLSTM网络,得到图像编码特征,包括:将各所述图像特征输入所述注意力结构,得到每个所述图像特征的注意力权重;基于所述注意力权重确定各所述图像特征的最终特征,并将所述最终特征输入所述BiLSTM网络,得到图像编码特征。
- 根据权利要求1所述的图文互检模型训练方法,其特征在于,所述基于所述文本编码特征和所述图像编码特征计算训练损失,包括:针对一个批次N个训练数据对的N个编码特征对,确定锚点样本对应的正样本和负样本;其中,所述编码特征对为所述训练数据对的文本编码特征和图像编码特征组成的编码对,所述锚点样本为所述N个编码特征对中的任一文本编码特征或图像编码特征,所述正样本为与所述锚点样本成对的另一编码特征,所述负样本为所述N个编码特征对中除所述另一编码特征外的所有编码特征;基于所述锚点样本,以及所述锚点样本对应的正样本和负样本计算训练损失。
- 根据权利要求11所述的图文互检模型训练方法,其特征在于,所述将所述训练数据对输入初始模型之前,还包括:基于预设概率确定是否对目标长文本数据进行打乱处理;其中,所述目标长文本数据为所述文本训练数据中句子间具有时序关系的长文本数据;若确定对所述目标长文本数据进行打乱处理,则对所述目标长文本数据进行打乱处理,否则不对所述目标长文本数据进行打乱处理;为所述目标长文本数据添加标签,所述标签表征所述目标长文本数据是否经过打乱处理。
- 根据权利要求12所述的图文互检模型训练方法,其特征在于,还包括:基于所述目标长文本数据的特征以及所述目标长文本数据的所述标签计算时序约束损失。
- 根据权利要求13所述的图文互检模型训练方法,其特征在于,所述基于所述锚 点样本,以及所述锚点样本对应的正样本和负样本计算训练损失,包括:基于所述锚点样本,以及所述锚点样本对应的正样本和负样本计算训练损失计算目标三元组损失;利用所述目标三元组损失和所述时序约束损失计算训练损失。
- 根据权利要求12所述的图文互检模型训练方法,其特征在于,所述对所述目标长文本数据进行打乱处理包括:选择预设比例的句子,对选择的句子进行位置调换,实现打乱处理。
- 根据权利要求1所述的图文互检模型训练方法,其特征在于,所述若所述训练损失满足收敛条件,则将参数调节后的初始模型确定为图文互检模型之前,还包括:判断所述训练损失是否小于预设阈值,若所述训练损失小于所述预设阈值,则判定所述训练损失满足收敛条件;若所述训练损失大于所述预设阈值,则判定所述训练损失没有满足收敛条件。
- 一种图文互检方法,其特征在于,包括:获取目标数据;其中,所述目标数据为图像数据或文本数据;将所述目标数据输入图文互检模型,以便所述图文互检模型提取出所述目标数据的目标编码特征;其中,所述图文互检模型基于如权利要求1至16任一项所述的图文互检模型训练方法得到;在待检索数据集的所有数据编码特征进行匹配,得到检索结果;其中,若所述目标数据为图像数据,则所述所有数据编码特征均为文本编码特征,若所述目标数据为文本数据,则所述所有数据编码特征均为图像编码特征。
- 一种图文互检模型训练装置,其特征在于,包括:训练数据获取模块,用于获取训练数据对;所述训练数据对包括文本训练数据和图像训练数据,所述文本训练数据包括长文本数据,所述长文本数据为包含多个目标文本的文本数据,所述目标文本为句子或短语;特征提取模块,用于将所述训练数据对输入初始模型,分别利用所述初始模型中的文本编码模块和图像编码模块提取所述文本训练数据的文本编码特征以及所述图像训练数据的图像编码特征;其中,所述文本编码模块包括多层LSTM网络,所述多层LSTM网络包括第一LSTM网络层和第二LSTM网络层,所述第一LSTM网络层用于基于每个所述目标文本中每个字的特征获取每个所述目标文本的特征;所述第二LSTM网络层用于基于每个所述目标文本的特征获取所述长文本数据的特征;损失计算模块,用于基于所述文本编码特征和所述图像编码特征计算训练损失;参数调节模块,用于基于所述训练损失对所述初始模型进行参数调节;图文互检模型确定模块,用于若所述训练损失满足收敛条件,则将参数调节后的初始模型确定为图文互检模型。
- 一种电子设备,其特征在于,包括存储器和处理器,其中:所述存储器,用于保存计算机程序;所述处理器,用于执行所述计算机程序,以实现如权利要求1至16任一项所述的图文互检模型训练方法,和/或,如权利要求17所述的图文互检方法。
- 一种非易失性可读存储介质,其特征在于,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1至16任一项所述的图文互检模型训练方 法,和/或,如权利要求17所述的图文互检方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/724,836 US12277169B2 (en) | 2022-07-15 | 2022-11-24 | Method and apparatus for training an image-text mutual retrieval model, image-text mutual retrieval method, and device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210829134.9 | 2022-07-15 | ||
| CN202210829134.9A CN114896373B (zh) | 2022-07-15 | 2022-07-15 | 图文互检模型训练方法及装置、图文互检方法、设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024011815A1 true WO2024011815A1 (zh) | 2024-01-18 |
Family
ID=82730090
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/134092 Ceased WO2024011815A1 (zh) | 2022-07-15 | 2022-11-24 | 图文互检模型训练方法及装置、图文互检方法、设备 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US12277169B2 (zh) |
| CN (1) | CN114896373B (zh) |
| WO (1) | WO2024011815A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117975472A (zh) * | 2024-04-01 | 2024-05-03 | 鹏城实验室 | 物体定位方法、装置、设备及介质 |
| CN118965024A (zh) * | 2024-10-17 | 2024-11-15 | 杭州联汇科技股份有限公司 | 一种图文匹配方法、图文匹配多模态大模型及大模型训练方法 |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117597733A (zh) * | 2021-06-30 | 2024-02-23 | 西北工业大学 | 使用深度神经网络从单输入生成高清晰度双耳语音信号的系统和方法 |
| CN114896373B (zh) | 2022-07-15 | 2022-12-09 | 苏州浪潮智能科技有限公司 | 图文互检模型训练方法及装置、图文互检方法、设备 |
| CN115455228A (zh) * | 2022-11-08 | 2022-12-09 | 苏州浪潮智能科技有限公司 | 一种多模态数据互检方法、装置、设备及可读存储介质 |
| CN115438169A (zh) * | 2022-11-08 | 2022-12-06 | 苏州浪潮智能科技有限公司 | 一种文本与视频的互检方法、装置、设备及存储介质 |
| CN115618043B (zh) * | 2022-11-08 | 2023-04-07 | 苏州浪潮智能科技有限公司 | 文本操作图互检方法及模型训练方法、装置、设备、介质 |
| CN116630986A (zh) * | 2023-03-07 | 2023-08-22 | 平安科技(深圳)有限公司 | 图文对比模型训练方法、装置和图文互检方法 |
| CN116049459B (zh) * | 2023-03-30 | 2023-07-14 | 浪潮电子信息产业股份有限公司 | 跨模态互检索的方法、装置、服务器及存储介质 |
| CN116226319B (zh) * | 2023-05-10 | 2023-08-04 | 浪潮电子信息产业股份有限公司 | 一种混合异构模型训练方法、装置、设备及可读存储介质 |
| CN116246288B (zh) * | 2023-05-10 | 2023-08-04 | 浪潮电子信息产业股份有限公司 | 一种文本编码方法、模型训练方法、模型匹配方法及装置 |
| US12014575B1 (en) * | 2023-12-11 | 2024-06-18 | VelocityEHS Holdings Inc. | Image-based automated ergonomic risk root cause and solution identification system and method |
| CN119829789A (zh) * | 2025-03-14 | 2025-04-15 | 杭州电子科技大学 | 一种训练组合图像检索模型的方法、组合图像检索方法及装置 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10373022B1 (en) * | 2018-02-28 | 2019-08-06 | Konica Minolta Laboratory U.S.A., Inc. | Text image processing using stroke-aware max-min pooling for OCR system employing artificial neural network |
| CN112529986A (zh) * | 2019-09-19 | 2021-03-19 | 百度在线网络技术(北京)有限公司 | 图文相关性的计算模型建立方法、计算方法及装置 |
| US20210271707A1 (en) * | 2020-02-27 | 2021-09-02 | Adobe Inc. | Joint Visual-Semantic Embedding and Grounding via Multi-Task Training for Image Searching |
| CN113435529A (zh) * | 2021-07-06 | 2021-09-24 | 北京百度网讯科技有限公司 | 模型预训练方法、模型训练方法及图像处理方法 |
| CN113836333A (zh) * | 2021-09-18 | 2021-12-24 | 北京百度网讯科技有限公司 | 图文匹配模型的训练方法、实现图文检索的方法、装置 |
| CN114722224A (zh) * | 2022-04-13 | 2022-07-08 | 西安电子科技大学 | 基于联合特征的图文跨模态检索方法 |
| CN114896373A (zh) * | 2022-07-15 | 2022-08-12 | 苏州浪潮智能科技有限公司 | 图文互检模型训练方法及装置、图文互检方法、设备 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108305296B (zh) * | 2017-08-30 | 2021-02-26 | 深圳市腾讯计算机系统有限公司 | 图像描述生成方法、模型训练方法、设备和存储介质 |
| CN108647350A (zh) * | 2018-05-16 | 2018-10-12 | 中国人民解放军陆军工程大学 | 一种基于双通道网络的图文关联检索方法 |
| US10902350B2 (en) * | 2018-07-20 | 2021-01-26 | Verizon Media Inc. | System and method for relationship identification |
| CN111581510B (zh) * | 2020-05-07 | 2024-02-09 | 腾讯科技(深圳)有限公司 | 分享内容处理方法、装置、计算机设备和存储介质 |
| AU2021104218A4 (en) * | 2021-07-16 | 2021-09-09 | Jaspal Bagga | A system for identification of personality traits and a method thereof |
| US20230351172A1 (en) * | 2022-04-29 | 2023-11-02 | Intuit Inc. | Supervised machine learning method for matching unsupervised data |
-
2022
- 2022-07-15 CN CN202210829134.9A patent/CN114896373B/zh active Active
- 2022-11-24 US US18/724,836 patent/US12277169B2/en active Active
- 2022-11-24 WO PCT/CN2022/134092 patent/WO2024011815A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10373022B1 (en) * | 2018-02-28 | 2019-08-06 | Konica Minolta Laboratory U.S.A., Inc. | Text image processing using stroke-aware max-min pooling for OCR system employing artificial neural network |
| CN112529986A (zh) * | 2019-09-19 | 2021-03-19 | 百度在线网络技术(北京)有限公司 | 图文相关性的计算模型建立方法、计算方法及装置 |
| US20210271707A1 (en) * | 2020-02-27 | 2021-09-02 | Adobe Inc. | Joint Visual-Semantic Embedding and Grounding via Multi-Task Training for Image Searching |
| CN113435529A (zh) * | 2021-07-06 | 2021-09-24 | 北京百度网讯科技有限公司 | 模型预训练方法、模型训练方法及图像处理方法 |
| CN113836333A (zh) * | 2021-09-18 | 2021-12-24 | 北京百度网讯科技有限公司 | 图文匹配模型的训练方法、实现图文检索的方法、装置 |
| CN114722224A (zh) * | 2022-04-13 | 2022-07-08 | 西安电子科技大学 | 基于联合特征的图文跨模态检索方法 |
| CN114896373A (zh) * | 2022-07-15 | 2022-08-12 | 苏州浪潮智能科技有限公司 | 图文互检模型训练方法及装置、图文互检方法、设备 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117975472A (zh) * | 2024-04-01 | 2024-05-03 | 鹏城实验室 | 物体定位方法、装置、设备及介质 |
| CN118965024A (zh) * | 2024-10-17 | 2024-11-15 | 杭州联汇科技股份有限公司 | 一种图文匹配方法、图文匹配多模态大模型及大模型训练方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| US12277169B2 (en) | 2025-04-15 |
| US20240419725A1 (en) | 2024-12-19 |
| CN114896373A (zh) | 2022-08-12 |
| CN114896373B (zh) | 2022-12-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2024011815A1 (zh) | 图文互检模型训练方法及装置、图文互检方法、设备 | |
| US10679345B2 (en) | Automatic contour annotation of medical images based on correlations with medical reports | |
| WO2021139247A1 (zh) | 医学领域知识图谱的构建方法、装置、设备及存储介质 | |
| US10565508B2 (en) | Inferred facts discovered through knowledge graph derived contextual overlays | |
| WO2022155994A1 (zh) | 基于注意力的深度跨模态哈希检索方法、装置及相关设备 | |
| CN112507706B (zh) | 知识预训练模型的训练方法、装置和电子设备 | |
| US10430405B2 (en) | Apply corrections to an ingested corpus | |
| CN107832299A (zh) | 基于人工智能的标题的改写处理方法、装置及可读介质 | |
| US20220382965A1 (en) | Text sequence generating method and apparatus, device and medium | |
| CN114791958A (zh) | 一种基于变分自编码器的零样本跨模态检索方法 | |
| WO2022089267A1 (zh) | 样本数据获取方法、图像分割方法、装置、设备和介质 | |
| CN113704392A (zh) | 文本中实体关系的抽取方法、装置、设备及存储介质 | |
| WO2024011814A1 (zh) | 一种图文互检方法、系统、设备及非易失性可读存储介质 | |
| CN115359314A (zh) | 模型训练方法、图像编辑方法、装置、介质与电子设备 | |
| CN114840662A (zh) | 事件信息抽取方法、装置及电子设备 | |
| CN111723194A (zh) | 摘要生成方法、装置和设备 | |
| CN108563645B (zh) | His系统的元数据翻译方法和装置 | |
| CN114446434B (zh) | 一种报告生成方法、系统及终端设备 | |
| CN116451095A (zh) | 多源异构医疗数据多视图聚类方法、装置、介质及设备 | |
| CN112084788A (zh) | 一种影像字幕隐式情感倾向自动标注方法及系统 | |
| CN113469202A (zh) | 数据处理的方法、电子设备和计算机可读存储介质 | |
| CN118115507A (zh) | 基于跨域类别感知图卷积对齐的图像分割方法 | |
| CN118507087A (zh) | 基于大模型的医疗行业信息传递方法、装置、设备及介质 | |
| WO2021072892A1 (zh) | 基于神经网络混合模型的法律条文检索方法及相关设备 | |
| CN117331893A (zh) | 搜索方法、装置、电子设备和存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22950923 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18724836 Country of ref document: US |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWG | Wipo information: grant in national office |
Ref document number: 18724836 Country of ref document: US |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.06.2025) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22950923 Country of ref document: EP Kind code of ref document: A1 |


