Multi-modal cognitive information and knowledge base dynamic integration method and system
Through the dynamic integration method of multi-modal cognitive information and knowledge base, the dynamic integration of multi-modal cognitive information extraction network DIMC and the large language model are used to solve the problems of fuzzy entity representation and insufficient image understanding, and realize the dynamic and dynamic nature of entity links. Accuracy, improving cognition and understanding of the knowledge base.
Patent Information
- Application Number
- CN202410515063.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-09-10
AI Technical Summary
Existing cognitive entity linking methods fail to effectively solve the deficiencies of fuzzy entity representation and image understanding, leading to problems of entity linking failure and inaccurate information. Moreover, existing entity representation lacks dynamics and cannot adapt to changes in time and events.
It adopts the method of dynamic integration of multi-modal cognitive information and knowledge base, integrates text and image features through the pre-trained dynamic integrated multi-modal cognitive information extraction network DIMC, uses large language models to dynamically extract entity representations, and uses expert models to extract entity representations from Extract information from images to achieve dynamic linking of entities.
It improves the accuracy and dynamics of entity links, overcomes the limitations of fuzzy entity representation and image understanding, enhances the ability to understand human cognition and knowledge bases, and promotes the development of natural language processing and artificial intelligence.
Smart Images

Figure CN118627489A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dynamic integration of knowledge bases, and in particular to a method and system for dynamic integration of multimodal cognitive information and a knowledge base. Background Art
[0002] Cognitive Entity Linking (CEL) involves linking entity mentions in natural language text to corresponding entities in a knowledge base. These entities can be individuals, places, organizations in the real world, or specific entities within a knowledge base. Human cognition can be expressed through information carriers of various modalities, such as text or images. Establishing a connection between natural language and structured knowledge helps to unify human cognition and knowledge base, allowing computers to better understand human society. Specifically, cognitive entity linking helps to gain a deeper understanding of the semantics of text. By linking entities in cognition with entities in the knowledge base, the system can obtain additional information about these entities and improve the understanding of the meaning of the text. In addition to promoting the unification of human cognition, cognitive entity linking also helps to enrich the information in the knowledge base. Through entity linking, new relations and attributes can be added to the knowledge base, thereby enhancing its completeness and accuracy. In recent years, the cognitive entity linking task has attracted increasing attention among researchers.
[0003] However, existing methods face two major challenges: (a) Researchers have not fully considered that fuzzy entity representations in datasets may not effectively represent entities in knowledge bases. Typically, text descriptions are used as representations of entities in knowledge bases, and if the computed features are considered similar to entity representations, the entity linking task is considered complete. However, in this process, due to the inconsistency between the fuzzy entity representations and the semantics of knowledge base entities, the linking process may fail even if the features are learned well. Existing methods are too focused on enhancing feature learning and ignore the ambiguity in entity representations. (b) Existing work still has limited understanding of images. As a key complementary source of text, image information deserves more attention. Methods such as GHMFC and MMEL enhance the linking ability between image information and entity representation by encoding images. However, image information has limited impact on identifying entity identities. For the same image, the features extracted by the image encoder and the large model are different, but due to insufficient comprehensive understanding of the image, it is difficult to identify identity information.
[0004] Cognitive entity linking has greatly influenced and promoted human's deep understanding and cognition of information. As an important means to unify human cognition and structured knowledge repository, cognitive entity linking: 1. Guarantee of semantic consistency: Cognitive entity linking ensures semantic consistency by aligning the entities mentioned in cognition with the knowledge base. It helps to eliminate ambiguity and ensure that the interpretation of specific entities remains clear when the context changes. 2. Enhancement of cognitive information: Cognitive entity linking provides individuals with a richer and deeper cognitive experience. By associating entities with background knowledge, individuals can fully understand the meaning of entities, thereby enhancing their cognitive awareness of information. 3. Integrated knowledge acquisition: This helps to break down information silos, enabling people to easily obtain information across different fields, texts, and knowledge sources, and promote the overall improvement of cognitive level. Ability to obtain information across different fields, texts, and knowledge sources, promotes the overall improvement of cognitive level.
[0005] Existing entity linking datasets and their entity representation methods include: 1. Wikimel and Richpedia use concise attributes from Wikidata. This representation lacks representativeness of entities because many entities share similar attributes. It is easy to mistakenly link accurate cognition to the wrong entity. 2. Weibo uses individuals from Weibo and uses user-written personal profiles as entity representations. These personal profiles rely on user-generated content, may contain bias or errors, and do not accurately reflect the general public's understanding of entities. 3. Wikidiverse uses images collected from Wikipedia as entity representations. However, due to factors such as angle and time, images may deviate from a person's true appearance and lack real-time accuracy. 4. Wikiperson is similar to Wikimel, using the attributes of individuals as representations, but in a more simplified way, but the attributes are not sufficient to represent individuals. In general, there is a problem with existing cognitive entity linking methods, that is, entity representations fail to effectively represent entities. More importantly, these representations are manually collected from Wikipedia or other knowledge bases and can only represent the state of entities at a specific point in time. As time and events pass, people's understanding of entities is also changing. In this case, rigid and inflexible entity representations may lead to errors. Furthermore, when an entity mention is not in the dataset, there is no corresponding entity representation, which may lead to potential problems in entity linking. Summary of the invention
[0006] Technical problem to be solved by the present invention: In view of the above-mentioned problems in the prior art, a method and system for dynamically integrating multimodal cognitive information and knowledge base are provided. The present invention aims to realize the dynamic collection of multimodal cognitive entity information, and dynamically integrate and link the entities in the knowledge base with the information in the real world.
[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is: A method for dynamically integrating multimodal cognitive information and a knowledge base comprises the following steps: S101, acquiring multimodal cognitive information, including mention representation, sentence representation, and image; S102, using the pre-trained dynamic integrated multimodal cognitive information extraction network DIMC to extract fusion features g, including: concatenating the mention representation and sentence representation and inputting them into the text encoder, and then extracting the text features through multi-head attention ; Input the image into the image encoder, and then extract the image features through multi-head attention At the same time, the image is input into the expert model used to extract information from the image, and then the information is extracted and input into the text encoder to obtain the expert features. ; Then the text features , Image features And expert characteristics Fusion gets fusion features ; S103, calculate fusion features respectively The similarity between the text features of each entity in the knowledge base, where the text features of each entity in the knowledge base are obtained by encoding the output text obtained by inputting a large language model into each entity in the knowledge base through a text encoder, and outputting a specified number of entities with the highest similarity as prediction results.
[0008] Optionally, when the mention representation and the sentence representation are concatenated and input into the text encoder in step S102, the mention representation and the sentence representation are concatenated by adding a start tag "[CLS]" to the start position of the mention representation and an end tag "[SEP]" to the end position and then concatenating them with the sentence representation.
[0009] Optionally, in step S102, text features are obtained through multi-head attention extraction The function expression is: , In the above formula, softmax is the softmax activation function, , and is a randomly initialized projection matrix, represents the expert characteristics, is the feature output by the text encoder, Features and characteristics output by the text encoder The hidden size of .
[0010] Optionally, in step S102, image features are obtained by multi-head attention extraction The function expression is: , In the above formula, softmax is the softmax activation function, , and is a randomly initialized projection matrix, represents the expert characteristics, is the feature output by the image encoder, Features and characteristics output by the text encoder The hidden size of .
[0011] Optionally, in step S102, the image is input into an expert model for extracting information from the image, and then the information is extracted and input into a text encoder to obtain an expert feature. Includes: Extracting image descriptions , using prompt words to ask who or what the entity is to query the preset large language model for detailed information about the image , the description of the image and details Combined with the start tag "[CLS]" and the end tag "[SEP]" to form expert information , expert information Input text encoder to get expert features .
[0012] Optionally, in step S102, the text feature , Image features And expert characteristics Fusion gets fusion features The function expression is: , In the above formula, represents the fusion feature, Represents image features, represents the expert characteristics, Represents text features.
[0013] Optionally, the function expression of the loss function used in the training of the dynamic integrated multi-modal cognitive information extraction network DIMC in step S102 is: , In the above formula, represents the loss function, is the number of training samples, for and The similarity of for and The similarity of For the The fusion features of samples , For the The positive sample representation of the text feature of the corresponding entity in the knowledge base, For the The negative sample representation of the text features of the corresponding entity in the knowledge base, is the number of negative samples, is a natural constant.
[0014] In addition, the present invention also provides a system for dynamically integrating multimodal cognitive information and a knowledge base, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute the method for dynamically integrating multimodal cognitive information and a knowledge base.
[0015] In addition, the present invention also provides a computer-readable storage medium, in which a computer program / instruction is stored. The computer program / instruction is programmed or configured to execute the method for dynamically integrating multimodal cognitive information with a knowledge base through a processor.
[0016] In addition, the present invention also provides a computer program product, including a computer program / instruction, which is programmed or configured to execute the method for dynamically integrating multimodal cognitive information and a knowledge base through a processor.
[0017] Compared with the prior art, the present invention mainly has the following advantages: 1. In order to solve the problem of insufficient information utilization of existing models, the present invention includes using a pre-trained dynamic integrated multimodal cognitive information extraction network DIMC to extract fusion features g, including: splicing the mention representation and the sentence representation and inputting them into the text encoder, and then extracting the text features through multi-head attention ; Input the image into the image encoder, and then extract the image features through multi-head attention At the same time, the image is input into the expert model used to extract information from the image, and then the information is extracted and input into the text encoder to obtain the expert features. ; Then the text features , Image features And expert characteristics Fusion gets fusion features Through the above method, a dynamic integrated multimodal cognitive information (DIMC) method is implemented, which uses the image understanding ability of a large language model to design prompts to extract information from images, such as obtaining image titles or querying the identity of individuals in the image. This improves the ability to extract information from images, overcomes existing limitations, and contributes to a deeper understanding of human cognition and knowledge base, promoting the development of natural language processing and artificial intelligence.
[0018] 2. The present invention includes using a pre-trained dynamic integrated multimodal cognitive information extraction network DIMC to extract fusion features g from multimodal cognitive information. This method has powerful capabilities and can better complete dynamic linking tasks, linking and unifying unstructured and colloquial information in the real world with structured and organized entities in the knowledge base.
[0019] 3. To address the problem of fuzzy entity representation, which hinders the unification of human cognition and knowledge base, the text features of each entity in the knowledge base in the present invention are obtained by encoding the output text obtained by inputting a large language model into each entity in the knowledge base through a text encoder. The large language model's rapid learning ability on the knowledge base is utilized to dynamically extract the entity representation, thereby solving the problem of fuzzy entity representation. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 Schematic diagram of the basic flow of the method of the embodiment of the present invention.
[0021] Figure 2 Schematic diagram of the structure of the dynamic integrated multi-modal cognitive information extraction network DIMC in an embodiment of the present invention.
[0022] Figure 3 Schematic diagram of the training principle of the dynamic integrated multi-modal cognitive information extraction network DIMC in an embodiment of the present invention. DETAILED DESCRIPTION
[0023] like Figure 1 As shown, this embodiment provides a method for dynamically integrating multimodal cognitive information and a knowledge base, comprising the following steps: S101, acquiring multimodal cognitive information, including mention representation, sentence representation, and image; S102, using the pre-trained dynamic integrated multimodal cognitive information extraction network DIMC to extract fusion features g, including: concatenating the mention representation and sentence representation and inputting them into the text encoder, and then extracting the text features through multi-head attention ; Input the image into the image encoder, and then extract the image features through multi-head attention At the same time, the image is input into the expert model used to extract information from the image, and then the information is extracted and input into the text encoder to obtain the expert features. ; Then the text features , Image features And expert characteristics Fusion gets fusion features ,like Figure 2 As shown; S103, calculate fusion features respectively The similarity between the text features of each entity in the knowledge base, where the text features of each entity in the knowledge base are obtained by encoding the output text obtained by inputting a large language model into each entity in the knowledge base through a text encoder, and outputting a specified number of entities with the highest similarity as prediction results.
[0024] In this embodiment, the mention representation, sentence representation, and image obtained in step S101 are respectively recorded as sentence representation , mentioned that and images When the mention representation and the sentence representation are concatenated and input into the text encoder in step S102, the mention representation and the sentence representation are concatenated by adding a start tag "[CLS]" to the start position of the mention representation and an end tag "[SEP]" to the end position and then concatenating them with the sentence representation, which can be expressed as: .
[0025] When the mention representation and sentence representation are concatenated and input into the text encoder, the text feature t is obtained, wherein the text encoder can adopt various known text encoders as needed. For example, as an optional implementation, the text encoder in the neural network CLIP that connects text and image is specifically adopted in this embodiment. In this embodiment, the feature obtained when the image is input into the image encoder is , wherein the image encoder can adopt various known image encoders as needed. For example, as an optional implementation, the image encoder in the neural network CLIP connecting text and image is specifically adopted in this embodiment. The neural network CLIP of text and image is a well-known network structure, so its specific details are not described in detail here.
[0026] In order to combine the features extracted from images and texts with the supplementary information provided by experts, connect them to form the final feature representation, and manage the expression of features, this embodiment uses multi-head attention for selection. Respectively with text features and image features Specifically, in step S102 of this embodiment, the text features are obtained by multi-head attention extraction. The function expression is: , In the above formula, , and is a randomly initialized projection matrix, represents the expert characteristics, is the feature output by the text encoder, Features and characteristics output by the text encoder The hidden size of the image is obtained by multi-head attention extraction in step S102. The function expression is: , In the above formula, softmax is the softmax activation function, , and is a randomly initialized projection matrix, represents the expert characteristics, is the feature output by the image encoder, Features and characteristics output by the text encoder In this embodiment, . is the number of heads in the attention layer, where Expert Features The characteristic dimension of and Output features of the image encoder feature dimension.
[0027] In step S102 of this embodiment, the image is input into the expert model for extracting information from the image. The information extracted can be extracted using the required large language model as needed. For example, as an optional implementation, Blip2 is used as the expert model for extracting information from the image in this embodiment. In step S102 of this embodiment, the image is input into the expert model for extracting information from the image. The extracted information is then input into the text encoder to obtain the expert feature Includes: Extracting image descriptions , using prompt words to ask who or what the entity is to query the preset large language model for detailed information about the image , the description of the image and details Combined with the start tag "[CLS]" and the end tag "[SEP]" to form expert information , expert information Input text encoder to get expert features The text encoder here can also use various known text encoders as needed. In this embodiment, step S102 converts the text feature , Image features And expert characteristics Fusion gets fusion features The function expression is: , In the above formula, represents the fusion feature, Represents image features, represents the expert characteristics, Represents text features.
[0028] For the convenience of experiments and to improve the quality of the dataset, the responses of ChatGPT are collected in this embodiment to enhance the dataset. Specifically, in this embodiment, entity representations are constructed for 17391, 17804, and 57007 entities from Wikimel, Richpedia, and Wikidiverse. The newly constructed entity representations better reflect the public's understanding of entities, are closely related to their inherent semantics, and promote a unified approach to cognition and knowledge base. Taking Wikimel as an example, of the 17391 entities collected from the dataset, 2142 entities require additional information for verification. For example, "Edward J. Livernash may be a private individual without any significant achievements." Of these 2142 entities, ChatGPT provides speculative information for 1371 entities based on cultural, regional, or other contextual clues. For example, "John Abbott is a common English first and last name." In addition, there are 239 entities that are guessed to be fictitious names, for example, "John McDuffie is a fictitious name and therefore has no information." Therefore, for the sake of completeness, this embodiment introduces missing entity representations from Wikipedia~\footnote{https: / / en.wikipedia.org / wiki / }. For example, "Edward James Livernash is an American journalist and lawyer who served as a member of the U.S. House of Representatives for one term..." The specific statistical data of the data set collected by the dynamic collection method proposed in this embodiment is shown in Table 1.
[0029] Table 1: Statistical data of the data set collected by the dynamic collection method proposed in this embodiment.
[0030]
[0031] In step S102 of this embodiment, the dynamic integrated multi-modal cognitive information extraction network DIMC is trained, and the expert information Respectively with text features and image features The dimensions are: , , , the dimension of the text feature of the corresponding entity in the knowledge base is The text features of each entity in the knowledge base are obtained by encoding the output text obtained by inputting the large language model into each entity in the knowledge base through the text encoder. By combining the text features obtained by encoding the output text obtained by the large language model through the text encoder, the training of the dynamic integrated multimodal cognitive information extraction network DIMC can be completed, so that the dynamic integrated multimodal cognitive information extraction network DIMC establishes a mapping relationship between multimodal cognitive information and fusion feature g, and then the multimodal cognitive information can be used to extract the fusion feature g using the trained dynamic integrated multimodal cognitive information extraction network DIMC. The function expression of the loss function used in the training of the dynamic integrated multimodal cognitive information extraction network DIMC in step S102 of this embodiment is: , In the above formula, represents the loss function, is the number of training samples, for and The similarity of for and The similarity of For the The fusion features of samples , For the The positive sample representation of the text feature of the corresponding entity in the knowledge base, For the The negative sample representation of the text features of the corresponding entity in the knowledge base, is the number of negative samples, is a natural constant. Figure 3 As shown, in this embodiment, the above loss function ( NpairLoss ) as the optimization training target to enhance the learning process. The above loss function ( NpairLoss ) is applicable to networks with multiple outputs, each of which corresponds to a specific task. Its purpose is to optimize the network by maximizing the similarity of sample pairs in the same category, thereby improving the effect of multi-task learning. Specifically, for each sample, the above loss function ( NpairLoss ) defines the loss by comparing positive pairs belonging to the same class (high similarity) and negative pairs belonging to different classes (low similarity). It encourages the network to make pairs of samples within the same class more similar, while ensuring that pairs of samples from different classes are more dissimilar. Moreover, through the above loss function ( NpairLoss), the similarity score of the positive sample pair can be maximized, while the similarity score of the negative sample pair can be minimized, which helps to effectively balance the trade-offs between different tasks in multi-task learning, thereby improving the generalization performance of the network. Figure 3 middle, N e is the number of candidate entities, and the candidate entities come from the statistics of the data set collected by the dynamic collection method shown in Table 1.
[0032] The large language model in step S103 can be selected according to actual needs. For example, as an optional implementation, Figure 3 As shown, the large language model in this embodiment adopts ChatGPT. ChatGPT is a powerful large-scale model that has been trained with a large amount of network data and is continuously updated over time. The interface provided by ChatGPT can be used to query entities to obtain output text. When the candidate entity is input into ChatGPT for query, the prompt words "You are a helpful assistant designed to fully introduce the character" and who / what the entity is can be used to obtain the output text of ChatGPT response. Figure 3 On the right are examples of output text obtained by ChatGPT for two example entities of characters.
[0033] In step S103, the fusion features are calculated respectively When comparing the similarity between the text features of each entity in the knowledge base, the cosine similarity is used. When a specified number of entities with the highest similarity are output as prediction results, the specified number can be set according to actual needs. For example, if the value is 1, one most similar entity is taken out as the prediction result output; if the value is 5, five most similar entities are taken out as the prediction result output.
[0034] In order to evaluate the effectiveness of the method for dynamically integrating multimodal cognitive information with knowledge base in this embodiment, experiments were conducted on the original Wikimel, Richpedia, and Wikidiverse datasets, and experiments were also conducted on the enhanced Wiki+, Rich+, and Diverse+ datasets. The results are shown in Tables 2 and 3.
[0035] Table 2: Experimental performance of the method in this example on three public datasets: Richpedia, Wikimel and Wikidiverse
[0036] Table 3: Experimental performance of the method in this embodiment on the Rich+, Wiki+ and Diverse+ datasets
[0037] As shown in Tables 2 and 3, the method for dynamically integrating multimodal cognitive information and knowledge base in this embodiment not only performs well on the original Wikimel, Richpedia, and Wikidiverse datasets, but also achieves state-of-the-art performance on Wiki+, Rich+, and Diverse+.
[0038] In summary, the method for dynamic integration of multimodal cognitive information and knowledge base in this embodiment adopts the neural network CLIP that connects text and image for feature encoding, and uses Blip2 as an expert model to extract useful information from the image as supplementary information for feature extraction by the neural network CLIP that connects text and image. This method aims to enhance the representation and understanding of entities in the experiment in this embodiment. The performance comparison between the original and enhanced data sets aims to highlight the impact of data set enhancement on the effect of the proposed dynamic integrated multimodal cognitive information extraction network DIMC model in this embodiment.
[0039] In addition, this embodiment also provides a system for dynamically integrating multimodal cognitive information and a knowledge base, including a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute the method for dynamically integrating multimodal cognitive information and a knowledge base.
[0040] In addition, this embodiment also provides a computer-readable storage medium, in which a computer program / instruction is stored. The computer program / instruction is programmed or configured to execute the method for dynamically integrating multimodal cognitive information with a knowledge base through a processor.
[0041] In addition, this embodiment also provides a computer program product, including a computer program / instruction, which is programmed or configured to execute the method for dynamically integrating multimodal cognitive information and a knowledge base through a processor.
[0042] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0043] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A method for dynamically integrating multimodal cognitive information and knowledge base, characterized in that: The steps include: S101, acquiring multimodal cognitive information, including mention representation, sentence representation, and image; S102, using the pre-trained dynamic integrated multimodal cognitive information extraction network DIMC to extract fusion features g, including: concatenating the mention representation and sentence representation and inputting them into the text encoder, and then extracting the text features through multi-head attention ; The image is input into the image encoder, and then the image features are extracted through multi-head attention. At the same time, the image is input into the expert model used to extract information from the image, and then the information is extracted and input into the text encoder to obtain the expert features. ; Then the text features , Image features And expert characteristics Fusion gets fusion features ; S103, calculate fusion features respectively The similarity between the text features of each entity in the knowledge base, where the text features of each entity in the knowledge base are obtained by encoding the output text obtained by inputting a large language model into each entity in the knowledge base through a text encoder, and outputting a specified number of entities with the highest similarity as prediction results.
2. The method for dynamically integrating multimodal cognitive information and knowledge base according to claim 1, characterized in that: When the mention representation and the sentence representation are concatenated and input into the text encoder in step S102, the mention representation and the sentence representation are concatenated by adding a start tag "[CLS]" to the start position of the mention representation and an end tag "[SEP]" to the end position and then concatenating them with the sentence representation.
3. The method for dynamic integration of multimodal cognitive information and knowledge base according to claim 1, characterized in that: In step S102, text features are obtained through multi-head attention extraction The function expression is: , In the above formula, softmax is the softmax activation function, , and is a randomly initialized projection matrix, represents the expert characteristics, is the feature output by the text encoder, Features and characteristics output by the text encoder The hidden size of .
4. The method for dynamic integration of multimodal cognitive information and knowledge base according to claim 3, characterized in that: In step S102, image features are obtained through multi-head attention extraction The function expression is: , In the above formula, softmax is the softmax activation function, , and is a randomly initialized projection matrix, represents the expert characteristics, is the feature output by the image encoder, Features and characteristics output by the text encoder The hidden size of .
5. The method for dynamically integrating multimodal cognitive information and knowledge base according to claim 1, characterized in that: In step S102, the image is input into an expert model for extracting information from the image, and then the information is extracted and input into a text encoder to obtain expert features. Includes: Extracting image descriptions , using prompt words to ask who or what the entity is to query the preset large language model for detailed information about the image , the description of the image and details Combined with the start tag "[CLS]" and the end tag "[SEP]" to form expert information , expert information Input text encoder to get expert features .
6. The method for dynamically integrating multimodal cognitive information and knowledge base according to claim 1, characterized in that: In step S102, the text features , Image features And expert characteristics Fusion gets fusion features The function expression is: , In the above formula, represents the fusion feature, Represents image features, represents the expert characteristics, Represents text features.
7. The method for dynamic integration of multimodal cognitive information and knowledge base according to claim 1, characterized in that: The function expression of the loss function used in the training of the dynamic integrated multi-modal cognitive information extraction network DIMC in step S102 is: , In the above formula, represents the loss function, is the number of training samples, for and The similarity of for and The similarity of For the The fusion features of samples , For the The positive sample representation of the text features of the corresponding entity in the knowledge base, For the The negative sample representation of the text features of the corresponding entity in the knowledge base, is the number of negative samples, is a natural constant.
8. A system for dynamically integrating multimodal cognitive information and knowledge base, comprising a microprocessor and a memory connected to each other, characterized in that: The microprocessor is programmed or configured to execute the method for dynamically integrating multimodal cognitive information and a knowledge base as described in any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program / instruction stored therein, characterized in that: The computer program / instruction is programmed or configured to execute the method for dynamically integrating multimodal cognitive information and knowledge base as described in any one of claims 1 to 7 through a processor.
10. A computer program product comprising a computer program / instructions, characterized in that The computer program / instruction is programmed or configured to execute the method for dynamically integrating multimodal cognitive information and knowledge base as described in any one of claims 1 to 7 through a processor.
Citation Information
Cited By
Question and answer data processing method and system based on multi-modal large model
CN119312284A
A multi-modal large model-based question and answer data processing method and system
CN119312284B
Crop leaf disease diagnosis method and system driven by large language model
CN119785223A
