Multi-modal data distributed retrieval method and system based on mapping knowledge domain and vector matching
By introducing distributed technology and multi-level dynamic clustering into the multi-modal data retrieval system, combined with knowledge graph and vector matching, the problem of low accuracy and low efficiency of multi-modal data retrieval in the existing technology is solved, and cross- Efficient, accurate, and interpretable multimodal data retrieval for domain retrieval.
Patent Information
- Application Number
- CN202410606946.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-16
AI Technical Summary
Existing multimodal data retrieval systems have high cross-domain retrieval accuracy but poor interpretability. The cost of establishing multimodal knowledge graphs is high and entity alignment is difficult. They fail to effectively integrate different retrieval methods, resulting in low retrieval efficiency and low accuracy.
Adopt a distributed retrieval method based on knowledge graph and vector matching, store multi-modal data through distributed databases, establish a unified multi-modal mapping model, embed data in the same vector space, and use multi-level dynamic clustering to form a tree-shaped retrieval structure , and combines multi-modal knowledge graphs for retrieval, and introduces distributed technology to achieve parallel retrieval.
It improves the accuracy and efficiency of multi-modal data retrieval, enhances the integrity and accuracy of the knowledge graph, achieves efficient integration of different retrieval methods, and improves the usability and user experience of the system.
Smart Images

Figure CN118551086A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of big data technology, and relates to information retrieval technology in massive multimodal data, and in particular to a multimodal data distributed retrieval method and system based on knowledge graph and vector matching. Background Art
[0002] In the context of the big data era, the explosive growth of information has made data processing and retrieval a very challenging task. In the past, data retrieval systems, whether traditional retrieval methods based on inverted indexes, more generalized vector similarity matching methods, or retrieval methods based on knowledge graphs, were mostly only used in single-modal data retrieval scenarios. This has led to the inability to fully explore the information richness of data in multimodal data scenarios, and it is difficult to achieve effective associations between multimodal data, failing to fully utilize multimodal data in terms of comprehensiveness and accuracy.
[0003] Therefore, some scholars have begun to focus on building a retrieval system for multimodal data. The current multimodal data retrieval methods can be roughly divided into three types. The first is based on keywords and inverted indexes. The advantage of this method is that it has high accuracy in small data sets or in specific fields, but the disadvantage is that in the field of multimodal retrieval, keywords of different modalities need to be manually extracted, and the generalization ability is very poor. Therefore, this method is less used.
[0004] The second is a multimodal retrieval method based on deep learning and vector matching. One of the ideas, such as patent CN115563316A, is to map the multimodal data to be retrieved into a unified vector subspace through a deep learning method, and then obtain the matching data by calculating the similarity distance of the vectors (usually Euclidean distance or cosine similarity). Of course, the matching process can also be completed with the help of a deep learning model, such as patent CN110019652A, which uses a trained matching model to retrieve similar vectors. This retrieval method has strong generalization ability and high cross-domain retrieval accuracy. However, its accuracy is overly dependent on the mapping model effect and has poor interpretability.
[0005] The third is retrieval based on multimodal knowledge graphs, such as patent CN114741466A, which stores multimodal data in triple format and builds a multimodal knowledge graph, and then converts multimodal retrieval into a graph search problem on the knowledge graph. This method has high accuracy and good interpretability, but it is costly to build a complete and accurate multimodal knowledge graph.
[0006] Later, some scholars built some multimodal retrieval systems with multiple methods, such as patent CN117573882A, which can support multiple retrieval methods such as knowledge graph retrieval, text vector retrieval and image retrieval. However, they are limited to a single field, and each retrieval method runs independently without being efficiently integrated.
[0007] In summary, the defects and shortcomings of existing multimodal retrieval patent technology are mainly reflected in the following aspects:
[0008] The effect of multimodal unified mapping model is unstable: At present, most multimodal unified mapping models can only process two types of modal data, namely, images and texts, and lack support for modal data such as time series and videos. In addition, the vectors embedded in multimodal data often cannot effectively eliminate ambiguity, and the mapping effect is not stable.
[0009] Multimodal knowledge graphs are incomplete and inaccurate: Multimodal knowledge graphs need to integrate data from different modalities, so entities from different modalities need to be matched. Current entity alignment in multimodal knowledge graphs is quite challenging.
[0010] Failure to efficiently integrate multiple search methods: No unified model was established to weigh and integrate the relevance of the results of different search methods. The search process was not executed in parallel, and multiple search methods could not be efficiently integrated.
[0011] Long retrieval time and low efficiency: Currently, most multimodal retrieval systems do not take advantage of distributed computing, resulting in long retrieval time and low efficiency. Summary of the invention
[0012] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide a multimodal data distributed retrieval method and system based on knowledge graph and vector matching, which can organize and store multimodal data, and embed and cluster it. At the same time, a multimodal knowledge graph is established to achieve effective association of cross-modal data, and vector similarity matching is combined to realize multimodal retrieval function. A distributed mechanism is introduced to realize parallel retrieval, ensuring the high availability and efficiency of the system.
[0013] In order to achieve the above objectives, the present invention stores and organizes multimodal data through a distributed database, and establishes a unified multimodal mapping model to embed multimodal data into vectors and align them into the same vector subspace, and then establishes an index through multi-level dynamic clustering. At the same time, a multimodal knowledge graph is established to support multimodal retrieval based on the knowledge graph, and the two methods are combined to realize the retrieval function of multimodal data. The introduction of distributed technology ensures the accuracy and speed of the retrieval process. At the same time, the system provides a visual display, so that users can intuitively understand the multimodal data retrieval results, and perform comparative screening and other operations.
[0014] Specifically, the first aspect of the present invention provides a multimodal data distributed retrieval method based on knowledge graph and vector matching, comprising the following steps:
[0015] Step 1, cleaning and storing the multimodal data from several multimodal database nodes;
[0016] Step 2: embed the stored multimodal data into vectors using a unified multimodal data mapping model, and form a tree-like retrieval structure for the vectors through multi-level dynamic clustering. A bidirectional linked list is established for the data in each cluster, and the specific data in the cluster is queried through a pointer to the cluster center vector of the cluster to which it belongs;
[0017] Step 3, storing the stored multimodal data in triple format and establishing a multimodal knowledge graph;
[0018] Step 4: Perform multimodal data retrieval based on the retrieval conditions entered by the user. The method is as follows: embed the retrieval conditions into a conditional vector so that it is in the same space as the cluster center vector, and then perform vector retrieval and multimodal knowledge graph retrieval in parallel. The data retrieved by the two methods are scored, integrated and sorted, and a list of the top n data with the highest scores is returned and displayed.
[0019] The second aspect of the present invention provides a multimodal data distributed retrieval system based on knowledge graph and vector matching, which can implement the multimodal data distributed retrieval method based on knowledge graph and vector matching described in the first aspect, and the system includes:
[0020] The data storage and organization module cleans the multimodal data and stores it according to the corresponding data structure or database, while introducing a distributed mechanism to improve storage capacity and system retrieval efficiency;
[0021] The multimodal data representation and fusion module embeds the multimodal data into vectors through a unified multimodal data mapping model, and maps the initial vectors to the same vector space through feature fusion and alignment;
[0022] The multi-level dynamic clustering and indexing module forms a tree-like retrieval structure by multi-level dynamic clustering of the embedded vectors. At the same time, a bidirectional linked list is established for the data in each cluster, and the specific data in the cluster is queried through the pointer pointing to the cluster center vector to which it belongs;
[0023] The multimodal knowledge graph is built by storing multimodal data in triple format to support subsequent retrieval on the multimodal knowledge graph.
[0024] The multimodal retrieval module embeds the search conditions entered by the user into a conditional vector so that it is in the same space as the cluster center vector, and then performs vector retrieval and multimodal knowledge graph retrieval in parallel. The data retrieved by the two methods are then scored, integrated and sorted, and a list of the top n data with the highest scores is returned.
[0025] Therefore, compared with the prior art, the advantages of the present invention mainly lie in:
[0026] 1. Introducing distributed technology to store and organize multimodal data, and combining multi-level dynamic clustering to establish flexible and efficient indexes, it not only improves data storage capacity and retrieval efficiency, but also adapts to the dynamic distribution of multimodal data, ensuring the accuracy and speed of the retrieval process.
[0027] 2. Use deep learning methods to establish a unified mapping model for multimodal data, so that multimodal data can be embedded in the same vector space. Add time-series modal data such as video and audio to the images and texts, and establish associations between different modal data, thereby realizing multimodal data retrieval.
[0028] 3. Existing multimodal knowledge graphs are mostly established based on traditional entity and relationship extraction methods. The present invention introduces a big model to help establish a multimodal knowledge graph, and uses the big model's ability to understand semantics and image data to eliminate ambiguity between entities of different modalities, significantly improving the integrity and accuracy of the multimodal knowledge graph.
[0029] 4. Existing multimodal retrieval methods do not combine vector matching and multimodal knowledge graph retrieval. The present invention efficiently integrates vector matching and multimodal knowledge graph retrieval methods to improve retrieval accuracy and generalization ability. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a system framework diagram of the present invention.
[0031] Figure 2 This is the structural diagram of the multimodal data representation and fusion module.
[0032] Figure 3 This is the structure diagram of the Bert encoding module.
[0033] Figure 4 This is the structure diagram of the Linear encoding module.
[0034] Figure 5 This is the structure diagram of the ResNet-LSTM encoding module.
[0035] Figure 6 The index structure diagram formed for the second-level dynamic clustering.
[0036] Figure 7The word cloud diagram generated for the clusters after clustering.
[0037] Figure 8 This is the flow chart of the multimodal retrieval module.
[0038] Fig. 9 The corresponding multimodal data retrieval results are displayed. DETAILED DESCRIPTION
[0039] The embodiments of the present invention are described in detail below with reference to the accompanying drawings and examples.
[0040] The system structure of the present invention is as follows Figure 1 As shown, the data storage and organization module stores and organizes a large amount of text, curve tables, pictures and other different modal data by managing a distributed multimodal database. The multimodal data representation and fusion module embeds the multimodal data into a vector form through a multimodal unified mapping model. At the same time, a multimodal knowledge graph is established to structurally associate the multimodal data. The multi-level dynamic clustering and indexing module processes the embedded vectors and establishes a multimodal data retrieval index through multi-level dynamic clustering and the establishment of an inverted index. The data retrieval module automatically embeds the retrieval conditions into vectors and provides entity and relationship extraction to extract key information from the conditions. After that, vector similarity matching retrieval and multimodal knowledge graph retrieval are performed respectively, and the retrieval results are integrated to return a suitable list of the top n data. The visualization display module displays the retrieved multimodal data results in different ways such as graphics and intuition.
[0041] The implementation steps of the present invention are as follows:
[0042] 1. Data Storage and Organization
[0043] This step mainly involves cleaning and storing the multimodal data from several multimodal database nodes. The specific process and further optimization measures can be described as follows:
[0044] (1) To clean the data, it is necessary to unify it according to certain rules. For example, the date format and the numerical format can be standardized by converting the format; the empty values, duplicate values, and abnormal values in the data must be cleaned to ensure the integrity and accuracy of the data.
[0045] (2) After data cleaning, the sharding key is determined for different modal data according to their corresponding specific requirements, and the multimodal data is routed to the corresponding storage shard through the sharding algorithm in the data sharding engine.
[0046] (3) According to the different modes and structures of the data, determine the corresponding database and data storage method, and store the data in a distributed database.
[0047] This step can be done by Figure 1 The data storage and organization module in the system structure shown is implemented, in which the multimodal data is cleaned and stored according to a suitable data structure or database. Furthermore, a distributed mechanism can be introduced to improve storage capacity and system retrieval efficiency.
[0048] 2. Multimodal Data Representation and Fusion
[0049] This step mainly embeds the stored multimodal data into vectors using the unified multimodal data mapping model, and further maps the initial vectors to the same vector space through feature fusion and alignment. The specific process and further optimization measures can be described as follows:
[0050] (1) Different deep learning methods are used to embed different modal data in the combination, that is, embed them into feature vectors.
[0051] For time series data, the feature representation is E1=LSTM(M_waveform) through the LSTM encoding module. In this process, the input of the LSTM module is time series data. The method is as follows: First, normalize the time series data and scale the data to the range of 0-1 so that the LSTM model is easier to learn; then, form the data into an array of shape (n_samples, look_back, n_features), where n_samples is the number of samples, the look_back parameter indicates how many continuous time points need to be used as input, set look_back=10, and n_features is the number of features at each time point. Finally, the generated array data is processed by an LSTM layer and a fully connected layer (linear layer) to output the feature vector E1. Further, in an embodiment of the present invention, the input size of the LSTM layer is the same as the number of features of the data, and the size of the hidden layer is 512. The fully connected layer converts the output of the LSTM layer into a feature vector of size (1, 1000), that is, E1.
[0052] For image data, the feature representation is E2=ResNet-LSTM (M_image) through the ResNet-LSTM encoding module. The ResNet-LSTM encoding module is as follows Figure 5As shown, the method is as follows: first, the image is adjusted to an RGB image after preprocessing; then, the pre-trained ResNet50 model is loaded, and the last fully connected layer and the average pooling layer are removed to extract features from the image; again, the output of the ResNet50 model is flattened into a vector and input into a fully connected layer, which converts it into a vector of the required size; the transformed vector is further input into an LSTM layer, which processes it as a time step of a sequence and outputs a final LSTM state; finally, the LSTM state is input into a fully connected layer to output a feature vector E2. Further, in an embodiment of the present invention, the RGB image size adjusted to the picture data is 3*224*224, the output flattened vector size of the ResNet50 model is (1, 1, 100352), and is input into a fully connected layer to convert it into a vector of the required size (1, 1, 512), and finally a feature vector of size (1, 512) is output, i.e., E2.
[0053] For text data, the feature representation is E3=Bert(M_text) through the Bert encoding module. The structure of the Bert encoding module is as follows: Figure 3 As shown, the method is as follows: first, the input text is converted into a digital form, for example, the WordPiece word segmenter can be used to segment the input text, and each word is mapped to a corresponding number in the vocabulary (vocab_size=21128) of the BERT model; then, the word segmentation of the text is positionally encoded. For example, an encoding formula for position encoding of the word segmentation of the text is as follows:
[0054]
[0055]
[0056] Where t represents the position of the word in the sentence, i represents the subscript of each value in the position encoding, k = 0, 1, 2, 3, ..., d represents the number of hidden units in the BERT model, that is, d = 768; again, the obtained encoding sequence is input into the BERT model for forward propagation, and is converted into a series of vectors through self-attention mechanism, full connection and pooling operations, where each vector represents a tag in the input text. For example, the self-attention mechanism is set to 12 layers; finally, the feature vector E3 is output by averaging these vectors. In an embodiment of the present invention, when d = 768, the size of the output feature vector E3 is (1, 768).
[0057] For relational data, the linear encoding module is used to represent the feature as E4=Linear(index). The linear encoding module is as follows: Figure 4As shown, the method is as follows: First, take the given LET value as input, set the index num_bins to be divided and the bin width bin width , for example, set num_bins = 10, where let max and let min Then, assign LET to a bin, subtract the LET value from the LET range lower limit, and divide by the bin width to get the index of the bin where the value is located, that is: If the calculated index exceeds the range of 0 to the divided index (such as num_bins-1), it needs to be limited to this range; again, through a loop, the center value of each bin is formed into a discrete vector. According to the previous example, the length of the discrete vector formed by the center value of each bin here is 10; finally, feature extraction is performed through the linear transformation operation of the fully connected layer, and the feature vector E4 is output. According to the parameters taken in the previous example, the size of E4 is (1, 30).
[0058] (2) Since the feature representation of each modal data has different dimensions, linear transformation is used to transform the dimensions of the feature vectors finally output by each modal data, so that they can be represented in the same feature vector space as the performance index. For example, the linear transformation method is as follows: suppose the dimension of linear transformation W1 is (1000, 10), the dimension of linear transformation W2 is (512, 10), the dimension of linear transformation W3 is (768, 10), and the dimension of linear transformation W4 is (30, 10). The transformed feature vectors are E'1 = E1*W1, E'2 = E2*W2, E'3 = E3*W3, and E'4 = E4*W4, and their sizes are all (1, 10).
[0059] (3) Use two Transformer layers to perform multiple nonlinear transformations on the linearly transformed feature vector to extract richer features, and then obtain the feature vector G. According to the parameters taken in the above example, the size of G is (1, 768). In this network structure, the first Transformer layer can extract features of different types of feature vectors to obtain more information representation. The second Transformer layer can further enhance the representation ability of the features to improve the accuracy of the embedded vector.
[0060] This step can be done by Figure 1 The multimodal data representation and fusion module in the system structure shown in the figure is implemented. The specific working principle of this module is as follows: Figure 2 As shown, multimodal data is embedded into vectors through a unified mapping model of multimodal data, and the initial vectors are mapped to the same vector space through feature fusion and alignment to support subsequent retrieval operations.
[0061] 3. Multi-level dynamic clustering and indexing
[0062] This step mainly uses multi-level dynamic clustering to make the vector form a tree-shaped retrieval structure, establishes a bidirectional linked list for the data in each cluster, and queries the specific data in the cluster through a pointer to the cluster center vector to which it belongs. The specific process and further optimization measures can be described as follows:
[0063] (1) Perform multi-level dynamic clustering on the vectors embedded by the multimodal embedding module to form a tree index structure.
[0064] The incremental GMM algorithm is used for multi-level dynamic clustering to form a tree-shaped retrieval structure for the vectors. The basic clustering process can be described as follows: first, the Gaussian mixture model is initialized, part of the data is selected as the initial Gaussian component Ci, and the initial mean μi and covariance matrix Σi are assigned to each component. Then, the incremental learning method is used to gradually add new data points to the existing Gaussian mixture model, and the clustering results are dynamically updated according to the model parameters. The expectation maximization algorithm is used to update the mean μi and covariance matrix Σi of each Gaussian component, as well as the weight wi of each component, until clustering is completed.
[0065] When the number of clusters is greater than the maximum cluster capacity n, the above clustering process is repeated to perform incremental dynamic clustering of the cluster to the next level, and finally form a multi-level tree vector index. Figure 6 shown.
[0066] (2) For each cluster in the tree index structure, extract the features and keywords and generate a word cloud representing the features of the cluster. The specific method is as follows:
[0067] First, all the data in each cluster is preprocessed, including removing stop words and useless features, stemming, etc., to extract keywords that can represent the content of the cluster. Then, the frequency of occurrence of keywords in each cluster is counted, and these frequencies are used as the basic data for generating word clouds. Next, for the preprocessed text, the frequency of occurrence of each word is calculated. This step is the core of generating word clouds, because the size of each word in the word cloud will be based on its frequency. Let W be the set of words in the text, w i is a single word, n i It is the word w i The number of occurrences of word w is N, and N is the total number of words in the text. i Frequency of occurrence:
[0068]
[0069] After calculating the word frequency, you need to display these words in different sizes to form a word cloud, and use the following linear table layout: select a starting point, arrange the words horizontally or vertically in order of word frequency, and perform the following size mapping:
[0070] size(w i )=k·freq(w i )
[0071] That is, the word w i The font size (w i ) is directly mapped from its frequency freq(w i ), where k is a scaling factor. Then, the word cloud diagram can be drawn according to the calculated size and layout. Figure 7 shown.
[0072] (3) Create a bidirectional linked list for the leaf nodes of the index tree and the specific data contained in the node.
[0073] A bidirectional linked list is used to ensure that each entity in the same cluster center has a pointer to the cluster center vector of the cluster to which it belongs, and the pointer is indexed in the database to achieve rapid retrieval of cluster data based on the cluster center. After the incrementally learned Gaussian mixture model is formed in (1), the mean of each Gaussian component is used to represent the cluster center, and a bidirectional pointer with the cluster center vector is established. For each Gaussian component, the cluster center it represents, all the data points contained in the cluster, and their location information in the original data set are recorded. When it is necessary to quickly retrieve the data in the cluster based on a given cluster center, all the data points represented by the cluster center can be quickly found based on the bidirectional pointer. This retrieval method can greatly improve the retrieval speed and also facilitate the management and processing of cluster data.
[0074] This step can be done by Figure 1 The multi-level dynamic clustering and indexing module in the system structure shown is implemented. This module forms a tree-like retrieval structure through multi-level dynamic clustering of the embedded vectors, and at the same time establishes a bidirectional linked list for the data in each cluster, and queries the specific data in the cluster through a pointer to the cluster center vector to which it belongs.
[0075] 4. Building a multimodal knowledge graph
[0076] This step mainly stores the stored multimodal data in triple format and establishes a multimodal knowledge graph. The multimodal knowledge graph is constructed using a document association relationship knowledge graph generation method based on LLM (large language model). Use the large language model to create structured knowledge representation from multimodal data without human intervention, continuously expand the knowledge representation to the knowledge graph of related fields, and build knowledge associations in this field. Use named entity recognition, relationship extraction and entity disambiguation technology to convert unstructured text into a structured representation that captures entities, their relationships and associated attributes.
[0077] First, we need to use a data enhancement method to fine-tune the large model for multi-modal data in a specific field to increase the diversity of the data, and then fine-tune the LLM. After that, we use the fine-tuned LLM to perform triple generation tasks on the original data (unlabeled). This alleviates the problem of insufficient labeled data in deep learning, increases the diversity of training data, and thus improves the generalization ability of the model.
[0078] After fine-tuning, use the large model to generate entity and relationship triplets. First, perform multimodal data parsing: the model will parse the input multimodal data, understand the text structure, image structure, and time series structure, and then identify key information. Then perform entity recognition: based on the identification of key information, the model will identify entities in the multimodal data, etc. This step is achieved through large-scale corpus training of the model. Perform relationship recognition at the same time: while identifying entities, the model will try to understand the relationship between entities. This involves understanding language elements such as verbs and prepositions in the text, and how they connect different entities. Finally, perform triple construction: combining entities and the relationships between them, the model can construct entity relationship triplets, and then establish a complete multimodal knowledge graph.
[0079] This step can be done by Figure 1 The multimodal knowledge graph in the system structure shown can support subsequent retrieval on the multimodal knowledge graph by storing multimodal data in triple format and establishing a multimodal knowledge graph.
[0080] 5. Multimodal Retrieval
[0081] Based on the work of the previous steps, this step can perform multimodal data retrieval according to the search conditions entered by the user. The retrieval method and principle are as follows:
[0082] The search conditions entered by the user are embedded into conditional vectors through the multimodal embedding module, so that they are in the same space as the cluster center vectors. Then, vector retrieval and multimodal knowledge graph retrieval are performed in parallel. The data retrieved by the two methods are scored, integrated and sorted, and a list of the top n data with the highest scores is returned.
[0083] The vector retrieval and multimodal knowledge graph retrieval are performed in parallel as follows:
[0084] (1) Perform entity and relationship identification on the search condition text and temporarily store the entity and relationship keywords involved.
[0085] (2) Perform multi-level similarity matching between the conditional vector and the cluster centers in the multi-level dynamic clustering and indexing module. Gradually refine to more specific cluster center vectors and determine the final cluster. At the same time, conditional mapping is performed on the entities and relationships temporarily stored in (1): the entities contained in it are mapped to the corresponding nodes in the graph, and the relationships are mapped to the edges or attributes related to the nodes. After the entities and relationships of the retrieval condition text are mapped, the mapping results are converted into the graph query language Cypher to obtain the specific entities and relationships stored in the multimodal knowledge graph.
[0086] (3) All multimodal data in the cluster are retrieved through the bidirectional pointer from the cluster vector to the cluster center, and similarity matching is performed with the condition vector to obtain result S1. At the same time, specific relationship queries are performed on the multimodal knowledge graph based on the entities and relationships mapped by the conditions to obtain result S2.
[0087] (4) Integrate S1 and S2 and sort them by similarity, returning a list S of the top n data with the highest similarity.
[0088] This step can be done by Figure 1 The multimodal retrieval module in the system structure shown in the figure is implemented. The working process of this module is as follows: Figure 8 As shown in the figure, it is responsible for multimodal data retrieval based on the retrieval conditions input by the user. First, the retrieval conditions input by the user are embedded into condition vectors through the multimodal embedding module, so that they are in the same space as the cluster center vectors. Then, vector retrieval and multimodal knowledge graph retrieval are performed in parallel. After that, the data retrieved by the two methods are scored, integrated and sorted, and a list of the top n data with the highest scores is returned.
[0089] 6. Visualization
[0090] This step is an optional step of the present invention, which mainly presents multimodal data with high similarity to users in an intuitive and easy-to-use manner such as text, list, line chart, bar chart, etc., so as to facilitate users to perform subsequent operations such as subsequent processing and analysis. Figure 1 The visual display module in the system structure shown in the figure shows that users can filter and sort the results according to their needs.
[0091] In one embodiment of the present invention, a retrieval embodiment is provided, and the steps are described in sequence as follows:
[0092] Step 1: Enter the search condition: "devices and chips that meet general radiation resistance performance", embed the condition into the condition vector E, and perform similarity matching with the multi-level cluster center vectors obtained after multi-level clustering in the library to obtain the final cluster. At the same time, extract the entities "device", "chip" and "radiation resistance performance", with the relationship "satisfy", and search through the knowledge graph.
[0093] Step 2: Repeat the similarity matching in the final cluster to obtain the first n multimodal data that meet the conditions. At the same time, integrate with the results retrieved from the knowledge graph and remove duplicate data.
[0094] Step 3, distinguish by mode, and sort from top to bottom by similarity. The text data with the highest similarity is "Anti-radiation analysis and design of CMOS integrated circuits.pdf", and the text with the lowest similarity is "Research status and application analysis of bidirectional DC-DC converters for DC microgrids". The table data with the highest similarity is "The impact of different radiation doses on the output of anti-radiation bandgap reference source.xlsx", and the picture with the lowest similarity is "Measured results after bandgap reference radiation.xlsx". The picture data with the highest similarity is "Anti-radiation level conversion circuit.png", and the lowest is "12V Boost converter circuit.png".
[0095] Step 4: Display them in different modes (text, pictures, tables, etc.), such as Fig. 9 And the correlation between multimodal data is shown in the form of correlation graph, which is convenient for users to view related data.
Claims
1. A multimodal data distributed retrieval method based on knowledge graph and vector matching, characterized in that: The steps include: Step 1, cleaning and storing the multimodal data from several multimodal database nodes; Step 2: embed the stored multimodal data into vectors using a unified multimodal data mapping model, and form a tree-like retrieval structure for the vectors through multi-level dynamic clustering. A bidirectional linked list is established for the data in each cluster, and the specific data in the cluster is queried through a pointer to the cluster center vector of the cluster to which it belongs; Step 3, storing the stored multimodal data in triple format and establishing a multimodal knowledge graph; Step 4: Perform multimodal data retrieval based on the retrieval conditions entered by the user. The method is as follows: embed the retrieval conditions into a conditional vector so that it is in the same space as the cluster center vector, and then perform vector retrieval and multimodal knowledge graph retrieval in parallel. The data retrieved by the two methods are scored, integrated and sorted, and a list of the top n data with the highest scores is returned and displayed.
2. The multimodal data distributed retrieval method based on knowledge graph and vector matching according to claim 1 is characterized in that: In step 1, after data cleaning, the sharding key is determined for different modal data according to their corresponding needs, the multimodal data is routed to the corresponding storage shards through the sharding algorithm in the data sharding engine, and the corresponding database and data storage method are determined according to the different modes and structures of the data, and stored in the distributed database.
3. The multimodal data distributed retrieval method based on knowledge graph and vector matching according to claim 1 is characterized in that: In step 2, after the stored multimodal data is embedded into a vector using a unified mapping model for multimodal data, the initial vector is mapped to the same vector space through feature fusion and alignment.
4. The multimodal data distributed retrieval method based on knowledge graph and vector matching according to claim 1 is characterized in that: The step of embedding the stored multimodal data into a vector using a unified multimodal data mapping model includes: For time series data, the LSTM encoding module is used for feature representation. The method is as follows: first, the time series data is normalized and scaled to the range of 0-1; then, the data is formed into an array with a shape of (n_samples, look_back, n_features), where n_samples is the number of samples, the look_back parameter indicates how many consecutive time points need to be used as input, and n_features is the number of features at each time point; finally, the generated array data is processed through an LSTM layer and a fully connected layer to output the feature vector E1; For image data, feature representation is performed through the ResNet-LSTM encoding module as follows: first, the image is preprocessed and adjusted to an RGB image; then, the pre-trained ResNet50 model is loaded, and the last fully connected layer and average pooling layer are removed; then, the output of the ResNet50 model is flattened into a vector and input into a fully connected layer to be converted to the required size; the transformed vector is further input into an LSTM layer, which processes it as a time step of a sequence and outputs a final LSTM state; finally, the LSTM state is input into a fully connected layer, and the feature vector E2 is output; For text data, the feature representation is performed through the Bert encoding module. The method is as follows: first, the input text is converted into digital form; then, the word segmentation of the text is positionally encoded; then, the obtained encoding sequence is input into the BERT model for forward propagation, and converted into a series of vectors through self-attention mechanism, full connection and pooling operations, where each vector represents a token in the input text; finally, the feature vector E3 is output by averaging these vectors; For relational data, the Linear encoding module is used for feature representation as follows: first, the given LET value is taken as input, and the index to be divided and the bin width are set; then, the LET is assigned to a bin, the LET value is subtracted from the lower limit of the LET range, and then divided by the bin width to get the index of the bin where the value is located; if the calculated index exceeds the range from 0 to the divided index, it is limited to this range; then, through a loop, the center value of each bin is formed into a discrete vector; finally, feature extraction is performed through the linear transformation operation of the fully connected layer, and the feature vector E4 is output.
5. The multimodal data distributed retrieval method based on knowledge graph and vector matching according to claim 1 is characterized in that: Linear transformation is used to transform the dimension of the feature vectors finally output by each modal data, so that they can be represented in the same feature vector space as the performance index; two Transformer layers are used to perform multiple nonlinear transformations on the feature vectors after linear transformation to extract richer features, and then obtain the feature vector G; For time series data, the input size of the LSTM layer is the same as the number of features of the data, the size of the hidden layer is 512, and the fully connected layer converts the output of the LSTM layer into a feature vector E1 of size (1, 1000); For the image data, the adjusted RGB image size is 3*224*224, the output flattened vector size of the ResNet50 model is (1, 1, 100352), and it is input into a fully connected layer to convert it into a vector of the required size (1, 1, 512), and finally outputs a feature vector E2 of size (1, 512); For text data, the number of hidden units in the BERT model is d=768, and the final output is a feature vector E3 of size (1, 768); For relational data, set the index to be divided num-bins = 10, and the bin width where let max and let min are the upper and lower limits of the LET range respectively; the length of the discrete vector formed by the center value of each bin is 10; the final output size is the feature vector E4 of (1, 30); For the linear transformation, assuming that the dimension of linear transformation W1 is (1000, 10), the dimension of linear transformation W2 is (512, 10), the dimension of linear transformation W3 is (768, 10), and the dimension of linear transformation W4 is (30, 10), the transformed eigenvectors are E'1=E1*W1, E'2=E2*W2, E'3=E3*W3, E'4=E4*W4, all of which are (1, 10); the size of the eigenvector G is (1, 768).
6. The multimodal data distributed retrieval method based on knowledge graph and vector matching according to claim 1 is characterized in that: In step 2, the incremental GMM algorithm is used to perform multi-level dynamic clustering so that the vector forms a tree-shaped retrieval structure. The basic clustering process is as follows: First, the Gaussian mixture model is initialized, part of the data is selected as the initial Gaussian components Ci, and the initial mean μi and covariance matrix Σi are assigned to each component; then, the new data points are gradually added to the existing Gaussian mixture model using incremental learning, and the clustering results are dynamically updated according to the model parameters. The expectation maximization algorithm is used to update the mean μi and covariance matrix Σi of each Gaussian component, as well as the weight wi of each component, until clustering is completed; When the number of clusters is greater than the maximum cluster capacity n, the above clustering process is repeated to perform incremental dynamic clustering of the cluster at the next level, and finally a multi-level tree-type vector index is formed.
7. The multimodal data distributed retrieval method based on knowledge graph and vector matching according to claim 6 is characterized in that: The method of establishing a bidirectional linked list for the data in each cluster and querying the specific data in the cluster through a pointer pointing to the cluster center vector of the cluster to which it belongs is as follows: For each cluster in the tree index structure, extract features and keywords therein, and generate a word cloud representing the features of the cluster; A bidirectional linked list is established for the leaf nodes of the index tree and the specific data contained in the node, that is, the mean of each Gaussian component is used to represent the cluster center, and a bidirectional pointer to the cluster center vector is established. For each Gaussian component, the cluster center it represents, all the data points contained in the cluster, and their location information in the original data set are recorded; when it is necessary to quickly retrieve the data in the cluster based on a given cluster center, all the data points represented by the cluster center are found based on the bidirectional pointer.
8. The multimodal data distributed retrieval method based on knowledge graph and vector matching according to claim 6 is characterized in that: For each cluster in the tree index structure, the features and keywords are extracted to generate a word cloud representing the features of the cluster, and the method is as follows: First, all the data in each cluster are preprocessed to extract keywords that can represent the content of the cluster; Then, count the occurrence frequency of keywords in each cluster and use these frequencies as the basic data for generating word clouds; Next, for the preprocessed text, calculate the frequency of occurrence of each word; Finally, display each word in different sizes to form a word cloud, and use the following linear table layout: select a starting point, arrange the words horizontally or vertically in order of frequency, and perform the following size mapping: size(w i )=k·freq(w i ) That is, the word w i The font size (w i ) is directly mapped from its frequency freq(w i ), where k is the scaling factor.
9. The multimodal data distributed retrieval method based on knowledge graph and vector matching according to claim 1 is characterized in that: In step 4, vector retrieval and multimodal knowledge graph retrieval are performed in parallel as follows: Perform entity and relationship recognition on the search condition text, and temporarily store the entity and relationship keywords involved; Perform multi-level similarity matching between the conditional vector and the cluster center, gradually refine it to the cluster center vector, and determine the final cluster; at the same time, conditionally map the temporarily stored entities and relationships: map the temporarily stored entities in the previous step to the corresponding nodes in the multimodal knowledge graph, and map the relationships to the edges or attributes related to the nodes; after the entities and relationships of the retrieved conditional text are mapped, convert the mapping results into the graph query language Cypher to obtain the specific entities and relationships stored in the multimodal knowledge graph; All multimodal data in the cluster are retrieved through the bidirectional pointer from the cluster vector to the cluster center, and similarity matching is performed with the condition vector to obtain result S1; at the same time, specific relationship queries are performed on the multimodal knowledge graph based on the entities and relationships after conditional mapping to obtain result S2.
10. A multimodal data distributed retrieval system based on knowledge graph and vector matching, characterized in that: include: The data storage and organization module cleans the multimodal data and stores it according to the corresponding data structure or database, while introducing a distributed mechanism to improve storage capacity and system retrieval efficiency; The multimodal data representation and fusion module embeds the multimodal data into vectors through a unified multimodal data mapping model, and maps the initial vectors to the same vector space through feature fusion and alignment; The multi-level dynamic clustering and indexing module forms a tree-like retrieval structure by multi-level dynamic clustering of the embedded vectors. At the same time, a bidirectional linked list is established for the data in each cluster, and the specific data in the cluster is queried through the pointer pointing to the cluster center vector to which it belongs; The multimodal knowledge graph is built by storing and storing multimodal data in triple format to support subsequent retrieval on the multimodal knowledge graph. The multimodal retrieval module embeds the search conditions entered by the user into a conditional vector so that it is in the same space as the cluster center vector, and then performs vector retrieval and multimodal knowledge graph retrieval in parallel. The data retrieved by the two methods are then scored, integrated and sorted, and a list of the top n data with the highest scores is returned.
Citation Information
Patent Citations
Vector database-based retrieval method and system and electronic equipment
CN117271712A
Large language model vector retrieval method based on knowledge graph integration
CN117520485A
Agricultural multi-mode intelligent retrieval technology and system based on multi-source heterogeneous data
CN117573882A
Knowledge graph automatic construction method and system for massive unstructured text
WO2020000848A1
Entity alignment method and apparatus for multi-modal knowledge graphs, and storage medium
WO2022267976A1
Cited By
Multi-modal data retrieval method and device based on metric index
CN118861211A
A multimodal data retrieval method and device based on metric index
CN118861211B
Video understanding method and device fusing multi-modal knowledge graph
CN119672606A
Multi-source cross-domain data query method and system
CN119691003A
Maintenance scheme generation system and method based on reinforcement learning, and program product
CN119884396A
