Question and answer method and device based on multi-modal industrial large model
Through the question and answer method based on multi-modal industrial large models, the problem of low efficiency of multi-modal data integration and feature extraction is solved. Alignment algorithm and LLM are used to generate answers, realizing multi-source data understanding and information complementation in complex industrial environments. , which improves the capabilities of production process optimization, fault diagnosis and personalized manufacturing, and reduces operating costs.
Patent Information
- Application Number
- CN202410740133.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-11
AI Technical Summary
Existing technologies face problems such as difficulty in data integration, low efficiency in feature extraction, and insufficient information utilization when processing complex multimodal data. In particular, they fail to fully utilize the potential of large language models in industrial applications, especially in production process optimization. , fault diagnosis, personalized manufacturing, etc.
Provide a question and answer method based on multi-modal industrial large models, convert multiple modal data into feature vectors through feature extraction algorithms, and use alignment algorithms to align feature vectors of different modalities to build a comprehensive feature vector knowledge base, using LLM generates answers and supports production process optimization, fault diagnosis, personalized manufacturing and other functions.
It improves the utilization efficiency and processing quality of multi-modal data, enhances the model's ability to understand multi-source data in complex industrial environments, realizes information complementation and enhancement, improves generation quality and practicality, and supports production process optimization, fault prediction and Maintenance, personalized manufacturing and intelligent question and answer functions reduce operating costs and improve product quality and production flexibility.
Smart Images

Figure CN118761458A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a question-answering method and device based on a multimodal industrial large model. Background Art
[0002] With the development of industrial automation and intelligent manufacturing, the role of multimodal data in production and management has become increasingly prominent. These data contain rich information, and their comprehensive utilization is of great significance for optimizing production processes, improving product quality, reducing costs, and enhancing production flexibility and efficiency. However, existing technologies face many challenges in processing complex multimodal data, including difficulties in data integration, low feature extraction efficiency, and insufficient information utilization. In particular, traditional data processing methods are often unable to effectively align and integrate information from different modalities, making it difficult to fully tap the potential of multimodal data in practical applications.
[0003] In addition, although LLMs (Large Language Models) have shown strong capabilities in areas such as language understanding and text generation, their research and application in industrial applications, especially in complex decision-making and optimization combined with multimodal data, are relatively limited. Existing technologies have failed to fully utilize the potential of large models in processing multimodal data, especially in production process optimization, fault diagnosis, personalized manufacturing, etc.
[0004] Therefore, there is an urgent need to develop a new question-answering method and device based on multimodal industrial big models, which can efficiently integrate and process multimodal data, improve data utilization efficiency and processing quality, and use the powerful processing capabilities of big models to support multiple aspects of industrial production and management. Summary of the invention
[0005] In view of the problems existing in the prior art, the present invention provides a question-answering method and device based on a multimodal industrial large model.
[0006] The present invention provides a question-answering method based on a multimodal industrial big model, comprising:
[0007] Collecting data of various modes from an industrial environment, and extracting features from the data of various modes using feature extraction algorithms corresponding to the various modes, to obtain feature vectors of the various modes;
[0008] Using an alignment algorithm to align the feature vectors of the various modes, splicing the aligned feature vectors of the various modes corresponding to the same scene in the industrial environment at the same time, and building a knowledge base based on the comprehensive feature vectors obtained after splicing;
[0009] Extracting features of at least one modality of user input of a question to obtain a feature vector of the question input, aligning and concatenating the feature vectors of the question input to obtain a query feature vector;
[0010] The similarity between the query feature vector and the comprehensive feature vector in the knowledge base is calculated, and a comprehensive feature vector related to the query feature vector is queried from the knowledge base according to the similarity, and an answer to the question input is generated according to the queried comprehensive feature vector using LLM.
[0011] According to a question-answering method based on a multimodal industrial big model provided by the present invention, the data in multiple modalities include data in text, image, audio and video modalities;
[0012] The answers to the questions include production process optimization suggestions, fault diagnosis results, question-and-answer system answers and personalized manufacturing solutions.
[0013] According to a question-answering method based on a multimodal industrial big model provided by the present invention, the data includes structured data, unstructured data and semi-structured data. Before extracting features from the data of the various modes using feature extraction algorithms corresponding to the various modes, the method further includes:
[0014] For the structured data and the semi-structured data, extract configuration information and data content from the data using a parser, and generate corresponding text according to the configuration information and data content;
[0015] Performing a preprocessing operation on the data in text mode, wherein the preprocessing operation includes one or more of denoising, word segmentation, and stop word removal;
[0016] Performing a preprocessing operation on the data of the image modality, the preprocessing operation comprising one or more of cropping, scaling and image enhancement;
[0017] Performing a preprocessing operation on the data of the audio modality, wherein the preprocessing operation includes noise reduction and / or channel normalization;
[0018] A preprocessing operation is performed on the data in the video modality, wherein the preprocessing operation includes one or more of format conversion, resolution adjustment, and frame extraction.
[0019] According to a question-answering method based on a multimodal industrial large model provided by the present invention, the feature extraction algorithms corresponding to the image modality include Normalizing Flow Network (NFNet), Vision Transformer (ViT), CLIP ViT and Eva-CLIPViT;
[0020] The feature extraction algorithms corresponding to the video modality include 3D Convolutional Neural Networks (3D CNNs) and Inflated 3D ConvNet (I3D).
[0021] The feature extraction algorithms corresponding to audio modalities include C-Former, HuBERT (Self-Supervised Learning of Hidden Unit BERT), and BEATs (Beat Alignment and Tempo Estimation);
[0022] The feature extraction algorithms corresponding to text modality include BERT (Bidirectional Encoder Representations from Transformers), Transformer, and ELMo (Embeddings from Language Models).
[0023] According to a question-answering method based on a multimodal industrial large model provided by the present invention, the alignment algorithm is used to align the feature vectors of the various modes, including:
[0024] Mapping feature vectors of other modalities except the text modality among the multiple modalities to a predefined text feature space using an input projector to generate aligned feature vectors of the other modalities;
[0025] The aligned feature vectors of the other modalities are used as prompts and simultaneously input into the LLM together with the feature vectors of the text modality to obtain the text output by the LLM;
[0026] Determine a loss function according to the loss between the text output by the LLM and the preset target text, and optimize the parameters of the input projector so that the value of the loss function is minimized;
[0027] The eigenvectors of the various modes are aligned using the input projector after parameter optimization.
[0028] According to a question-answering method based on a multimodal industrial large model provided by the present invention, the feature vectors of various modes corresponding to the same scene in the industrial environment at the same time are aligned and spliced, including:
[0029] The text modality-aligned feature vectors, image modality-aligned feature vectors, video modality-aligned feature vectors, and audio modality-aligned feature vectors corresponding to the same scene in the industrial environment at the same time are sequentially spliced.
[0030] According to a question-answering method based on a multimodal industrial big model provided by the present invention, the step of using LLM to generate an answer to the question input according to the comprehensive feature vector of the query includes:
[0031] Inputting the queried comprehensive feature vector into the LLM to obtain the feature vector output by the LLM;
[0032] According to the mode set by the user for the answer and the feature vector output by the LLM, an answer of the corresponding mode is generated.
[0033] According to a question-answering method based on a multimodal industrial large model provided by the present invention, when the modality of the answer is an image, the generation model of the answer includes a diffusion model, a DALL-E series model and a VQ-VAE model;
[0034] In the case where the modality of the answer is a video, the generation model of the answer includes a Zeroscope model, a Gen-2 model, and a Sora model;
[0035] When the modality of the answer is audio, the generation models of the answer include AudioLDM model, SpeechT5 series model and VALL-E model.
[0036] The present invention also provides a question-answering device based on a multimodal industrial large model, comprising:
[0037] An extraction module is used to collect data of various modes from an industrial environment, and use feature extraction algorithms corresponding to various modes to perform feature extraction on the data of various modes to obtain feature vectors of the various modes;
[0038] An alignment module, used to align the feature vectors of the various modes using an alignment algorithm, splice the aligned feature vectors of the various modes corresponding to the same scene in the industrial environment at the same time, and construct a knowledge base according to the comprehensive feature vectors obtained after splicing;
[0039] A questioning module, configured to extract features from a question input in at least one mode by a user to obtain a feature vector of the question input, align and concatenate the feature vectors of the question input, and obtain a query feature vector;
[0040] A generation module is used to calculate the similarity between the query feature vector and the comprehensive feature vector in the knowledge base, query the comprehensive feature vector related to the query feature vector from the knowledge base according to the similarity, and use LLM to generate an answer to the question input according to the queried comprehensive feature vector.
[0041] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the question-answering method based on the multimodal industrial large model as described above is implemented.
[0042] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described question-answering methods based on a multimodal industrial large model.
[0043] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned question-answering methods based on a multimodal industrial big model.
[0044] The question-and-answer method and device based on the multimodal industrial large model provided by the present invention integrate multimodal data processing with LLM, receive and process information of multiple modes, use special algorithms to perform accurate feature extraction on data of various modes, and convert complex data into computable feature vectors, thereby ensuring the comprehensiveness and accuracy of data input; adjust the feature vectors extracted from different modes through an alignment algorithm so that they can be compared and integrated in a unified feature space, thereby enhancing the model's ability to understand multi-source data in a complex industrial environment, and also realizing information complementarity and enhancement between various modes, greatly improving the generation quality and practicality of the model; construct a dynamic and real-time updated knowledge base, and through accurate data analysis and pattern recognition, provide strong knowledge support for multiple functions such as production process optimization, fault prediction and maintenance, personalized manufacturing and intelligent question-and-answer, improve the automation and intelligence level of industrial production, reduce operating costs, and at the same time improve product quality and production flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 It is one of the flow charts of the question-answering method based on the multimodal industrial large model provided by the present invention;
[0047] Figure 2 It is a flowchart of question analysis in the question-answering method based on the multimodal industrial large model provided by the present invention;
[0048] Figure 3This is the second flow chart of the question-answering method based on the multimodal industrial large model provided by the present invention;
[0049] Figure 4 It is a schematic diagram of the framework of the multimodal industrial model in the question-answering method based on the multimodal industrial model provided by the present invention;
[0050] Figure 5 It is a schematic diagram of the processing flow of the question management module in the system of the question-answering method based on the multimodal industrial big model provided by the present invention;
[0051] Figure 6 It is a schematic diagram of the processing flow of the knowledge base module in the system of the question-answering method based on the multimodal industrial big model provided by the present invention;
[0052] Figure 7 It is a schematic diagram of the processing flow of the knowledge answering module in the system of the question-answering method based on the multimodal industrial big model provided by the present invention;
[0053] Figure 8 It is a schematic diagram of industrial data composition in the question-answering method based on the multimodal industrial big model provided by the present invention;
[0054] Fig. 9 It is a schematic diagram of the structure of a cross-modal feature extraction module in the question-answering method based on a multi-modal industrial large model provided by the present invention;
[0055] Fig.10 It is a schematic diagram of the structure of a cross-modal synthesizer in the question-answering method based on a multi-modal industrial large model provided by the present invention;
[0056] Fig.11 It is a structural schematic diagram of a question-answering device based on a multi-modal industrial large model provided by the present invention;
[0057] Fig.12 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] Combine the following Figure 1 A question-answering method based on a multimodal industrial big model of the present invention is described, comprising:
[0060] Step 101, collecting data of various modes from an industrial environment, and using feature extraction algorithms corresponding to various modes to extract features from the data of various modes, to obtain feature vectors of the various modes;
[0061] Data in industrial environments includes data from multiple sources such as sensors, machines, production lines, and environments. Data in multiple modalities includes but is not limited to text, images, audio, video, documents, and other generated data.
[0062] Data of multiple modalities can be denoised, formatted, cleaned and normalized to ensure data quality and consistency.
[0063] Special algorithms corresponding to each modality are used to perform feature extraction on data of various modalities, converting complex data into computable feature vectors. For example, deep learning algorithms are used to perform feature extraction on preprocessed multimodal data, converting it into computable feature vectors, and optimizing the feature extraction process through adaptive algorithms to improve data processing efficiency and accuracy.
[0064] Step 102, aligning the feature vectors of the various modes using an alignment algorithm, splicing the aligned feature vectors of the various modes corresponding to the same scene in the industrial environment at the same time, and constructing a knowledge base according to the comprehensive feature vectors obtained after splicing;
[0065] The feature vectors extracted from different modal data are adjusted through the alignment algorithm to facilitate comparison and fusion in a unified feature space.
[0066] Knowledge base construction builds a structured knowledge base containing multi-dimensional knowledge representation by integrating the aligned feature vectors to store the processed information. Graph database technology can be used to manage complex data relationships and improve query efficiency and data processing flexibility.
[0067] The knowledge base may include a multimodal vector knowledge base and a text knowledge base. This design intends to maximize the use of information extracted from multiple data sources in order to handle complex queries and support the decision-making process.
[0068] The multimodal vector knowledge base integrates high-dimensional feature vectors from a variety of feature extraction models, which represent the deep features of non-text data including images, videos, and audio. These vectors are accurately extracted and optimized to comprehensively reflect the key information and internal structure of the original multimodal data, providing strong data support for subsequent analysis and application.
[0069] The text knowledge base is based on the output of the model used in the multimodal feature extraction stage to build a corresponding text sequence knowledge base. The entries in the text knowledge base are closely associated with their respective multimodal feature vectors, so that text information can be directly mapped and complemented with non-text features in the multimodal vector knowledge base, thereby achieving deep integration between multimodal data and greatly enhancing the richness of the knowledge base content. In addition, the existence of the text knowledge base also facilitates relevant personnel to conduct real-time data query and retrieval.
[0070] Step 103, extracting features from at least one modality of question input by the user to obtain a feature vector of the question input, aligning and concatenating the feature vectors of the question input to obtain a query feature vector;
[0071] The user's question input contains at least one modality, such as text, voice, etc. Figure 2 As shown in the figure, the problem analysis specifically includes the following steps:
[0072] Question input is the starting point of the question analysis process. The user's question is input into the system in some mode (text, sound, image, etc.).
[0073] Data preprocessing: preprocessing the problem input, including text segmentation, sound noise reduction, image normalization, etc., to ensure data quality and prepare for feature extraction. For example, voice input is converted into text through speech recognition, and text input is segmented, stop words are removed, data format is standardized, and noise is reduced.
[0074] Feature extraction: Use a specific algorithm to extract features from the preprocessed question input, referring to the feature extraction method of the collected multimodal data. It involves different data types such as images, videos, audio, and text, aiming to maximize the capture of key information from the question input of each modality.
[0075] Vector alignment converts and unifies the data features of different modalities into a common feature space to achieve feature vector alignment. Refer to the feature vector alignment method of collected multimodal data.
[0076] Vector concatenation, in a certain order, such as text feature vector first, followed by image feature vector, video feature vector and audio feature vector, sequentially concatenates the feature vectors of each modality. The concatenation operation concatenates the feature vectors of each modality to form a comprehensive feature vector as the input for subsequent processing steps. The dimension alignment uses zero padding or special symbols to maintain the independence between modalities. The concatenation order of the comprehensive feature vector and the query feature vector is the same, the dimension of the feature vectors of the same modality is the same, and the feature vector of the default modality in the query feature vector can be filled with zeros, so that the dimensions of the comprehensive feature vector and the query feature vector are aligned.
[0077] Step 104, calculate the similarity between the query feature vector and the comprehensive feature vector in the knowledge base, query the comprehensive feature vector related to the query feature vector from the knowledge base according to the similarity, and use LLM to generate an answer to the question input according to the queried comprehensive feature vector.
[0078] Calculate the similarity between the query feature vector and each comprehensive feature vector in the knowledge base. The similarity can be calculated using cosine distance or Euclidean distance.
[0079] The comprehensive feature vector with the greatest similarity to the query feature vector can be input into LLMs as a hint for generating answers to generate answers to questions. LLM can be ChatGLM3, Chinese-LLaMA2, GPT-4, etc. Through the unique interface and adapter system integration, it can flexibly understand and reason about the question content and generate text answers. The complete flowchart is as follows Figure 3 shown.
[0080] Figure 4 FIG. 1 is a schematic diagram of the framework of the multimodal industrial model in the question-answering method based on the multimodal industrial model provided by the present invention, including a knowledge base module, a question management module and a knowledge answering module. The processing flow of the question management module is as follows: Figure 5 As shown in Figure 2, the processing flow of the knowledge base module is as follows: Figure 6 As shown in Figure 2, the processing flow of the knowledge answer module is as follows: Figure 7 This embodiment shows that in industrial environments, especially in the context of factory assembly lines, multimodal industrial large models play a key role in fault diagnosis and process optimization.
[0081] The multimodal industrial big model in this embodiment not only provides diagnostic support in case of failure, but also continuously optimizes and analyzes the production process. By comprehensively processing data of various modes, it can deeply understand the status of the factory assembly line and provide solid information support for reducing downtime, improving production efficiency and ensuring product quality. In this process, each module works together to ensure that every step from data collection to analysis to response is coherent and effective.
[0082] This embodiment integrates multimodal data processing with LLM, receives and processes information of multiple modes, uses special algorithms to perform accurate feature extraction on data of various modes, and converts complex data into computable feature vectors, thereby ensuring the comprehensiveness and accuracy of data input; adjusts the feature vectors extracted from different modes through an alignment algorithm so that they can be compared and integrated in a unified feature space, thereby enhancing the model's ability to understand multi-source data in complex industrial environments, and also realizes information complementarity and enhancement between various modes, greatly improving the generation quality and practicality of the model; constructs a dynamic and real-time updated knowledge base, and through accurate data analysis and pattern recognition, provides strong knowledge support for multiple functions such as production process optimization, fault prediction and maintenance, personalized manufacturing, and intelligent question and answer, thereby improving the level of automation and intelligence in industrial production, reducing operating costs, and improving product quality and production flexibility.
[0083] Based on the above embodiment, the data in multiple modes in this embodiment includes data in text, image, audio and video modes;
[0084] The answers to the questions include production process optimization suggestions, fault diagnosis results, question-and-answer system answers and personalized manufacturing solutions.
[0085] On the basis of the above embodiment, the data in this embodiment includes structured data, unstructured data and semi-structured data. Before extracting features from the data of various modalities using feature extraction algorithms corresponding to various modalities, the following is further included:
[0086] For the structured data and the semi-structured data, use a special parser to extract configuration information and data content from the data, and generate corresponding text according to the configuration information and data content;
[0087] Performing a preprocessing operation on the data in text mode, wherein the preprocessing operation includes one or more of denoising, word segmentation, and stop word removal;
[0088] Performing a preprocessing operation on the data of the image modality, the preprocessing operation comprising one or more of cropping, scaling and image enhancement;
[0089] Performing a preprocessing operation on the data of the audio modality, wherein the preprocessing operation includes noise reduction and / or channel normalization;
[0090] A preprocessing operation is performed on the data in the video modality, wherein the preprocessing operation includes one or more of format conversion, resolution adjustment, and frame extraction.
[0091] like Figure 8As shown, the valid data types in industrial environments are diverse and can be divided into various forms of structured, unstructured, and semi-structured data collected from factory production lines.
[0092] In the preprocessing of image data, adaptive histogram equalization (AHE) technology can also be used to improve the image quality under different lighting conditions, thereby improving the accuracy of image feature extraction.
[0093] This embodiment can receive and process information of multiple modes, and ensure the quality and consistency of data from different sources through advanced data collection and preprocessing technology. In particular, when processing structured, unstructured and semi-structured data, a special algorithm is used to perform accurate feature extraction on data of various modes, converting complex data into computable feature vectors, thereby building an effective and high-quality large model to ensure the comprehensiveness and accuracy of data input.
[0094] Based on the above embodiments, Fig. 9 As shown, the feature extraction algorithms corresponding to the image modality in this embodiment include the non-normalized network NFNet, the visual transformer ViT, CLIP ViT and Eva-CLIP ViT;
[0095] The feature extraction algorithms corresponding to the video modality include 3D convolutional neural networks (3D CNNs) and dilated convolutional networks (I3D);
[0096] The feature extraction algorithms corresponding to the audio modality include C-Former, HuBERT, and BEATs;
[0097] The feature extraction algorithms corresponding to the text modality include BERT, Transformer, and ELMo.
[0098] Feature extraction covers multiple aspects such as image feature extraction, video feature extraction, audio feature extraction, text feature extraction, etc. These feature extraction technologies are designed to maximize the information captured from the data of their respective modalities, providing strong support for subsequent data analysis, decision support, and application development.
[0099] Among them, image feature extraction can introduce visual transformer ViT to process image blocks. The model captures the global features of the image through the Transformer encoder, and processes the entire sequence of image blocks to capture long-distance dependencies to extract a comprehensive image representation. Video feature extraction analyzes video frame sequences by deploying three-dimensional convolutional neural networks 3D CNNs. This technology effectively captures the changes in video content over time by extracting spatiotemporal features and provides a comprehensive feature description for the entire video sequence. Audio feature extraction uses the C-Former model to extract features from audio data, which is specifically used to capture semantic information in audio signals and generate feature vectors that reflect audio content. Text feature extraction deploys the ELMo model for word-level pre-training, uses dynamic word embedding to capture the changes in words in different contexts, and provides fine-grained text context information.
[0100] The feature vectors selected and optimized in this embodiment not only accurately reflect the key information and internal structure of the original data, but also provide a strong support foundation for subsequent data analysis and intelligent application development.
[0101] Based on the above embodiment, the alignment algorithm used in this embodiment to align the feature vectors of the various modes includes:
[0102] Mapping feature vectors of other modalities except the text modality among the multiple modalities to a predefined text feature space using an input projector to generate aligned feature vectors of the other modalities;
[0103] The aligned feature vectors of the other modalities are used as prompts and simultaneously input into the LLM together with the feature vectors of the text modality to obtain the text output by the LLM;
[0104] Determine a loss function according to the loss between the text output by the LLM and the preset target text, and optimize the parameters of the input projector so that the value of the loss function is minimized;
[0105] The eigenvectors of the various modes are aligned using the input projector after parameter optimization.
[0106] The core of vector alignment is to transform and unify feature vectors from different modalities (such as text, image, audio and video) into a common feature space, thereby aligning feature vectors to enhance the system's analysis and decision-making capabilities. The specific steps include:
[0107] First, the feature vector F is extracted from the original data of each modality using the corresponding feature extraction technology. x The text data is processed by natural language processing technology, the image data is processed by computer vision algorithm, and the audio data is processed by audio signal processing method to extract feature vector Fx , which aims to extract the most representative and informative features from each modal data.
[0108] Then, through the input projector θ of the preferred configuration x →T, extract the feature vectors F of other modes x Mapped to a pre-defined text feature space T. The process involves selecting an appropriate transformation method, including but not limited to linear projection, multi-layer perceptron (MLP), or more complex mechanisms such as Cross-attention, Q-Former, and P-Former to ensure that feature vectors of different modalities are aligned and fused at a unified semantic level.
[0109] Next, the alignment feature vector P generated after input projector processing x It can be used directly as an embedding, enabling its comparison and fusion capabilities in a unified feature space, providing a solid and consistent foundation for subsequent analysis, interpretation, and application.
[0110] Finally, the aligned feature vector is used as the hint P x , input into LLM, and the text feature vector F t Processed together, that is, LLM (P x , F t ). In a given text dataset {I x ,t}, the goal is to minimize the loss L of conditional text generation t , I x It represents the function of LLM to generate text when the alignment feature vector and text feature vector are given, and t is the target text.
[0111] The optimization objective is expressed as θ x →T, need to minimize I t , the formula is as follows:
[0112]
[0113] Where P x =Θ x→t (F x ) represents the feature F x Aligned feature vector transformed by the input projector. is the loss function.
[0114] In addition, the feature vectors of various modalities corresponding to the same scene at the same time in the industrial environment should be similar after alignment. The similarity between the aligned feature vectors and the similarity between the aligned feature vectors and the feature vectors of the text modality can also be calculated. The loss function is determined by combining the similarity between the aligned feature vectors and the similarity between the aligned feature vectors and the feature vectors of the text modality. The formula can be
[0115]
[0116] Among them, SIM(P x ,F t ) is the average similarity between each alignment feature vector and the feature vector of the text modality, SIM(P x ) is the average similarity between any two aligned feature vectors, and a and b are weights.
[0117] On the basis of the above embodiment, the feature vectors of various modes corresponding to the same scene in the industrial environment at the same time are aligned and spliced in this embodiment, including:
[0118] The text modality-aligned feature vectors, image modality-aligned feature vectors, video modality-aligned feature vectors, and audio modality-aligned feature vectors corresponding to the same scene in the industrial environment at the same time are sequentially spliced.
[0119] After the feature vectors are aligned, a sequential concatenation strategy is adopted. In a certain order, the text feature vector f text , followed by the image feature vector f visua , video feature vector f video and the audio feature vector f audio , the feature vectors of each mode are sequentially concatenated together. The concatenation operation concatenates the feature vectors of each mode to form a comprehensive feature vector f union As the input of the subsequent processing steps, the dimension alignment uses zero padding or special symbols to maintain the independence between modalities.
[0120] After aligning the feature vectors of the user's question input, they are concatenated in the same order to obtain the query feature vector. The feature vectors of the missing modalities are filled with zeros, so that the dimensions of the query feature vector and the comprehensive feature vector are aligned, which is convenient for similarity calculation.
[0121] Based on the above embodiments, the method of using LLM in this embodiment to generate an answer to the question input according to the comprehensive feature vector of the query includes:
[0122] Inputting the queried comprehensive feature vector into the LLM to obtain the feature vector output by the LLM;
[0123] According to the mode set by the user for the answer and the feature vector output by the LLM, an answer of the corresponding mode is generated.
[0124] The answer output part converts the answer into the output format of the specified modality according to user needs, and provides the answer through the user interface or application programming interface (API), supporting multiple formats such as images, videos and audio.
[0125] The answer output covers the generation of answers in multiple modalities such as images, videos, and audio. These answer generation technologies are designed to convert the feature vectors output by multimodal industrial large models into corresponding outputs according to the modalities specified by the user, providing highly customized solutions for user interaction, automated feedback, and augmented reality.
[0126] Based on the above embodiments, Fig.10 As shown, in this embodiment, when the modality of the answer is an image, the generation model of the answer includes a diffusion model, a DALL-E series model and a VQ-VAE model;
[0127] In the case where the modality of the answer is a video, the generation model of the answer includes a Zeroscope model, a Gen-2 model, and a Sora model;
[0128] When the modality of the answer is audio, the generation models of the answer include AudioLDM model, SpeechT5 series model and VALL-E model.
[0129] The image answer generation stage uses diffusion models, DALL-E series models, and VQ-VAE models to intuitively display answers or provide visual information.
[0130] Video answer generation introduces the Zeroscope model, Gen-2 model, and Sora model, etc., converting feature vectors into dynamic video content to support complex query responses and enhance user experience.
[0131] The audio answer generation part utilizes the AudioLDM model, SpeechT5 series model and VALL-E model to generate clear audio output with high semantic information, such as voice answers or sound effects, which enriches the interaction method and improves the efficiency of information transmission.
[0132] This embodiment not only provides solutions for user interaction, automated feedback and augmented reality, but also ensures that data of different modalities are effectively converted and applied in the output form specified by the user, greatly enhancing the analysis and decision-making capabilities of the system.
[0133] The question-and-answer device based on the multimodal industrial large model provided by the present invention is described below. The question-and-answer device based on the multimodal industrial large model described below and the question-and-answer method based on the multimodal industrial large model described above can be referred to each other.
[0134] like Fig.11 As shown, the device includes an extraction module 1101, an alignment module 1102, a questioning module 1103 and a generation module 1104, wherein:
[0135] The extraction module 1101 is used to collect data of various modes from the industrial environment, and use feature extraction algorithms corresponding to various modes to extract features from the data of various modes, so as to obtain feature vectors of the various modes;
[0136] The alignment module 1102 is used to align the feature vectors of the various modes using an alignment algorithm, splice the aligned feature vectors of the various modes corresponding to the same scene in the industrial environment at the same time, and construct a knowledge base according to the comprehensive feature vector obtained after splicing;
[0137] The questioning module 1103 is used to extract features from at least one modality of question input by the user to obtain a feature vector of the question input, align and concatenate the feature vectors of the question input to obtain a query feature vector;
[0138] The generation module 1104 is used to calculate the similarity between the query feature vector and the comprehensive feature vector in the knowledge base, query the comprehensive feature vector related to the query feature vector from the knowledge base according to the similarity, and use LLM to generate an answer to the question input according to the queried comprehensive feature vector.
[0139] This embodiment integrates multimodal data processing with LLM, receives and processes information of multiple modes, uses special algorithms to perform accurate feature extraction on data of various modes, and converts complex data into computable feature vectors, thereby ensuring the comprehensiveness and accuracy of data input; adjusts the feature vectors extracted from different modes through an alignment algorithm so that they can be compared and integrated in a unified feature space, thereby enhancing the model's ability to understand multi-source data in complex industrial environments, and also realizes information complementarity and enhancement between various modes, greatly improving the generation quality and practicality of the model; constructs a dynamic and real-time updated knowledge base, and through accurate data analysis and pattern recognition, provides strong knowledge support for multiple functions such as production process optimization, fault prediction and maintenance, personalized manufacturing, and intelligent question and answer, thereby improving the level of automation and intelligence in industrial production, reducing operating costs, and improving product quality and production flexibility.
[0140] Fig.12 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.12 As shown, the electronic device may include: a processor (processor) 1210, a communication interface (Communications Interface) 1220, a memory (memory) 1230 and a communication bus 1240, wherein the processor 1210, the communication interface 1220, and the memory 1230 communicate with each other through the communication bus 1240. The processor 1210 can call the logic instructions in the memory 1230 to execute a question-answering method based on a multimodal industrial large model, which includes: collecting data of multiple modes from an industrial environment, and using feature extraction algorithms corresponding to various modes to extract data features; using an alignment algorithm to align the feature vectors of various modes, splicing the aligned feature vectors of various modes, and building a knowledge base based on the comprehensive feature vector obtained after splicing; extracting features from at least one modality of user question input to obtain a feature vector of the question input, aligning the feature vectors of the question input and splicing them to obtain a query feature vector; calculating the similarity between the query feature vector and the comprehensive feature vector in the knowledge base, querying the comprehensive feature vector related to the query feature vector from the knowledge base based on the similarity, and using LLM to generate an answer to the question input based on the queried comprehensive feature vector.
[0141] In addition, the logic instructions in the above-mentioned memory 1230 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0142] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the question-answering method based on the multimodal industrial large model provided by the above-mentioned methods, and the method includes: collecting data of multiple modes from an industrial environment, and using feature extraction algorithms corresponding to various modes to extract data features; using an alignment algorithm to align the feature vectors of various modes, splicing the aligned feature vectors of various modes, and constructing a knowledge base based on the comprehensive feature vector obtained after splicing; performing feature extraction on the question input of at least one mode of the user to obtain a feature vector of the question input, aligning the feature vectors of the question input and splicing them to obtain a query feature vector; calculating the similarity between the query feature vector and the comprehensive feature vector in the knowledge base, querying the comprehensive feature vector related to the query feature vector from the knowledge base based on the similarity, and using LLM to generate an answer to the question input based on the queried comprehensive feature vector.
[0143] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the question-answering method based on the multimodal industrial large model provided by the above-mentioned methods, the method comprising: collecting data of multiple modes from an industrial environment, and extracting data features using feature extraction algorithms corresponding to various modes; aligning feature vectors of various modes using an alignment algorithm, splicing the aligned feature vectors of various modes, and constructing a knowledge base based on the comprehensive feature vector obtained after splicing; extracting features from at least one modality of user question input to obtain a feature vector of the question input, aligning the feature vectors of the question input and splicing them to obtain a query feature vector; calculating the similarity between the query feature vector and the comprehensive feature vector in the knowledge base, querying the comprehensive feature vector related to the query feature vector from the knowledge base based on the similarity, and using LLM to generate an answer to the question input based on the queried comprehensive feature vector.
[0144] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A question-answering method based on a multimodal industrial big model, characterized in that: include: Collecting data of various modes from an industrial environment, and extracting features from the data of various modes using feature extraction algorithms corresponding to the various modes, to obtain feature vectors of the various modes; Using an alignment algorithm to align the feature vectors of the various modes, splicing the aligned feature vectors of the various modes corresponding to the same scene in the industrial environment at the same time, and building a knowledge base based on the comprehensive feature vectors obtained after splicing; Extracting features of at least one modality of user input of a question to obtain a feature vector of the question input, aligning and concatenating the feature vectors of the question input to obtain a query feature vector; The similarity between the query feature vector and the comprehensive feature vector in the knowledge base is calculated, and a comprehensive feature vector related to the query feature vector is queried from the knowledge base according to the similarity, and an answer to the question input is generated according to the queried comprehensive feature vector using LLM.
2. The question-answering method based on a multimodal industrial big model according to claim 1, characterized in that: The data in multiple modalities include data in text, image, audio and video modalities; The answers to the questions include production process optimization suggestions, fault diagnosis results, question-and-answer system answers and personalized manufacturing solutions.
3. The question-answering method based on a multimodal industrial big model according to claim 2 is characterized in that: The data includes structured data, unstructured data and semi-structured data. Before extracting features from the data of various modalities using feature extraction algorithms corresponding to various modalities, the method further includes: For the structured data and the semi-structured data, extract configuration information and data content from the data using a parser, and generate corresponding text according to the configuration information and data content; Performing a preprocessing operation on the data in text mode, wherein the preprocessing operation includes one or more of denoising, word segmentation, and stop word removal; Performing a preprocessing operation on the data of the image modality, the preprocessing operation comprising one or more of cropping, scaling and image enhancement; Performing a preprocessing operation on the data of the audio modality, wherein the preprocessing operation includes noise reduction and / or channel normalization; A preprocessing operation is performed on the data in the video modality, wherein the preprocessing operation includes one or more of format conversion, resolution adjustment, and frame extraction.
4. The question-answering method based on a multimodal industrial big model according to claim 2 is characterized in that: The feature extraction algorithms corresponding to the image modality include normalization-free network, visual transformer, CLIP ViT, and Eva-CLIP ViT; Feature extraction algorithms corresponding to video modalities include 3D convolutional neural networks and dilated convolutional networks; The feature extraction algorithms corresponding to the audio modality include C-Former, HuBERT, and BEATs; The feature extraction algorithms corresponding to the text modality include BERT, Transformer, and ELMo.
5. The question-answering method based on a multimodal industrial big model according to claim 2, characterized in that: The use of an alignment algorithm to align the feature vectors of the various modes includes: Mapping feature vectors of other modalities except the text modality among the multiple modalities to a predefined text feature space using an input projector to generate aligned feature vectors of the other modalities; The aligned feature vectors of the other modalities are used as prompts and simultaneously input into the LLM together with the feature vectors of the text modality to obtain the text output by the LLM; Determine a loss function according to the loss between the text output by the LLM and the preset target text, and optimize the parameters of the input projector so that the value of the loss function is minimized; The eigenvectors of the various modes are aligned using the input projector after parameter optimization.
6. The question-answering method based on a multimodal industrial big model according to claim 2, characterized in that: The step of splicing the aligned feature vectors of various modes corresponding to the same scene in the industrial environment at the same time includes: The text modality-aligned feature vectors, image modality-aligned feature vectors, video modality-aligned feature vectors, and audio modality-aligned feature vectors corresponding to the same scene in the industrial environment at the same time are sequentially spliced.
7. The question-answering method based on a multimodal industrial big model according to any one of claims 1 to 6, characterized in that: The step of using the LLM to generate an answer to the question input according to the comprehensive feature vector of the query includes: Inputting the queried comprehensive feature vector into the LLM to obtain the feature vector output by the LLM; According to the mode set by the user for the answer and the feature vector output by the LLM, an answer of the corresponding mode is generated.
8. The question-answering method based on a multimodal industrial big model according to claim 7 is characterized in that: When the modality of the answer is an image, the generation model of the answer includes a diffusion model, a DALL-E series model and a VQ-VAE model; In the case where the modality of the answer is a video, the generation model of the answer includes a Zeroscope model, a Gen-2 model, and a Sora model; When the modality of the answer is audio, the generation models of the answer include AudioLDM model, SpeechT5 series model and VALL-E model.
9. A question-answering device based on a multimodal industrial large model, characterized in that: include: An extraction module is used to collect data of various modes from an industrial environment, and use feature extraction algorithms corresponding to various modes to perform feature extraction on the data of various modes to obtain feature vectors of the various modes; An alignment module, used to align the feature vectors of the various modes using an alignment algorithm, splice the aligned feature vectors of the various modes corresponding to the same scene in the industrial environment at the same time, and construct a knowledge base according to the comprehensive feature vectors obtained after splicing; A questioning module, configured to extract features from a question input in at least one mode by a user to obtain a feature vector of the question input, align and concatenate the feature vectors of the question input, and obtain a query feature vector; A generation module is used to calculate the similarity between the query feature vector and the comprehensive feature vector in the knowledge base, query the comprehensive feature vector related to the query feature vector from the knowledge base according to the similarity, and use LLM to generate an answer to the question input according to the queried comprehensive feature vector.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the question-answering method based on the multimodal industrial large model as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Government affair service field multi-strategy fusion dialogue method based on knowledge graph
CN116628172A
Video retrieval method and device based on multiple modes, electronic equipment and storage medium
CN116628263A
Text generation method and device, equipment and storage medium
CN117473954A
Multi-modal perception fusion emotion recognition method and robot emotion interaction method
CN117994622A
Video tag processing method and device, computer equipment and storage medium
CN118093936A
Cited By
Virtual reality intelligent education method and system based on industrial multi-mode large model driving
CN119600397A
Virtual reality intelligent education method and system based on industrial multi-modal large model driving
CN119600397B
An AI interactive question-answering method for migratory bird knowledge based on personalized customization
CN119760159A
Dynamic scene recognition and AR information superposition method based on multi-modal large model
CN120408282A
Decision-making auxiliary method and device based on large model
CN120654795A
