A chemical heating furnace intelligent detection and maintenance method based on multi-modal retrieval enhancement
By employing a multimodal retrieval-enhanced intelligent detection method for chemical heating furnaces, a multimodal operation and maintenance knowledge base is constructed, and fault diagnosis reports are generated using a large language model. This solves the problems of low efficiency and high misdiagnosis rate in the maintenance of chemical heating furnaces, and achieves efficient and safe fault diagnosis.
Patent Information
- Application Number
- CN202611387047.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-24
AI Technical Summary
Existing chemical heating furnace maintenance technology relies on manual diagnosis, which is inefficient and has a high misdiagnosis rate. It also lacks the ability to comprehensively process multimodal data, and the general large model has illusion problems in the chemical field, leading to safety hazards.
An intelligent detection method based on multimodal retrieval enhancement is adopted. Through parallel reasoning and fusion coding of large models, a multimodal operation and maintenance knowledge base for chemical heating furnaces is constructed. Fault diagnosis reports are generated by combining multimodal large language models and forced reasoning based on real maintenance manuals.
It improves the accuracy and efficiency of fault diagnosis, reduces the misdiagnosis rate, ensures the safety and scientific nature of maintenance plans, and achieves deep collaborative complementarity of multimodal data.
Smart Images

Figure CN123158404A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent operation and maintenance technology for chemical equipment, and in particular to an intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement. Background Technology
[0002] Chemical heating furnaces are core thermal equipment in petrochemical production processes, and their operating status directly affects the safety and production capacity of the entire unit. Common faults include furnace tube coking, localized overheating, refractory lining detachment, and burner (nozzle) blockage. Currently, the most similar existing maintenance technologies for chemical heating furnaces mainly rely on two methods: (a) Manual inspection and experience-based diagnosis: Maintenance personnel use basic testing instruments such as infrared thermal imagers and temperature guns to collect data, and then rely on their personal experience combined with paper or electronic standard documents such as the "Maintenance and Repair Procedures for Chemical Heating Furnaces" to diagnose faults. (b) Maintenance based on traditional expert systems: Distributed control systems (DCS) are used to collect one-dimensional time-series data such as temperature and pressure. When the data exceeds a set threshold, an alarm is triggered, and the system provides simple maintenance prompts based on preset fixed rules (If-Then rules). Related technologies can be found in the journal "Chemical Automation and Instrumentation" under the title "Design of a Rule-Based Early Warning System for Chemical Furnaces".
[0003] While existing technologies have ensured the operation of chemical heating furnaces to a certain extent, they have the following significant drawbacks: (a) Manual diagnosis is time-consuming, inefficient, and has a high misdiagnosis rate. Chemical heating furnaces have complex structures (including radiant sections, convection sections, combustion systems, etc.), and traditional methods require several hours to check each system individually; moreover, they are highly dependent on the personal experience of maintenance personnel, and traditional maintenance methods have extremely high rates of missed detection and misdiagnosis when faced with complex furnace tube misalignment or hidden lining damage. (b) Lack of comprehensive processing capabilities for multimodal data. Existing expert systems can only process structured text or numerical alarm data from DCS systems, and cannot effectively integrate and analyze multimodal visual data such as thermal imaging maps, equipment piping and instrumentation diagrams (P&ID diagrams), and actual photos of component damage with text data, resulting in fragmented diagnostic information. (c) The direct application of general large models to the chemical industry suffers from a serious "hallucination problem." With the development of artificial intelligence, some companies have tried to directly access general-purpose large language models for question answering. However, due to the lack of real-time and professional knowledge in the vertical field of chemical heating furnaces, large models often fabricate non-existent maintenance procedures or provide incorrect parameter interpretations (i.e., hallucination problems), which poses a major hidden danger in chemical production where safety requirements are extremely high. Summary of the Invention
[0004] The purpose of this invention is to provide an intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement. This method uses large-model parallel reasoning and fusion coding to accurately capture features, introduces retrieval enhancement generation, forces reasoning based on real maintenance manuals, eliminates industrial illusions, and ensures safety. Multimodal parsing and hybrid retrieval align visual semantics to solve the problem of drawing understanding.
[0005] To achieve the above objectives, this invention provides an intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement, comprising the following steps: Step S1: Collect initial data and process the initial data to obtain multiple datasets; the initial data includes equipment manuals, maintenance procedures, technical papers, and historical maintenance reports for chemical heating furnaces. Step S2: Merge and encode each dataset according to the constructed encoding model to obtain the corresponding index format and vector database, forming a multimodal operation and maintenance knowledge base for chemical heating furnaces; Step S3: Obtain the fault information uploaded by the user and perform a hybrid search to obtain multiple similarity scores; Fault information includes fault images and text descriptions. Step S4: Merge the individual similarity scores to obtain a fused similarity score, and determine the relevant knowledge fragments based on the fused similarity score; Step S5: Fill in the relevant knowledge fragments and fault information into the preset prompt word template, input the multimodal large language model, and generate a fault diagnosis report.
[0006] Preferably, the processed dataset includes a full-page image dataset, a text dataset with image meaning interpretation, and a mixed image and text dataset; the specific processing procedure is as follows: Step S11: Extract the PDF files from the initial data, segment them page by page to generate image data, clean the image data, and reconstruct images with a resolution lower than a preset threshold to form a full-page image dataset. Step S12: Input the image data into VLM, extract the text information of the page, and form a text dataset with original document and page number information; Step S13: The main text data is obtained by parsing the PDF file and segmented into text blocks according to the preset character length. At the same time, the illustrations, captions and adjacent text in the PDF file are extracted and the images are cleaned to form a mixed text and image dataset.
[0007] Preferably, image reconstruction for images with resolution below a preset threshold includes: Step S111: Set images with a resolution lower than a preset resolution threshold as images to be processed; Step S112: Input the image to be processed into the super-resolution model and extract shallow image features through shallow convolutional layers; Step S113: Input the shallow image features into the deep reconstruction layer, reconstruct the text, equipment outline and drawing lines through residual dense connections, and output the deep reconstruction feature map; Step S114: Upsample the deep reconstruction feature map to rearrange the pixels of the feature channels to the spatial dimension and increase the image resolution. Step S115: Establish a mapping relationship between the reconstructed images and the original PDF document identifiers and corresponding page numbers, and include them in the whole-page image dataset.
[0008] Preferably, the various datasets are fused and encoded according to the constructed encoding model to obtain the corresponding index format and vector database, including: Step S21: Construct the ColPali multimodal coding model, BGE text coding model, and CLIP coding model respectively; Step S22: Use the Colpali multimodal coding model to encode the image data into visual multivectors, form a page visual index, and store it in the Milvus vector database; Step S23: Use the BGE text encoding model to perform semantic vector encoding on the page text information and text blocks, and then store the Faiss text index into the Faiss vector database. Step S24: Extract mixed image and text data from the mixed image and text dataset, perform cross-coding using the CLIP coding model, and establish a Faiss image and text cross-modal index, which is then stored in the Faiss vector database.
[0009] Preferably, the steps for cross-coding using the CLIP coding model include: Step S241: The CLIP encoding model includes an image encoder and a text encoder; Step S242: The image encoder and text encoder encode the images and corresponding text in the mixed image and text data respectively to obtain visual vectors and semantic vectors; Visual vectors and semantic vectors are mapped to a shared semantic space.
[0010] Preferably, the process of obtaining user-uploaded fault information and performing a hybrid search is as follows: Step S31: Input the fault image and fault text description into VLM to generate an interpretation text for the fault image. Then, concatenate the interpretation text with the fault text description to obtain the fault text. Step S32: Perform image retrieval, import the fault image and fault text into the Colpali multimodal coding model for encoding, calculate the cosine similarity in the Milvus vector database, and obtain the image similarity score. ; Step S33: Perform text retrieval, input the faulty text into the BGE text encoding model to obtain semantic vectors, calculate cosine similarity in the Faiss vector database, and obtain text similarity scores. ; Step S34: Perform multimodal retrieval, using the CLIP coding model to extract the visual vector of the fault image and the semantic vector of the fault text, respectively, and calculate the cosine similarity with the mixed image and text information in the multimodal operation and maintenance knowledge base to obtain the multimodal similarity score. .
[0011] Preferably, the steps for calculating cosine similarity include: Step S321: Input the fault information into each coding model to obtain the corresponding fault vector; Step S322: Determine the candidate vector set in the corresponding database based on different index formats; Step S323: Calculate the cosine similarity between the fault vector and each candidate vector in the candidate vector set in turn.
[0012] Preferably, the steps of obtaining the fusion similarity through weighted average and determining the relevant knowledge fragments based on the fusion similarity include: Step S41: Select the Top-N candidate knowledge fragments for each of the three retrieval paths, obtain the three candidate knowledge fragment sets, and obtain the candidate union; Step S42: Calculate the fusion similarity score corresponding to each candidate knowledge fragment in the candidate union set. The calculation formula is as follows: ; in, These are the image weighting coefficients; These are text weight coefficients; Step S43, Press Sort them from highest to lowest, and select the top K as the final relevant knowledge fragments.
[0013] Preferably, the process of filling relevant knowledge fragments and fault information into a preset prompt word template, inputting it into a multimodal large language model, and generating a fault diagnosis report includes: Step S51: Construct a preset prompt word template, including a role setting field, a reference knowledge field, a user question field, and an answer constraint field; Step S52: Fill in the relevant knowledge fragments and fault text descriptions into the preset prompt word template, and input the fault image and the filled prompt words into the multimodal large language model deployed on the server; Step S53: The multimodal large language model performs logical reasoning based on relevant knowledge fragments and fault images, and outputs a fault diagnosis report; The fault diagnosis report includes the diagnosis results of the fault cause and suggestions for repair steps.
[0014] Preferably, the step of outputting the fault diagnosis report further includes: Step S531: The multimodal large language model analyzes the fault image and fault text description based on relevant knowledge fragments to generate at least one candidate fault cause, and generates corresponding inspection items and maintenance step suggestions for each candidate fault cause. Step S532: In the fault diagnosis report, mark the cause of each candidate fault, inspection items, and the maintenance procedures, historical maintenance records, or relevant knowledge fragments on which the maintenance steps are recommended. Step S533: When the relevant knowledge fragments are insufficient to determine a unique cause of failure, output a set of candidate causes of failure and suggestions for further inspection, and do not generate unverified deterministic failure conclusions; Step S534: Send the formatted fault diagnosis report to the user terminal.
[0015] Therefore, the present invention employs the above-mentioned intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement, which has the following beneficial effects: 1. This invention improves troubleshooting efficiency and accuracy: By replacing traditional manual point-by-point troubleshooting with the powerful parallel reasoning capabilities of a large model, and based on the fusion coding technologies of BGE, Colpali, and CLIP, it can accurately capture the chemical engineering characteristics hidden in the user's text and images, shortening the diagnosis process that takes several hours to the second level, and effectively reducing the misdiagnosis rate.
[0016] 2. This invention overcomes the "illusion" of general large models in the industrial field: by constructing ColPali, BGE and CLIP coded models, every inference of the large model is forced to be based on the real "Equipment Maintenance Manual" retrieved from the local Faiss / Milvus vector database (through engineering restrictions such as "prohibiting fabrication out of thin air"), ensuring the absolute safety and scientific nature of the maintenance plan.
[0017] 3. This invention achieves deep multimodal data collaboration and complementarity: This solution not only enables direct retrieval of plain text through graph semantic analysis design, but also incorporates multimodal hybrid retrieval (fusion similarity formula) to solve the problem that chemical drawings (such as P&ID diagrams and thermal imaging diagrams) are difficult for machines to understand directly. Furthermore, through the same semantic space mapping of the compilation results of dual encoders (text encoder and image encoder), the alignment of visual features and semantic features in the same high-dimensional vector space is achieved.
[0018] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0019] Figure 1 This is an overall flowchart of the intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to the present invention; Figure 2 This is a format diagram of the text dataset for image-based semantic parsing according to an embodiment of the present invention. Detailed Implementation
[0020] The following detailed description of embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0021] Example 1 This embodiment uses a tubular heater in a petrochemical plant as an example. The inspection personnel upload an infrared thermal image of the radiant section of the heater tubes via a user terminal. The image contains multiple longitudinally arranged tubes, with some areas showing higher temperature distribution. Simultaneously, they input a fault description: "The surface temperature of some tubes on the right side of the radiant section of the heater is significantly higher than the surrounding tubes. Please determine the possible causes of the anomaly and retrieve relevant maintenance information." The system first inputs fault images and text descriptions into a large visual language model, identifying the equipment area as the radiation zone, the detection object as the furnace tube, and the abnormal features as localized high temperatures and uneven temperature distribution. The generated image-interpreted text is then combined with the original fault description to form an expanded query. Subsequently, three-way searches are performed: the ColPali multimodal coding model retrieves pages related to localized furnace tube overheating from full-page equipment manuals and maintenance procedures; the BGE text coding model retrieves maintenance knowledge fragments related to furnace tube coking, localized heat transfer anomalies, and burner malfunctions from a text knowledge base; and the CLIP coding model performs cross-modal matching between on-site infrared thermal imaging images and fault descriptions and historical fault images and corresponding maintenance records. The system normalizes and weights the similarity scores of the three search results, selecting the top K knowledge fragments with the highest fused similarity. These knowledge fragments, along with the on-site fault images and fault descriptions, are then input into the multimodal large language model.
[0022] The model performs fault analysis based on the retrieved maintenance knowledge, outputting candidate fault causes such as coking inside the furnace tube, abnormal combustion status, or excessive local heat load. For each candidate cause, it generates corresponding inspection items and maintenance suggestions, while also annotating the maintenance procedures, historical maintenance records, or relevant knowledge fragments on which it is based, thus forming a formatted fault diagnosis report that can be used as a reference by on-site maintenance personnel. When the existing search evidence is insufficient to determine a unique fault cause, the system outputs candidate causes and further inspection suggestions, rather than directly generating an unverified definitive fault conclusion.
[0023] Example 2 Please see Figure 1 A method for intelligent detection and maintenance of chemical heating furnaces based on multimodal retrieval enhancement includes the following steps: Step S1: Collect initial data and process the initial data to obtain multiple datasets; the initial data includes equipment manuals, maintenance procedures, technical papers, and historical maintenance reports for chemical heating furnaces.
[0024] The initial data was obtained through external networks and enterprise databases. External networks consisted of electronic documents related to chemical heating furnaces automatically crawled from publicly available internet resources, including equipment manuals, maintenance procedures, technical papers, operation manuals provided by equipment manufacturers, and industry standards. Enterprise databases consisted of data exported from the petrochemical company's document management system, equipment management system, and maintenance record database, including historical maintenance reports, fault handling orders, and inspection records.
[0025] The initial data includes PDF and Word formats, with PDF being the primary data format. For Word files, they are first converted to PDF using a PDF converter.
[0026] Step S11: Extract the PDF files from the initial data, segment them page by page to generate image data, clean the image data, and reconstruct images with resolution below a preset threshold to form a full-page image dataset.
[0027] This process uses open-source tools such as pdf2image (which calls Poppler at the underlying level) or PyMuPDF to render each page of the PDF as an independent image. The rendering resolution is typically set to 150–300 DPI to ensure that text and drawing details are legible. The image format is usually PNG or JPEG, and the color space is RGB or grayscale.
[0028] Image cleaning involves using OCR (Optical Character Recognition) technology to identify text content on a page and determine whether it is a cover, table of contents, blank page, version page, or transitional page without actual technical content. For example, if the text in the OCR result occupies less than a certain threshold (preferably 10%), or contains a large number of repetitive phrases such as "table of contents" or "copyright," it is considered an invalid page and removed from the dataset. Each image retained after removal is mapped to the original PDF's document identifier (such as filename or unique ID) and page number.
[0029] The image sharpness metrics include Laplacian variance: The image is convolved using the Laplacian operator, and the variance of the pixel values is calculated. A higher variance indicates a sharper image. A pre-set sharpness threshold is used, for example, a Laplacian variance threshold of 100. Images below this threshold are considered blurry and require reconstruction.
[0030] Step S12: Input the image data into VLM, extract the text information of the page, and form a text dataset with original document and page number information.
[0031] Among them, VLM (Visual Language Large Model) selects pre-trained models with image understanding and text generation capabilities, such as Qwen-VL, LLaVA, CogVLM, etc.
[0032] Specifically, domain-specific keyword suggestions are set for documents related to chemical heating furnaces, with the following format: Role Setting: You are a professional expert in chemical heating furnace equipment document analysis, proficient in refining and chemical plant equipment manuals, maintenance procedures, P&ID flowcharts and component drawings.
[0033] Task objective: Please accurately analyze the currently input PDF page images, and completely extract and structure the page text, equipment drawings, symbols and charts, parameter data, and maintenance knowledge.
[0034] Core Extraction Dimensions: The following 10 fields must be accurately extracted: Document ID: The name or ID of the original document to which the current page belongs (e.g., Furnace Maintenance Manual, Furnace Tube Overhaul Procedure, Furnace Tube Overhaul Record); Page Number: The page number of the current page in the document; Equipment Name: The name of the specific chemical equipment involved; Component Name: The name of the specific component of the equipment involved; Drawing Symbols: Identify the legends, symbols, and instrument tag numbers in the diagrams (e.g., thermocouples, furnace tube wall temperature measuring points, etc.); Operating Parameters: The numerical values, limits, pressures, temperatures, and other process parameters recorded in the text and graphics; Abnormal Phenomena: The abnormal behavior of the equipment described in the original text; Cause of Fault: The specific cause of the fault described in the original text; Inspection Items: The specific inspection actions required to troubleshoot the fault described in the original text (e.g., checking the coking thickness of the furnace tube, checking the flame shape of the burner, etc.); Maintenance Measures: The specific maintenance steps or operations for the fault described in the original text (e.g., performing coking operations, adjusting the burner damper, etc.). Each full-page image is input as an image, and the prompt words are input as text, both sent to VLM. VLM performs visual understanding of the page, recognizing text areas, drawings, symbols, tables, etc., and generates structured text output. Please refer to the output data format section for details. Figure 2 ; The VLM output is categorized into "directly extracted from the original text" and "model inferences." VLM can be required to annotate its output with fields or filtered through post-processing rules. The rule is: maintenance knowledge inferred by the model without original text support is not used as a direct basis for subsequent diagnosis, but only as an auxiliary reference; only content explicitly labeled as "originally recorded" is included in the graph semantic analysis text dataset. This can be achieved by requiring the model to output a "based on location" field in the prompt words.
[0035] Step S13: Obtain the main text data by parsing the PDF file and divide it into text blocks according to the preset character length. At the same time, extract the illustrations, captions and adjacent text in the PDF file and perform image cleaning to form a mixed image and text dataset.
[0036] The main text extraction and segmentation process includes: using PDF parsing libraries such as pdfplumber and PyMuPDF to directly extract plain text from PDFs, preserving paragraph structure, and setting the chunk_size (number of characters), for example, 512 characters; to avoid semantic breaks, the overlap (number of overlapping characters) can be set, for example, 50 characters. Long texts are then segmented into multiple text blocks according to this rule, with each text block accompanied by its corresponding PDF file ID and page number range.
[0037] Illustration and caption extraction includes: extracting illustrations by parsing image objects (Image XObject) in the PDF, and simultaneously extracting the captions (the descriptive text below the image) and adjacent text (the main text paragraphs within a certain distance before and after the caption). During illustration extraction, the image's coordinates, size, and the paragraph context within which it belongs are recorded.
[0038] Image cleaning includes: removing images that are too small (e.g., width or height less than 50 pixels, or area less than 2000 square pixels). Removing images without practical meaning, such as decorative dividing lines, company logos, solid color blocks, and repeating icons. Images can be identified by the following: the image has a single color and no texture (low entropy value); the image has no text or the text consists of meaningless repeating characters after OCR; and the image appears on multiple different pages without contextual relevance.
[0039] Ultimately, each image-text pair consists of: an illustration with actual content + a caption + an adjacent text block. This forms a mixed image-text dataset.
[0040] Step S111: Set images with a resolution lower than the preset resolution threshold as images to be processed.
[0041] Step S112: Input the image to be processed into the super-resolution model and extract shallow image features through shallow convolutional layers.
[0042] The super-resolution model can be a deep learning-based model, such as SRCNN, FSRCNN, ESRGAN, Real-ESRGAN, or SwinIR. Real-ESRGAN or SwinIR, fine-tuned on the document image, is preferred. The model input is a low-resolution blurred image. It first passes through a shallow convolutional layer (a 3×3 convolutional layer, outputting 64 feature maps) to extract low-level visual features such as edges, corners, and color variations. The shallow convolutional layer does not change the spatial resolution, only increases the number of channels to facilitate subsequent deeper processing.
[0043] Step S113: Input the shallow image features into the deep reconstruction layer, reconstruct the text, equipment outline and drawing lines through residual dense connections, and output the deep reconstruction feature map.
[0044] The deep reconstruction layers consist of multiple stacked Residual Dense Blocks (RDBs). Each RDB contains multiple convolutional layers and utilizes both dense connections and residual connections. Dense connections: The input to each layer includes the outputs of all preceding layers, enhancing feature reuse and facilitating the recovery of fine text strokes and lines. Residual connections: The input and output of the RDB are added together, stabilizing gradient propagation.
[0045] In the document image of a chemical heating furnace, this layer is responsible for reconstructing: blurred text strokes, making them recognizable by OCR; the outline boundaries of the equipment, such as furnace tubes, elbows, and flanges; and fine lines, symbols, and annotations in the drawings. The output is a deep reconstructed feature map of the same size as the input feature map, but with the number of channels remaining unchanged.
[0046] Step S114: Upsample the deep reconstruction feature map to rearrange the pixels of the feature channels to the spatial dimension and increase the image resolution.
[0047] The upsampling method can be selected as follows: Sub-pixel convolution (PixelShuffle): rearranges pixels in the channel dimension to the spatial dimension, given an input feature map with [number of channels]. The output spatial size is enlarged by a factor of r, and the number of channels becomes C. This method is efficient and preserves details. Transposed Convolution: Enlarges the image by learning an upsampling kernel. Interpolation + Convolution: First, bicubic interpolation is used for enlargement, then convolution is used for thinning. The magnification factor is generally set to 2× or 4×, configured according to the actual degree of blur. After upsampling, a high-resolution reconstructed image is obtained.
[0048] Step S115: Establish a mapping relationship between the reconstructed images and the original PDF document identifiers and corresponding page numbers, and include them in the whole-page image dataset.
[0049] The reconstructed image file name or database record saves: the original PDF file name or unique ID, original page number, reconstruction time, the super-resolution model version used, replaces the original blurred image, and updates the mapping table so that subsequent S12 VLM parsing and S2 ColPali encoding both use the clear reconstructed image.
[0050] Step S2: Merge and encode each dataset according to the constructed encoding model to obtain the corresponding index format and vector database, forming a multimodal operation and maintenance knowledge base for chemical heating furnaces.
[0051] Fusion encoding refers to using different artificial intelligence encoding models to convert image, text, and mixed image-text data into high-dimensional vectors. Index format refers to the way vectors are organized in the database, including vector dimension, similarity measurement method (cosine similarity, inner product, etc.), and index structure (Flat, IVF, HNSW, etc.). Vector database selection: Milvus is used to store multi-vector visual indexes of full-page images; Faiss is used to store text indexes and cross-modal image-text indexes. The final multimodal operation and maintenance knowledge base consists of these three sets of indexes.
[0052] Step S21: Construct the ColPali multimodal coding model, BGE text coding model, and CLIP coding model respectively.
[0053] Step S22: Use the Colpali multimodal coding model to encode the image data into visual multivectors, form a page visual index, and store it in the Milvus vector database.
[0054] The input consists of each image from a full-page image dataset. ColPali encoding works by dividing a page image into multiple patches and generating a vector for each patch. Ultimately, each image corresponds to a set of vectors (multi-vector representation). For example, a page can be encoded into 128 vectors, each with a dimension of 128.
[0055] Storage: Multiple vectors corresponding to each page image are associated with the image's document ID and page number and stored in the Milvus vector database. Collection Schema: page_id (INT64), doc_id (VARCHAR), page_num (INT32), vector (FLOAT_VECTOR, dim=128), with each page_id corresponding to 128 vector records. Index Type: For example, IVF_FLAT or HNSW, using cosine similarity as the metric. This index is the page visual index.
[0056] Step S23: Use the BGE text encoding model to perform semantic vector encoding on the page text information and text blocks, and then store the Faiss text index into the Faiss vector database.
[0057] The text information consists of all text information on the page. Input is semantic parsing text (each line is structured or flat text) and PDF text blocks from S13. Encoding involves concatenating each text line into a natural language description. For example, the semantic parsing text can be converted to: “Equipment Name: Tubular Furnace; Component: Radiant Section Furnace Tube; Cause of Failure: Coking inside the furnace tube…” Input to the BGE model, output a fixed-dimensional semantic vector (1024 dimensions). Storage: Each text line corresponds to a vector, and its source document ID, page number, and original text content are saved. An index is built in Faiss, for example, using IndexFlatIP (inner product index) with L2 normalization to achieve cosine similarity retrieval, or using IndexHNSWFlat for acceleration. This index is the Faiss text index.
[0058] Step S24: Extract mixed image and text data from the mixed image and text dataset, perform cross-coding using the CLIP coding model, and establish a Faiss image and text cross-modal index, which is then stored in the Faiss vector database.
[0059] The input dataset contains each image-text pair (image + caption + adjacent text) from a mixed image-text dataset. Cross-encoding: The image is encoded using the CLIP image encoder, and the corresponding text is encoded using the text encoder. Storage: Image vectors and text vectors are stored simultaneously in Faiss, with each vector associated with the same pair_id. The index structure records whether each vector is of image or text type for easy differentiation during queries. The metric is also cosine similarity. This index is the Faiss image-text cross-modal index.
[0060] Step S241: The CLIP encoding model includes an image encoder and a text encoder; Step S242: The image encoder and text encoder encode the images and corresponding text in the mixed image and text data respectively to obtain visual vectors and semantic vectors; the visual vectors and semantic vectors are mapped to the shared semantic space.
[0061] CLIP (Contrastive Language-Image Pre-training) consists of two independent encoders: an image encoder, which can be either ViT (Vision Transformer) or ResNet. ViT divides the image into fixed-size patches (e.g., 16×16 pixels), flattens each patch, adds positional encoding, and then passes it through multiple Transformer encoding layers to finally output a global feature vector. The text encoder, a Transformer-based text encoder, receives the segmented text sequence and outputs a global sentence vector. The vectors output by both encoders have the same dimension.
[0062] Among them, the shared semantic space is not due to CLIP's use of a large amount of image-text pairing data for comparative learning during the pre-training stage, which makes semantically similar images and texts very close in the vector space (high cosine similarity), while unrelated ones are far apart.
[0063] Step S3: Obtain the fault information uploaded by the user and perform a hybrid search to obtain multiple similarity scores.
[0064] The user interaction terminal can be a mobile app, industrial tablet, or desktop application. Users upload two types of content: fault images (such as infrared thermal images of furnace tubes, photos of damage, and photos of on-site anomalies) and text descriptions of the fault (such as "abnormal surface temperature of furnace tubes in the radiant section"). Hybrid retrieval includes three parallel paths: Image retrieval: based on a full-page image visual index, using the ColPali model to encode and retrieve queries. Text retrieval: based on a text semantic index, using the BGE model to encode and retrieve queries. Multimodal retrieval: based on a cross-modal image-text index, using the CLIP model to encode and retrieve queries. Each retrieval path outputs a batch of knowledge fragments related to the query and their similarity scores.
[0065] Step S31: Input the fault image and fault text description into VLM to generate an interpretation text for the fault image. Concatenate the interpretation text with the fault text description to obtain the fault text.
[0066] The process involves two parts: user-uploaded fault images (e.g., infrared thermal images, on-site photos); and user-inputted fault text descriptions (e.g., "The surface temperature of some furnace tubes on the right side of the radiant section of the heating furnace is significantly higher than that of the surrounding tubes"). Using VLM (which can be configured independently), the input prompt is: "Please describe the equipment area, components, abnormal features, and possible causes in this image." VLM outputs interpreted text, such as: "The image shows the radiant section of the heating furnace with multiple longitudinal furnace tubes. Several tubes on the right side are highlighted in red, indicating that their surface temperature is significantly higher than that of the tubes on the left, and the temperature distribution is uneven." This interpreted text is then concatenated with the original fault text description, separated by a separator, such as "User description: ...; Image interpretation: ...". The concatenated result serves as the fault text for subsequent three-way searches.
[0067] Step S32: Perform image retrieval, import the fault image and fault text into the Colpali multimodal coding model for encoding, calculate the cosine similarity in the Milvus vector database, and obtain the image similarity score. .
[0068] In Milvus's page visual index, the query multi-vector is used to calculate the cosine similarity with the multiple vectors stored on each page. A multi-vector similarity aggregation strategy (such as taking the maximum or average similarity of each page) is adopted to obtain the comprehensive similarity between the page and the query.
[0069] Step S33: Perform text retrieval, input the faulty text into the BGE text encoding model to obtain semantic vectors, calculate cosine similarity in the Faiss vector database, and obtain text similarity scores. .
[0070] Step S34: Perform multimodal retrieval, using the CLIP coding model to extract the visual vector of the fault image and the semantic vector of the fault text, respectively, and calculate the cosine similarity with the mixed image and text information in the multimodal operation and maintenance knowledge base to obtain the multimodal similarity score. .
[0071] The process involves two main steps: image-side encoding and text-side encoding. Image-side encoding involves inputting the faulty image into the CLIP image encoder to obtain the query visual vector. Text-side encoding involves inputting the faulty text (the concatenated complete text) into the CLIP text encoder to obtain the query semantic vector. Retrieval is performed using both visual and semantic vectors within the Faiss image-text cross-modal index. Since the index contains both image and text vectors, the query results may be either historical faulty image vectors or historical text vectors. For each image-text pair (pair_id), the scores from both image and text queries can be combined, for example, by taking the maximum value or a weighted average, as the multimodal similarity score for that image-text pair.
[0072] Step S321: Input the fault information into each coding model to obtain the corresponding fault vector.
[0073] Step S322: Determine the candidate vector set in the corresponding database based on different index formats.
[0074] Milvus page visual index: The ANNS (Approximate Nearest Neighbor) search algorithm is used to pre-select the top-n candidate vectors (e.g., n=1000) that are closest to the query vector from the index, forming a candidate set.
[0075] Faiss Text Index: Also using the Faiss search interface, it returns the top n most similar text vectors as a candidate set.
[0076] Faiss Image-Text Cross-Modal Index: It uses image query vectors and text query vectors to search separately, merges the returned candidate image-text pair sets, removes duplicates, and obtains the candidate set.
[0077] The selection of the candidate set can be based on the built-in acceleration structure of the index, without having to traverse all the data.
[0078] Step S323: Calculate the cosine similarity between the fault vector and each candidate vector in the candidate vector set in turn.
[0079] The cosine similarity formula is as follows: ; in, This represents the cosine similarity between vector A and vector B. For ColPali multi-vector queries, it may be necessary to calculate the cosine similarity for multiple vectors on a single page, and then take the maximum or average value as the page-level similarity. For BGE and CLIP, the cosine similarity between the two vectors is calculated directly. The result is the similarity score of the candidate knowledge fragment on the corresponding retrieval path.
[0080] Step S4: Merge the individual similarity scores to obtain a fused similarity score, and determine the relevant knowledge fragments based on the fused similarity score.
[0081] Step S41: Select the Top-N candidate knowledge fragments for each of the three retrieval paths, obtain the three candidate knowledge fragment sets, and obtain the candidate union; Step S42: Calculate the fusion similarity score corresponding to each candidate knowledge fragment in the candidate union set. The calculation formula is as follows: ; in, These are the image weighting coefficients; These are text weight coefficients; Step S43: Score based on fusion similarity Sort them from highest to lowest, and select the top K as the final relevant knowledge fragments.
[0082] The image search results are sorted in descending order, and the top N results (preferably N=20) are selected as the image candidate set. The text search results are also sorted in descending order, and the top N results are selected as the text candidate set. Finally, the multimodal search results are sorted in descending order, and the top N results are selected as the multimodal candidate set. These three sets are then merged, and duplicate knowledge fragments (same document, same page, or same text block) are removed to obtain the candidate union.
[0083] For each knowledge fragment in the candidate union set, it may appear in one or more search results. If the fragment is not found in a certain search result, the similarity score for that path is recorded as 0 or a small value, but it is usually 0.
[0084] Fusion formula: ; in, These are the image weighting coefficients; These are text weight coefficients; the weights are optimized based on the validation set, with the optimal value being... =0.4, =0.3. Before fusion, each score can be normalized (preferably min-max normalization) so that scores of different dimensions can be weighted.
[0085] Step S5: Fill in the relevant knowledge fragments and fault information into the preset prompt word template, input the multimodal large language model, and generate a fault diagnosis report.
[0086] Step S51: Construct a preset prompt word template, including a role setting field, a reference knowledge field, a user question field, and an answer constraint field.
[0087] The prompt template is as follows: Role Setting Field: Clarifies the model's identity, for example: "You are an experienced chemical furnace maintenance expert, familiar with the structure of tubular furnaces, common fault mechanisms, and maintenance procedures." Reference Knowledge Field: Used to insert relevant knowledge fragments obtained in step S4, providing a basis for the model's answer. A placeholder for {retrieval fragment} is reserved in the template. User Question Field: Used to insert the user's original text description of the fault. A placeholder for {user question} is reserved in the template. Answer Constraint Field: Constrains the model's output, for example: "No fabrication allowed; answers must be based on reference knowledge; if reference knowledge is insufficient, please clearly indicate uncertainty; output format is a structured report." Step S52: Fill in the relevant knowledge fragments and fault text descriptions into the preset prompt word template, and input the fault image and the filled prompt words into the multimodal large language model deployed on the server.
[0088] The process involves filling the {retrieval fragment} with Top-K knowledge fragments in a specific format (listed in segments with source annotations). The user's original text description of the fault is then filled into the {user problem}. The completed text, along with the fault image uploaded by the user, serves as the multimodal input. The multimodal large language model, deployed on a server (e.g., Qwen-VL, GPT-4V, LLaVA), is capable of simultaneously receiving text and image input.
[0089] Step S53: The multimodal large language model performs logical reasoning based on relevant knowledge fragments and fault images to output a fault diagnosis report, which includes fault cause diagnosis results and maintenance step suggestions.
[0090] The model performs inference based on prompt words, combined with image content and reference knowledge fragments: analyzing abnormal features in the fault image; searching for fault patterns matching the abnormal features in the reference knowledge; inferring possible causes of the fault; and extracting corresponding inspection items and maintenance measures from the reference knowledge.
[0091] Output a structured fault diagnosis report, which should include at least: Fault cause diagnosis results: one or more possible causes; Repair procedure suggestions: specific inspection steps and repair operations for each cause; The report may include metadata, such as the report generation time and the knowledge segment number on which it is based.
[0092] Step S531: The multimodal large language model analyzes the fault images and fault text descriptions based on relevant knowledge fragments to generate at least one candidate fault cause, and generates corresponding inspection items and maintenance step suggestions for each candidate fault cause.
[0093] Step S532: In the fault diagnosis report, mark the cause of each candidate fault, inspection items, and the maintenance procedures, historical maintenance records, or relevant knowledge fragments on which the maintenance steps and recommendations are based.
[0094] When the model outputs its results, it will indicate the source knowledge fragment number or document name and page number after each reason or suggestion. For example: "Candidate Reason 1: Coking inside the furnace tube (Based on: Chapter 3 of the maintenance procedure "Coking Operation Instruction Manual for Tubular Heating Furnace", knowledge fragment ID=TX-023)". Step S533: When the relevant knowledge fragments are insufficient to determine a unique cause of failure, output a set of candidate causes of failure and suggestions for further inspection, and do not generate unverified deterministic failure conclusions.
[0095] The model assesses whether the reference knowledge is sufficient to support a unique diagnosis. If there are contradictions between knowledge fragments, missing key evidence (such as missing temperature data or coking thickness), or multiple causes that could explain the phenomenon, a single cause will not be forcibly identified. Instead, the report will list a set of candidate causes for the failure and provide further inspection suggestions, such as: "It is recommended to first perform multi-point measurements of the furnace tube wall temperature and conduct an endoscopic examination of the furnace tube to determine whether coking has occurred." Step S534: Send the formatted fault diagnosis report to the user terminal.
[0096] The generated structured reports are organized in formats such as JSON, Markdown, or PDF. They are sent to user interaction terminals (mobile apps, industrial tablets, etc.) via API or message queue. The terminals render the reports into a readable view for on-site maintenance personnel to view and operate.
[0097] The report may include: a fault overview, a list of candidate causes (with supporting evidence), inspection steps, repair recommendations, matters requiring further confirmation, and the report generation time.
[0098] Therefore, this invention employs an intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement. The specific implementation process is as follows: initial data is collected and processed to obtain multiple datasets; these initial data include equipment manuals, maintenance procedures, technical papers, and historical maintenance reports for the chemical heating furnace; each dataset is fused and encoded according to a constructed encoding model to obtain a corresponding index format and vector database, forming a multimodal operation and maintenance knowledge base for the chemical heating furnace; fault information uploaded by users is obtained, and a hybrid retrieval is performed to obtain multiple similarity scores; the fault information includes fault images and fault text descriptions; the various similarity scores are fused to obtain a fused similarity score, and relevant knowledge fragments are determined based on the fused similarity score; the relevant knowledge fragments and fault information are filled into a preset prompt word template, input into a multimodal large language model, and a fault diagnosis report is generated. This method replaces manual point-by-point troubleshooting with parallel reasoning from a large model, improving troubleshooting efficiency and accuracy. The introduction of a RAG retrieval enhancement generation architecture greatly overcomes the "illusion" of general-purpose large models in the industrial field, achieving deep multimodal data synergy and complementarity.
[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the technical solutions of the present invention, and these modifications or equivalent substitutions cannot cause the modified technical solutions to deviate from the spirit and scope of the technical solutions of the present invention.
Claims
1. A method for intelligent detection and maintenance of chemical heating furnaces based on multimodal retrieval enhancement, characterized in that, Includes the following steps: Step S1: Collect initial data and process the initial data to obtain multiple datasets; the initial data includes equipment manuals, maintenance procedures, technical papers, and historical maintenance reports for chemical heating furnaces. Step S2: Merge and encode each dataset according to the constructed encoding model to obtain the corresponding index format and vector database, forming a multimodal operation and maintenance knowledge base for chemical heating furnaces; Step S3: Obtain the fault information uploaded by the user and perform a hybrid search to obtain multiple similarity scores; Fault information includes fault images and text descriptions. Step S4: Merge the individual similarity scores to obtain a fused similarity score, and determine the relevant knowledge fragments based on the fused similarity score; Step S5: Fill in the relevant knowledge fragments and fault information into the preset prompt word template, input the multimodal large language model, and generate a fault diagnosis report.
2. The intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to claim 1, characterized in that, The datasets obtained in step S1 include full-page image datasets, image-text parsing datasets, and mixed image-text datasets; the specific processing steps are as follows: Step S11: Extract the PDF files from the initial data, segment them page by page to generate image data, clean the image data, and reconstruct images with a resolution lower than a preset threshold to form a full-page image dataset. Step S12: Input the image data into VLM, extract the text information of the page, and form a text dataset with original document and page number information; Step S13: The main text data is obtained by parsing the PDF file and segmented into text blocks according to the preset character length. At the same time, the illustrations, captions and adjacent text in the PDF file are extracted and the images are cleaned to form a mixed text and image dataset.
3. The intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to claim 2, characterized in that, Image reconstruction for images with resolution below a preset threshold includes: Step S111: Set images with a resolution lower than a preset resolution threshold as images to be processed; Step S112: Input the image to be processed into the super-resolution model and extract shallow image features through shallow convolutional layers; Step S113: Input the shallow image features into the deep reconstruction layer, reconstruct the text, equipment outline and drawing lines through residual dense connections, and output the deep reconstruction feature map; Step S114: Upsample the deep reconstruction feature map to rearrange the pixels of the feature channels to the spatial dimension and increase the image resolution. Step S115: Establish a mapping relationship between the reconstructed images and the original PDF document identifiers and corresponding page numbers, and include them in the whole-page image dataset.
4. The intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to claim 2, characterized in that, In step S2, the datasets are fused and encoded according to the constructed encoding model to obtain the corresponding index format and vector database, including: Step S21: Construct the ColPali multimodal coding model, BGE text coding model, and CLIP coding model respectively; Step S22: Use the Colpali multimodal coding model to encode the image data into visual multivectors, form a page visual index, and store it in the Milvus vector database. Step S23: Use the BGE text encoding model to perform semantic vector encoding on the page text information and text blocks, and then store the Faiss text index into the Faiss vector database. Step S24: Extract mixed image and text data from the mixed image and text dataset, perform cross-coding using the CLIP coding model, and establish a Faiss image and text cross-modal index, which is then stored in the Faiss vector database.
5. The intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to claim 4, characterized in that, The steps for cross-coding using the CLIP coding model include: Step S241: The CLIP encoding model includes an image encoder and a text encoder; Step S242: The image encoder and text encoder encode the images and corresponding text in the mixed image and text data respectively to obtain visual vectors and semantic vectors; Visual vectors and semantic vectors are mapped to a shared semantic space.
6. The intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to claim 4, characterized in that, The process of obtaining user-uploaded fault information and performing a hybrid search in step S3 is as follows: Step S31: Input the fault image and fault text description into VLM to generate an interpretation text for the fault image. Then, concatenate the interpretation text with the fault text description to obtain the fault text. Step S32: Perform image retrieval, import the fault image and fault text into the Colpali multimodal coding model for encoding, calculate the cosine similarity in the Milvus vector database, and obtain the image similarity score. ; Step S33: Perform text retrieval, input the faulty text into the BGE text encoding model to obtain semantic vectors, calculate cosine similarity in the Faiss vector database, and obtain text similarity scores. ; Step S34: Perform multimodal retrieval, using the CLIP coding model to extract the visual vector of the fault image and the semantic vector of the fault text, respectively, and calculate the cosine similarity with the mixed image and text information in the multimodal operation and maintenance knowledge base to obtain the multimodal similarity score. .
7. The intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to claim 6, characterized in that, The steps for calculating cosine similarity include: Step S321: Input the fault information into each coding model to obtain the corresponding fault vector; Step S322: Determine the candidate vector set in the corresponding database based on different index formats; Step S323: Calculate the cosine similarity between the fault vector and each candidate vector in the candidate vector set in turn.
8. The intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to claim 7, characterized in that, The steps for obtaining a weighted fusion similarity and determining relevant knowledge fragments based on the fusion similarity include: Step S41: Select the Top-N candidate knowledge fragments for each of the three retrieval paths, obtain the three candidate knowledge fragment sets, and obtain the candidate union; Step S42: Calculate the fusion similarity score corresponding to each candidate knowledge fragment in the candidate union set. The calculation formula is as follows: ; in, These are the image weighting coefficients; These are text weight coefficients; Step S43: Score based on fusion similarity Sort them from highest to lowest, and select the top K as the final relevant knowledge fragments.
9. The intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to claim 1, wherein step S5, filling relevant knowledge fragments and fault information into a preset prompt word template, inputting it into a multimodal large language model, and generating a fault diagnosis report includes: Step S51: Construct a preset prompt word template, including a role setting field, a reference knowledge field, a user question field, and an answer constraint field; Step S52: Fill in the relevant knowledge fragments and fault text descriptions into the preset prompt word template, and input the fault image and the filled prompt words into the multimodal large language model deployed on the server; Step S53: The multimodal large language model performs logical reasoning based on relevant knowledge fragments and fault images, and outputs a fault diagnosis report; The fault diagnosis report includes the diagnosis results of the fault cause and suggestions for repair steps.
10. The intelligent detection and maintenance method for chemical heating furnaces based on multimodal retrieval enhancement according to claim 9, characterized in that, The steps for generating a fault diagnosis report also include: Step S531: The multimodal large language model analyzes the fault images and fault text descriptions based on relevant knowledge fragments to generate at least one candidate fault cause, and generates corresponding inspection items and maintenance step suggestions for each candidate fault cause. Step S532: In the fault diagnosis report, mark the cause of each candidate fault, inspection items, and the maintenance procedures, historical maintenance records, or relevant knowledge fragments on which the maintenance steps and recommendations are based. Step S533: When the relevant knowledge fragments are insufficient to determine a unique cause of failure, output a set of candidate causes of failure and suggestions for further inspection, and do not generate unverified deterministic failure conclusions; Step S534: Send the formatted fault diagnosis report to the user terminal.
