An environment experiment intelligent question answering method and system based on a large model

By constructing an environment-specific corpus and a three-dimensional knowledge graph, combined with dual BERT variational autoencoders and real-time data acquisition, the problems of poor professional adaptability and knowledge base lag in environmental experiments were solved, achieving high-accuracy question answering and full closed-loop management, reducing experimental risks and improving troubleshooting efficiency.

CN123180146APending Publication Date: 2026-11-27NORTHWEST UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611159866.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing general-purpose large models have poor professional adaptability in the field of environmental experiments, low question-answering accuracy, lack of real-time early warning and linkage capabilities, and lagging knowledge base updates, making them unable to adapt to the frequent updates of national standards in the environmental field.

Method used

We construct an environment-specific corpus and a three-dimensional knowledge graph, employ dual BERT variational autoencoders for deep pre-training, combine a two-layer similarity calculation method of semantic similarity and entity matching, and integrate real-time data acquisition and intelligent early warning to design a national standard-compliant automatic crawling and dynamic knowledge base update mechanism.

Benefits of technology

It significantly improved the accuracy of environmental professional Q&A, realized a closed-loop management of anomaly identification and early warning, reduced experimental safety risks, and improved the efficiency of fault diagnosis and the timeliness of the knowledge base.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
Patent Text Reader

Abstract

The application discloses an environment experiment intelligent question and answer method and system based on a large model. The method comprises the following steps: collecting environment professional corpus, constructing a variational autoencoder framework based on a double-BERT module and performing unsupervised training to obtain a similarity calculation model; constructing a three-dimensional knowledge graph containing principles, operations, cases and national standards; receiving a target text input by a user, adopting a double-layer weighted calculation mode of "semantic similarity + entity matching degree" to obtain a comprehensive similarity, and generating a multi-dimensional professional answer accordingly; collecting experiment scene data in real time through a sensor to realize abnormality identification, early warning pushing and linkage guidance; periodically crawling the latest specifications and updating the knowledge graph and an incremental fine-tuning model. The application significantly improves the accuracy of environment professional question and answer, realizes intelligent closed loop of experiment safety management, effectively reduces experiment risks, and guarantees the timeliness of the knowledge base.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the interdisciplinary field of artificial intelligence, chemistry, and environmental science. Specifically, it relates to an intelligent question-and-answer method and system for environmental experiments based on a large model, which provides professional, accurate, and real-time intelligent question-and-answer and safety management for environmental experimental processes. Background Technology

[0002] With the rapid development of artificial intelligence technology, especially Large Language Modeling (LLM) and Retrieval Augmentation (RAG) technologies, the application potential of intelligent question-answering systems in vertical fields is becoming increasingly prominent. In the field of environmental chemistry, laboratory personnel face problems such as fragmented information, high professional thresholds, and low efficiency of real-time interactive queries when conducting experimental operations, compliance reviews, diagnosing anomalies, and interpreting data.

[0003] Existing technologies include some intelligent question-answering solutions geared towards specific domains. For example, patent CN120409433B discloses a method for generating experimental reports based on a large model, which incorporates ethical oversight and scientific deduction units into the model. However, it is mainly used for generating static reports and lacks real-time oversight capabilities for dynamic interactive question-answering scenarios. Patent CN120144706B discloses an intelligent question-answering method and system for traditional Chinese medicine course resources, which integrates multi-path retrieval. However, its general large model lacks a deep understanding of environmental domain terminology, resulting in low question-answering accuracy. Furthermore, the updating of knowledge graphs in existing technologies usually relies on manual intervention, which cannot adapt to the frequent updates (typically iterating every 3-6 months) of national standards in the environmental field (such as HJ and GB series), leading to a tendency for guidance to lag behind.

[0004] In summary, existing technologies lack an intelligent closed-loop management solution that can deeply adapt to professional environmental experimental scenarios and integrate dynamic question answering, real-time monitoring, intelligent early warning, and automatic knowledge base updates. Summary of the Invention

[0005] The purpose of this invention is to provide an intelligent question-answering method and system for environmental experiments based on a large model, so as to solve the problems of poor adaptability of general models to environmental specialties, low accuracy of question answering, lack of real-time early warning linkage, and lagging knowledge base updates in the existing technology.

[0006] To achieve the above objectives, this invention provides an intelligent question-answering method for environmental experiments based on a large model, comprising the following steps: S1. Environmental professional corpus preprocessing and model framework construction: Collect environmental professional corpus, prune the pre-trained BERT model, retain its Transformer Encoder structure, and construct a variational autoencoder framework based on the first BERT module and the second BERT module. S2. Model training based on unlabeled professional corpus: The professional corpus of the environment is enhanced by preserving professional terms to obtain enhanced text; the enhanced text is input into the variational autoencoder framework for iterative training until the model converges to obtain the trained similarity calculation model; S3. Construction of a 3D knowledge graph specific to environmental science: Extract core entities from environmental professional corpus, establish specific relationships between entities, and construct a multi-dimensional knowledge graph that includes principles, operations, cases, and national standards; S4. Target Text Reception and Preprocessing: Receives target text related to the environmental experiment input by the user and performs preprocessing. S5. Two-layer similarity calculation linked to knowledge graph: The semantic similarity between the target text and the reference text is calculated using the trained similarity calculation model; the entity matching degree between the target text and the reference text is calculated using the three-dimensional knowledge graph; the semantic similarity and entity matching degree are weighted according to preset weights to obtain a comprehensive similarity. S6. Question and answer result generation and output: If the comprehensive similarity is greater than or equal to the preset threshold, then retrieve all related content from the three-dimensional knowledge graph, generate multi-dimensional professional answers and output them; S7. Real-time data acquisition of experimental scenarios: Real-time acquisition of multi-source data of the environmental experimental scenarios through sensors; S8. Intelligent Early Warning and Linked Q&A: The real-time data is anomaly identified. When an anomaly is identified, an early warning is triggered, and the corresponding solution in the three-dimensional knowledge graph is retrieved simultaneously, and linked guidance content is pushed. S9. Dynamic updates to the knowledge base: Regularly crawl the latest national standards and industry specifications, perform structured processing on them, and update the three-dimensional knowledge graph and incrementally fine-tune the similarity calculation model.

[0007] Furthermore, the enhanced processing for retaining professional terms in step S2 specifically involves: randomly deleting 10-15% of non-professional auxiliary text from the text in the unlabeled professional corpus, while fully retaining core professional terms such as national standard numbers, reagent names, and experimental principles.

[0008] Furthermore, the calculation of entity matching degree in step S5 includes: extracting environmental professional entities from the target text, matching them with reference entities in the three-dimensional knowledge graph, and calculating the entity matching degree based on the number or proportion of successfully matched entities.

[0009] Furthermore, the preset threshold is 95%, the weight of the semantic similarity is 70%, and the weight of the entity matching degree is 30%.

[0010] Furthermore, the anomalies mentioned in step S8 include: improper operation, insufficient consumables, abnormal instrument operation, or safety risks.

[0011] Furthermore, the incremental fine-tuning in step S9 includes: adding newly added standardized structured data to the training corpus and performing a small number of iterations of training on the variational autoencoder framework.

[0012] This invention also provides an intelligent question-answering system for environmental experiments based on a large model, used to implement the method described in any of the above-mentioned embodiments, the system comprising: The model building and training module is used to perform steps S1 to S2; The knowledge graph construction module is used to execute step S3; The question-and-answer interaction module is used to execute steps S4 to S6; The data acquisition and early warning module is used to execute steps S7 to S8; The knowledge base update module is used to execute step S9.

[0013] Compared with the prior art, the present invention has the following beneficial effects: 1. By constructing an environment-specific corpus and a three-dimensional knowledge graph, and using dual BERT variational autoencoders for deep pre-training, combined with a two-layer similarity calculation method of "semantic similarity + entity matching degree", the accuracy of environment-specific question answering is significantly improved (up to 95% or more). 2. By using the "corpus augmentation method that preserves professional terminology" for unsupervised training, the dependence on high-cost professionally labeled data is significantly reduced, thus lowering the model training cost; 3. By deeply integrating intelligent question answering with real-time data from experimental scenarios, a closed-loop management system of "anomaly identification - early warning push - intelligent guidance" was achieved, effectively reducing experimental safety risks and improving troubleshooting efficiency; 4. An automatic crawling mechanism for national standards and dynamic updating of the knowledge base was designed to ensure the timeliness and standard compliance of the professional knowledge base. Attached Figure Description

[0014] Figure 1 This is an overall flowchart of the intelligent question-answering method for environmental experiments based on a large model in this embodiment of the invention. Detailed Implementation

[0015] The technical solution of the present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only for explaining the present invention and are not intended to limit the present invention.

[0016] Figure 1A flowchart of an intelligent question-answering method for environmental experiments based on a large model, provided as an embodiment of the present invention, is included in the following steps: Step S1: Environmental professional corpus preprocessing and model framework construction

[0017] We collected national standards (HJ / GB series) for water quality, air quality, soil quality, and noise detection, practical cases of water quality detection at typical cross-sections, instrument and equipment troubleshooting manuals, safety data sheets (MSDS), and experimental teaching materials to form an unannotated professional corpus. We pruned the open-source pre-trained BERT model, removing downstream task layers and retaining the 12-layer Transformer Encoder structure as a professional sentence vector encoder. We then used the pre-processed BERT model as the first BERT module (encoder) and the second BERT module (decoder), respectively, to construct a variational autoencoder framework, and connected a Softmax function module at the end of the framework.

[0018] Step S2: Model training based on unlabeled professional corpus

[0019] For text in an unlabeled environmental science corpus, a corpus augmentation process was performed to preserve technical terminology: 10-15% of non-technical auxiliary text was randomly deleted, while core technical terms such as national standard numbers, reagent names, and experimental principles were fully preserved to obtain the augmented first text. This first text was input into a variational autoencoder framework. The first BERT module performed feature encoding on the first text to obtain environmental science sentence vectors; the second BERT module decoded and restored these sentence vectors to obtain the text's latent state representation; and the Softmax function module generated the restored text based on the latent state. Using the semantic consistency between the original unlabeled environmental science corpus and the restored text as the training objective, the framework was trained when the semantic similarity was ≥95%, resulting in the trained variational autoencoder framework, i.e., the similarity calculation model.

[0020] Step S3: Construction of a 3D Knowledge Graph Dedicated to Environmental Science

[0021] Eight core entities were extracted from an environmental science corpus, including: national standards and specifications, experimental principles, operating procedures, instruments and equipment, reagents and consumables, failure cases, safety regulations, and data processing methods. Exclusive relationships were established between these entities; for example, a strong relationship was established between "COD determination experiment" and "HJ 828-2017 national standard," "potassium dichromate reagent," "digestion equipment," and "titration malfunction." These entities and relationships were stored in a graph database to construct a three-dimensional knowledge graph of "principle-operation-case-national standard."

[0022] Step S4: Target text reception and preprocessing

[0023] The system receives user-input environmental experiment-related target text, such as "How to determine chloride ion interference in COD water samples?". The target text undergoes preprocessing including noise reduction, word segmentation, and technical terminology normalization.

[0024] Step S5: Two-layer similarity calculation based on knowledge graph linkage

[0025] The first layer calculates the cosine similarity between the target sentence vector and the reference sentence vector using a trained similarity calculation model, yielding a semantic similarity value. The second layer uses a knowledge graph matching layer to extract environmental entities (such as "COD," "chloride ions," and "HJ 828-2017") from the target text and matches them with reference entities in a 3D knowledge graph. The entity matching degree is calculated based on the proportion of successfully matched entities to the total number of entities. Finally, a weighted average is calculated using 70% for semantic similarity and 30% for entity matching degree to obtain the comprehensive similarity score.

[0026] Step S6: Question and Answer Results Generation and Output

[0027] If the overall similarity value is ≥95%, the system retrieves all related content corresponding to the reference text from the 3D knowledge graph, generating a multi-dimensional professional answer such as "National Standard Basis: HJ 828-2017, Principle: ..., Operation Steps: ..., Troubleshooting: ..., Safety Specifications: ...", and outputs it through the interactive interface. If the overall similarity value is <95%, the system outputs the top 3 most similar references and prompts the user to provide additional details about the question.

[0028] Step S7: Real-time data acquisition for the experimental scenario

[0029] Through sensors, image acquisition devices, and instrument communication interfaces, multi-source data of the experimental environment are collected in real time, including: experimental instrument operating parameters, reagent and consumable balances, user operation behavior images, and experimental environment safety parameters.

[0030] Step S8: Intelligent Early Warning and Linked Q&A

[0031] The system identifies anomalies in the collected real-time data. When violations, insufficient consumables, abnormal instrument operation, or safety risks are detected, an audible and visual warning is automatically triggered. Simultaneously, solutions to the corresponding anomalies are retrieved from the 3D knowledge graph, and question-and-answer style guidance content including "Cause of Anomaly - Troubleshooting Steps - Handling Method - Safety Standards" is automatically pushed.

[0032] Step S9: Dynamically update the knowledge base

[0033] The system regularly crawls the latest national standards and industry specifications released by the Ministry of Ecology and Environment, automatically performs structured processing on the newly added specifications, extracts entities and relationships, and updates the 3D knowledge graph. Simultaneously, the newly added specification texts are added to the training corpus, and the variational autoencoder framework is incrementally fine-tuned in a few rounds to ensure that the knowledge base is updated synchronously with national standards and specifications. Example 1:

[0034] This invention presents a full-process intelligent question-answering and management method for environmental practical experiments. The overall technical solution consists of two main stages: the first stage involves the construction and training of a dedicated similarity calculation model, aiming to address the problems of poor adaptability of general models to environmental specialties and the scarcity of labeled data; the second stage is the real-time execution stage of intelligent question-answering and management for environmental experiments, achieving closed-loop management that links professional question-answering with the experimental scenario. The specific steps of the entire process are as follows: Phase 1: Construction and Training of the Specific Similarity Calculation Model Step S1: Preprocessing of environmental corpus and construction of variational autoencoder framework. This involves preprocessing and framework adaptation of environmental domain-specific corpora to improve the adaptability of the general model to environmental terminology.

[0035] Professional corpus collection: Collect national standards (HJ / GB series) for water quality / air / soil / noise detection, typical cross-section water quality detection practice cases, instrument and equipment troubleshooting manuals, safety data sheets (MSDS), and experimental teaching handouts to form an unannotated professional corpus (with a cumulative text volume of over 5 million words). Pre-trained BERT model: The open-source pre-trained BERT model is pruned, the downstream task layers are removed, and the 12-layer Transformer Encoder structure is retained as a professional sentence vector encoder; Variational autoencoder framework construction: The preprocessed BERT model is used as the first BERT module (encoder) and the second BERT module (decoder) to construct the variational autoencoder framework; the Softmax function module is connected to the end of the framework; the input environmental professional corpus is encoded into sentence vectors by the first BERT module and decoded by the second BERT module to obtain the hidden state.

[0036] Step S2: Framework training based on unlabeled professional corpus. A corpus augmentation training method that preserves professional terminology is employed to address the pain points of scarce professional data and high annotation costs.

[0037] Corpus augmentation: For text in an unlabeled professional corpus, 10%-15% of non-professional auxiliary text is randomly deleted, while core professional terms such as national standard numbers, reagent names, and experimental principles are fully preserved to obtain augmented professional text (first text), which ensures information integrity and improves model robustness. Iterative training: The enhanced first text is input into the variational autoencoder framework. The first BERT module encodes the first text to obtain the context-specific sentence vector. The second BERT module decodes and restores the sentence vector to obtain the hidden state representation of the text. The Softmax function module generates the restored text based on the hidden state (consistent with the "variational autoencoder framework construction" in step S1). Convergence judgment: Taking the semantic consistency between the original unlabeled environmental corpus and the restored text as the training objective, when the semantic similarity between the two is ≥95%, the framework training is completed, and the trained variational autoencoder framework is obtained; the professional corpus is imported cyclically for iterative training until the model converges.

[0038] Step S3: Construction of a dedicated 3D knowledge graph for environmental science. By constructing a dedicated 3D knowledge graph, the entire chain of "principle-operation-case study-national standard" is linked, providing support for two-layer similarity calculation and multi-dimensional answer generation.

[0039] Entity extraction: Eight core entities were extracted from the environmental science corpus, including: national standards and specifications, experimental principles, operating procedures, instruments and equipment, reagents and consumables, failure cases, safety regulations, and data processing methods. Semantic relation construction: Establish exclusive associations between entities, for example, establish a strong association between "COD determination experiment" and "HJ 828-2017 national standard", "potassium dichromate reagent", "digestion equipment" and "titration abnormality failure"; Graph storage: Entities and relationships are stored in a graph database to construct a three-dimensional knowledge graph of "principles-operations-cases-national standards".

[0040] Phase Two: Real-time Execution Phase of Intelligent Question Answering and Management for Environmental Experiments Step S4: Target Text Reception and Preprocessing. Receive user-input environmental experiment-related target text (text / speech-to-text), including: experimental operation problems, instrument malfunction problems, reagent usage problems, national standard and specification problems, safety operation problems, and data processing problems; perform noise reduction, word segmentation, and technical terminology normalization preprocessing on the target text.

[0041] Step S5: Two-layer similarity calculation linked to the knowledge graph. A two-layer similarity calculation method combining semantic similarity and entity matching is employed to significantly improve the accuracy of environmental-related question answering.

[0042] First-level semantic similarity calculation: Through the trained similarity calculation module, the cosine similarity between the target sentence vector and each sentence vector in the reference sentence vector set is calculated to obtain the semantic similarity value; The second layer of entity matching degree calculation: Through the knowledge graph matching layer, environmental professional entities in the target text are extracted and matched with reference entities in the three-dimensional knowledge graph to obtain the entity matching degree value; Comprehensive similarity calculation: The comprehensive similarity value between the target text and the reference text is calculated by weighting semantic similarity (70%) and entity matching (30%).

[0043] Step S6: Question and Answer Results Generation and Output High similarity direct output: If the comprehensive similarity value is ≥ the preset threshold (95%), the full set of related content corresponding to the reference text is retrieved from the three-dimensional knowledge graph to generate a multi-dimensional professional answer of "national standard basis - experimental principle - operation steps - troubleshooting - safety specifications - reference cases", and output through the interactive terminal; Low similarity interactive guidance: If the overall similarity value is less than 95%, the top 3 similarity reference content will be output, and the user will be prompted to provide more details about the question.

[0044] Step S7: Real-time Data Acquisition of Experimental Scenarios. Breaking through the limitations of single-text question-and-answer functionality, this step achieves linkage between the question-and-answer function and real-time data from the experimental environment. Through sensors, image acquisition devices, and instrument communication interfaces, multi-source data from the experimental environment is acquired in real time, including: experimental instrument operating parameters, reagent and consumable balances, user operation behavior images, and experimental environment safety parameters.

[0045] Step S8: Intelligent Early Warning and Linked Q&A. Construct a closed-loop system of "anomaly identification - early warning push - intelligent guidance".

[0046] Anomaly Detection: The system identifies anomalies in the collected real-time data and automatically triggers audible and visual warnings when it detects violations, insufficient consumables, abnormal instrument operation, or safety risks. Linked guidance: Synchronously retrieves solutions to corresponding anomalies from the 3D knowledge graph and automatically pushes question-and-answer style guidance content containing "anomaly cause - troubleshooting steps - handling methods - safety specifications".

[0047] Step S9: Dynamically update the knowledge base. Adapt to the frequent updates to national environmental science standards to ensure the timeliness of the specifications.

[0048] The system regularly crawls the latest national standards and industry specifications released by the Ministry of Ecology and Environment, automatically performs structured processing on the newly added specifications, extracts entities and relationships, updates the 3D knowledge graph and model training corpus, and incrementally fine-tunes the model to ensure that the knowledge base is updated in sync with national standards and specifications.

[0049] Example 2: Intelligent Q&A and Operation Guide for Water COD Measurement Experiment

[0050] This embodiment is based on HJ 828-2017 "Determination of Chemical Oxygen Demand in Water - Dichromate Method", and the specific implementation steps are as follows: Preliminary preparations: The training of the environment-specific model has been completed, and the full text of the HJ 828-2017 national standard, the complete process of COD measurement experiments, fault cases, and safety specifications have been fully entered into the knowledge graph; Question input: Students input the target text via the interactive terminal: "What is the role of adding mercuric sulfate in COD determination? What are the effects of adding too much or too little?" Preprocessing and encoding: The target text is preprocessed by denoising, word segmentation and normalization of professional terms, and core professional entities are extracted: COD measurement, mercuric sulfate, HJ 828-2017; The preprocessed text is input into the trained variational autoencoder framework, and the feature encoding is completed through the first BERT module to obtain the target sentence vector; Two-layer similarity calculation: The semantic similarity between the target text and the corresponding reference text is calculated to be 98.2% through the similarity calculation module; the entity of the target text is extracted and matched with the entity of the reference text through the knowledge graph matching layer, and the entity matching degree is 100%; the overall similarity is calculated by weighting the semantic similarity by 70% and the entity matching degree by 30%, and the preset threshold of ≥95% is obtained. Multi-dimensional answer output: Due to a comprehensive similarity of ≥95%, the system automatically retrieves all related content corresponding to the reference text from the three-dimensional knowledge graph, generates and outputs a multi-dimensional professional answer, specifically including: (1) National standard basis: Section 7.1 "Interference and elimination" clause of HJ 828-2017 "Determination of Chemical Oxygen Demand in Water by Dichromate Method"; (2) Experimental principle: Mercuric sulfate is used as a masking agent to complex chloride ions (Cl⁻) in the water sample, thereby eliminating its positive interference with the determination of potassium dichromate oxidation; (3) Operation steps: According to the national standard, take a water sample into an Erlenmeyer flask, add mercuric sulfate solution (according to the ratio), shake well, and then add potassium dichromate standard solution and silver sulfate-sulfuric acid reagent; (4) Standard dosage: According to national standards, when the chloride ion content in a water sample exceeds 1000 mg / L, it should be diluted first; for undiluted water samples, the mass ratio of HgSO4 to Cl⁻ is usually set at 10:1, that is, 0.4g of mercuric sulfate can mask 40mg of chloride ions; (5) Effects of excess / insufficiency: Insufficient addition will result in incomplete masking of chloride ions, leading to increased consumption of potassium dichromate and higher COD measurement results; excessive addition may cause mercury ions to complex with some organic matter, inhibiting their oxidation and resulting in lower measurement results. At the same time, excessive use of highly toxic reagents increases the risk of waste liquid treatment. (6) Safety operating procedures: Mercuric sulfate is a highly toxic chemical. Operations must be carried out in a fume hood, and gas masks and acid and alkali resistant gloves must be worn. (7) Waste liquid treatment requirements: Mercury-containing waste liquid must be collected separately in a special waste liquid tank and must not be directly discharged into the sewer. It must be handed over to a unit with hazardous waste treatment qualifications for unified recycling and treatment.

[0051] Technical benefits: This embodiment ensures a professional question-and-answer accuracy rate of ≥95% through dual-layer similarity calculation, which is 20 percentage points higher than general intelligent question-and-answer methods; the output multi-dimensional answers are directly linked to national standards and safety regulations, reducing teachers' repetitive question-and-answer work by 80%.

[0052] Example 3: Intelligent Diagnosis of Colorimetric Abnormalities and Integrated Management of Consumables in Total Phosphorus Determination Experiment in Water Quality

[0053] This embodiment is based on GB 11893-89 "Determination of Total Phosphorus in Water - Ammonium Molybdate Spectrophotometric Method", and the specific implementation steps are as follows: Preliminary preparations: The knowledge graph has already included the national standard for total phosphorus determination, full-scenario fault cases of colorimetric abnormalities, and the method for drawing standard curves; Question input: Student inputs target text: "The solution color is very light and the absorbance is low after colorimetric analysis for total phosphorus determination. What is the reason? How to solve it?" Preprocessing and encoding: The target text is preprocessed to extract core entities: total phosphorus determination, colorimetric abnormalities, and low absorbance; feature encoding is completed through dual BERT modules to obtain the target sentence vector; Similarity matching: After preprocessing and double BERT encoding, semantic similarity and entity matching degree are calculated, with a comprehensive similarity of 97.5%, which is ≥ the preset threshold of 95%. Diagnostic results output: The system automatically retrieves all related content from the knowledge graph and outputs hierarchical fault diagnosis content: (1) Five types of core failure causes: ① Ascorbic acid solution deterioration / expiration; ② Ammonium molybdate solution preparation error; ③ Color development temperature not meeting national standard requirements; ④ Insufficient color development time; ⑤ Interfering substances (such as arsenic and sulfides) in the water sample. (2) Step-by-step troubleshooting process: First, check whether the ascorbic acid reagent has turned yellow (it should normally be colorless or pale yellow). If it has changed color, it means that it has deteriorated. Second, check whether the temperature of the color development environment meets the requirements. Third, confirm whether the standing time after adding the reagent is sufficient. Finally, verify whether the water sample has undergone the corresponding pretreatment to eliminate interference. (3) Corresponding solutions: For the problem of reagent deterioration, prepare ascorbic acid solution again; for the problem of color development conditions, adjust the water bath temperature and extend the color development time; (4) Standard color development conditions specified by national standards: According to GB 11893-89, if the color development temperature is at room temperature (a water bath is required if it is below 15℃), the color development time should be 15 minutes; if it is around 30℃, the color development time can be shortened, but the absorbance must be kept stable. (5) Reagent shelf life requirements: Ascorbic acid solution is usually stored for 30 days under light-proof and refrigerated conditions. It is invalid if it turns yellow. Ammonium molybdate solution is usually stored for half a year in polyethylene bottles.

[0054] Consumables Management: While outputting diagnostic results, the system performs real-time data acquisition of the experimental scenario in step S7 through the sensor and instrument communication interface. It detects that the RFID tag on the ascorbic acid reagent bottle has been open for more than 30 days, and the temperature control record in the reagent library is abnormal. At this time, the intelligent early warning and linked Q&A in step S8 are triggered: an audible and visual warning is automatically triggered, and the corresponding solution to the abnormality is retrieved from the three-dimensional knowledge graph. Question-and-answer style guidance content is pushed, including "Cause of abnormality (ascorbic acid deteriorated due to over-storage) - Troubleshooting steps - Handling method (re-preparation of ascorbic acid) - Safety specifications", and the standard operating procedure (SOP) for reagent preparation is associated.

[0055] Technical benefits: This embodiment realizes a closed-loop system of "anomaly identification - early warning push - intelligent guidance", which improves the efficiency of instrument fault diagnosis by 70%, increases the inventory turnover rate of consumables by 40%, and avoids the distortion of experimental data caused by expired reagents.

[0056] Example 4: Intelligent fault diagnosis and incremental model fine-tuning for heavy metal determination in atomic absorption spectrometer

[0057] This embodiment is based on GB 7475-87 "Determination of Copper, Zinc, Lead and Cadmium in Water - Atomic Absorption Spectrophotometry", and the specific implementation steps are as follows: Preliminary preparations: The knowledge graph has already included the atomic absorption spectrometer operation specifications, the full-scenario troubleshooting manual, and the national standard for heavy metal determination; Real-time data acquisition: Through the instrument communication interface, the spectrometer's operating parameters such as light source energy, lamp current, nebulizer pressure, and absorbance stability are acquired in real time. Anomaly Identification and Early Warning: When the system detects that the energy fluctuation of the instrument's light source exceeds ±10%, the baseline drift is severe, and it exceeds the standard range, it automatically triggers an audible and visual anomaly warning. Linked Q&A Guidance: The system automatically retrieves corresponding content from the 3D knowledge graph and pushes Q&A-based troubleshooting solutions, including: (1) Location of abnormal problems: abnormal fluctuations in light source energy and unstable baseline; (2) Four possible causes: ① Aging of the hollow cathode lamp or poor contact of the lamp holder; ② Excessive slit width or improper setting; ③ Blockage of the atomization system leading to unstable flame state; ④ Unstable power supply voltage; (3) Step-by-step troubleshooting process: First, check whether the lamp current setting meets the recommended value for the element lamp; second, re-plug the hollow cathode lamp and rotate it to lock it; third, check whether the air compressor pressure and atomizer are unobstructed; finally, check whether the slit width is correct. (4) Standardized handling method: Adjust the lamp current to the recommended range (e.g., the recommended current for Cu element lamps is 5-7mA); wipe the lamp feet with degreased cotton and reinstall; use a fine wire to unclog the atomizer capillary tube; adjust the slit width (e.g., select the 0.2nm or 0.5nm setting); (5) Instrument maintenance safety specifications: Power must be turned off before maintenance, and the lamp body and burner head must be cooled down. Wear anti-radiation goggles and heat-insulating gloves during operation. Restart ignition after the waste liquid is drained.

[0058] Knowledge base iteration: After the user completes the troubleshooting, the reported cause of the fault is "micro-blockage of the atomizer capillary" and has been cleared and resolved. The system executes step S9, automatically entering the case and feature parameters into the knowledge base, extracting entities and relationships to update the 3D knowledge graph, and incrementally fine-tuning the variational autoencoder framework to optimize the accuracy of subsequent fault diagnosis.

[0059] Technical benefits: This embodiment realizes a closed loop of linkage between the question-and-answer function and real-time data of the environmental experimental scenario. The automatic identification and early warning of abnormal instrument operation improves the efficiency of instrument fault diagnosis by 70% and reduces the risk of safety accidents by 90%.

[0060] Example 5: Intelligent Troubleshooting and Guidance for Ammonia Nitrogen Measurement Pretreatment Anomalies

[0061] This embodiment is based on HJ 535-2009 "Determination of Ammonia Nitrogen in Water - Nessler's Reagent Spectrophotometric Method", and the specific implementation steps are as follows: Preliminary preparations: The knowledge graph has already included the national standard HJ 535-2009, the complete process of ammonia nitrogen determination, and the pretreatment (flocculation and sedimentation / distillation) specifications; Problem received: Student input target text: "When determining ammonia nitrogen, the water sample becomes turbid after adding Nessler's reagent, and the absorbance cannot be read. How to solve this problem?" Preprocessing and encoding: Extracting core entities: ammonia nitrogen determination, Nessler's reagent, water sample turbidity, HJ 535-2009; Feature encoding is completed through dual BERT modules to obtain the target sentence vector; Two-layer similarity calculation: The overall similarity is calculated to be 96.8%, which is ≥ the preset threshold of 95%; Multi-dimensional answer output: The system retrieves relevant content from a three-dimensional knowledge graph to generate multi-dimensional professional answers. (1) National standard basis: Section 7.1 "Sample pretreatment" and Section 7.2 "Interference and elimination" of HJ 535-2009; (2) Causes of abnormality: Turbidity of water sample is usually due to the presence of metal ions such as calcium and magnesium in the water, which form hydroxide precipitates in the strongly alkaline environment of Nessler's reagent; or the high residual chlorine in the water sample interferes with color development. (3) Step-by-step investigation process: First, check whether the water sample has undergone flocculation and sedimentation pretreatment; second, check whether the pH of the water sample has been adjusted to around neutral before adding Nessler's reagent; finally, test whether the water sample contains residual chlorine. (4) Standardized treatment method: According to national standards, for water samples with high calcium and magnesium ion content, zinc sulfate and sodium hydroxide should be used for flocculation and precipitation, and the supernatant should be taken for testing; if residual chlorine is present, an appropriate amount of sodium thiosulfate solution should be added to eliminate it; (5) Reagent preparation specifications: Nessler's reagent must be prepared using the mercuric chloride-potassium iodide-sodium hydroxide method. The amount of mercuric chloride added must be strictly controlled during preparation until a trace precipitate is formed and does not dissolve.

[0062] Technical benefits: By accurately matching the national standard preprocessing clauses, this embodiment effectively avoids experimental failures caused by improper operation, increasing the success rate of student experiments by more than 50%.

[0063] Example 6: Intelligent Diagnosis of Ambient Air Sulfur Dioxide Sampling and Colorimetric Abnormalities

[0064] This embodiment is based on HJ 482-2009 "Determination of Sulfur Dioxide in Ambient Air - Formaldehyde Absorption-Parrosaniline Spectrophotometric Method", and the specific implementation steps are as follows: Question received: User input target text: "When sampling atmospheric sulfur dioxide, the absorbance of the blank solution is too high. What is the reason for the blank value exceeding the limit?" Preprocessing and encoding: Extract core entities: ambient air, sulfur dioxide, high absorbance of blank, HJ 482-2009; encode using a variational autoencoder framework; Two-layer similarity calculation: Overall similarity 97.1%, ≥ preset threshold 95%; Multi-dimensional answer output: The system retrieves all related content from the three-dimensional knowledge graph and outputs a diagnostic solution. (1) National standard basis: Section 11.1 "Blank test" and related clauses of reagent preparation in HJ 482-2009; (2) Causes of abnormality: ① The experimental water is impure and contains reducing impurities; ② The purity of the pararosaniline reagent is insufficient or the preparation process is contaminated; ③ The color development temperature and time are not properly controlled; ④ The absorption liquid is contaminated by impurities on the container wall. (3) Standardized processing methods: Ensure the use of ultrapure water free of oxidants and reducing agents; purify pararosaniline (e.g., by n-butanol extraction); strictly control the color development temperature at 20±5℃ and the color development time; use dedicated glassware and acid wash it. (4) Quality control requirements: At least two blank tests shall be performed for each batch of samples. The blank absorbance shall be controlled below the limit specified in the national standard. Otherwise, the source of contamination shall be found and resampled for analysis.

[0065] Technical benefits: Addressing the pain points of long atmospheric monitoring processes and numerous interfering factors, this embodiment uses knowledge graph-based collaborative investigation to quickly locate problems related to reagent purity and operational procedures, reducing the blank anomaly investigation time from several hours in traditional manual investigation to less than 5 minutes.

[0066] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for intelligent question answering in environmental experiments based on a large model, characterized in that, Includes the following steps: S1. Environmental professional corpus preprocessing and model framework construction: Collect environmental professional corpus, prune the pre-trained BERT model, retain its Transformer Encoder structure, and construct a variational autoencoder framework based on the first BERT module and the second BERT module. S2. Model training based on unlabeled professional corpus: The professional corpus of the environment is enhanced by preserving professional terms to obtain enhanced text; The enhanced text is input into the variational autoencoder framework for iterative training until the model converges, resulting in the trained similarity calculation model. S3. Construction of a 3D knowledge graph specific to environmental science: Extract core entities from environmental professional corpus, establish specific relationships between entities, and construct a multi-dimensional knowledge graph that includes principles, operations, cases, and national standards; S4. Target Text Reception and Preprocessing: Receives target text related to the environmental experiment input by the user and performs preprocessing. S5. Two-layer similarity calculation linked to knowledge graph: The semantic similarity between the target text and the reference text is calculated using the trained similarity calculation model; the entity matching degree between the target text and the reference text is calculated using the three-dimensional knowledge graph; the semantic similarity and entity matching degree are weighted according to preset weights to obtain a comprehensive similarity. S6. Question and answer result generation and output: If the comprehensive similarity is greater than or equal to the preset threshold, then retrieve all related content from the three-dimensional knowledge graph, generate multi-dimensional professional answers and output them; S7. Real-time data acquisition of experimental scenarios: Real-time acquisition of multi-source data of the environmental experimental scenarios through sensors; S8. Intelligent Early Warning and Linked Q&A: The real-time data is anomaly identified. When an anomaly is identified, an early warning is triggered, and the corresponding solution in the three-dimensional knowledge graph is retrieved simultaneously, and linked guidance content is pushed. S9. Dynamic updates to the knowledge base: Regularly crawl the latest national standards and industry specifications, perform structured processing on them, and update the three-dimensional knowledge graph and incrementally fine-tune the similarity calculation model.

2. The intelligent question-answering method for environmental experiments based on a large model according to claim 1, characterized in that, The enhanced processing for retaining technical terms in step S2 specifically involves: randomly deleting some non-technical auxiliary text from the text in the unlabeled professional corpus, while fully retaining the national standard number, reagent name, and core technical terms related to experimental principles.

3. The intelligent question-answering method for environmental experiments based on a large model according to claim 1, characterized in that, The calculation of entity matching degree in step S5 includes: extracting environmental professional entities from the target text, matching them with reference entities in the three-dimensional knowledge graph, and calculating the entity matching degree based on the number or proportion of successfully matched entities.

4. The intelligent question-answering method for environmental experiments based on a large model according to claim 1, characterized in that, The preset threshold is 95%, the weight of semantic similarity is 70%, and the weight of entity matching is 30%.

5. The intelligent question-answering method for environmental experiments based on a large model according to claim 1, characterized in that, The anomalies mentioned in step S8 include: improper operation, insufficient consumables, abnormal instrument operation, or safety risks.

6. The intelligent question-answering method for environmental experiments based on a large model according to claim 1, characterized in that, The incremental fine-tuning in step S9 includes: adding newly added standardized structured data to the training corpus and performing a small number of iterations of training on the variational autoencoder framework.

7. The intelligent question-answering method for environmental experiments based on a large model according to claim 1, characterized in that, The core entities include: national standards and specifications, experimental principles, operating procedures, instruments and equipment, reagents and consumables, failure cases, safety regulations, and data processing methods.

8. A large-scale model-based intelligent question-answering system for environmental experiments, used to implement the method described in any one of claims 1 to 7, characterized in that, include: The model building and training module is used to perform steps S1 to S2; The knowledge graph construction module is used to execute step S3; The question-and-answer interaction module is used to execute steps S4 to S6; The data acquisition and early warning module is used to execute steps S7 to S8; The knowledge base update module is used to execute step S9.

Citation Information

Patent Citations

  • A novel intelligent question-answering method and system for large-scale traditional Chinese medicine course resources

    CN120144706B

  • A method and device for generating experimental reports based on large models

    CN120409433B