A dangerous chemical risk hidden danger identification and grading management method
By using multimodal data fusion and knowledge graph technology, a safety knowledge graph for hazardous chemicals was constructed, which solved the problem of insufficient identification of cross-process coupling relationships in traditional modeling. This enabled accurate identification and hierarchical control of hazardous chemicals in coal-based syngas processes, improving the accuracy of risk identification and the scientific nature of hierarchical control.
Patent Information
- Application Number
- CN202611299779.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional machine learning modeling cannot effectively capture the cross-process coupling relationship between upstream and downstream processes in coal-based syngas processes, resulting in insufficient accuracy in risk identification and hierarchical control, and difficulty in coping with the surge of multi-source heterogeneous data and the dynamic evolution of hidden danger characteristics.
By employing multimodal data fusion and knowledge graph technology, unstructured text is parsed through spectrum analysis and large language models to construct a knowledge graph for hazardous chemical safety, semantic mapping and data quality assessment are performed, fault tree subgraphs are used for correlation reasoning, composite feature vectors across processes are constructed, and a training strategy enhanced by large language models is adopted for risk identification and hierarchical control.
It enables accurate identification and graded control of hazardous chemical risks in coal-based syngas processes, enhances the ability to perceive cross-process coupling effects, and improves the accuracy of risk identification and the scientific nature of graded control.
Smart Images

Figure CN123159891A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of chemical risk early warning technology, specifically to a method for identifying and classifying the risks and hazards of hazardous chemicals. Background Technology
[0002] Accurate identification and scientific classification and management of risks and hazards related to hazardous chemicals are fundamental prerequisites for preventing major accidents and ensuring the safety of people's lives and property. my country's coal chemical industry, especially coal-based syngas processes, faces a particularly severe safety situation due to the overlapping of multiple risks, including high temperature and pressure, flammability and explosiveness, and toxicity. Currently, traditional safety management models rely mainly on manual experience and fragmented data, which are insufficient to address the challenges of surging multi-source heterogeneous data, dynamic evolution of hazard characteristics, and complex risk coupling relationships. Meanwhile, the state has clearly required accelerating the construction of an industrial digital safety management and control system and deepening the application of technologies such as artificial intelligence and knowledge graphs in the prevention and control of major risks. Based on this, this method, driven by multimodal data governance, integrates key technologies such as knowledge graph construction, hidden danger data quality assessment, and large-scale intelligent model analysis to establish an intelligent risk and hidden danger identification and control system covering the entire chain from feature recognition to process analysis, risk identification, and hierarchical control. This method aims to break down the barriers between heterogeneous data such as sensor time-series data, images and videos, and operation logs in coal-based syngas processes, and construct a reasonable and evolvable safety production knowledge graph and expert knowledge base to achieve intelligent identification of hidden dangers, dynamic risk classification, and precise matching of control measures. This provides key technical support for the paradigm shift of safety production in the coal chemical industry from experience-driven to data-intelligent driven.
[0003] In coal-based syngas processes, risks and hazards are often not triggered independently by anomalies in a single process, but rather stem from parameter misalignments between upstream and downstream processes. For example, temperature fluctuations in the gasifier can affect the hydrogen-to-carbon ratio of the syngas, thus having a cascading impact on the yield and safety of downstream methanol synthesis. A sudden pressure surge in the gasification unit, if not effectively coordinated with pressure regulation in the purification unit, may lead to leaks or explosions. However, traditional machine learning modeling commonly employs univariate time-series statistical methods such as the sliding window method for feature construction. This method only calculates the mean, variance, and extreme values within a window based on sensor data from the process containing the target variable. This approach has the following technical limitations: the sliding window method's statistical scope only covers sensor data from the process containing the target variable itself, failing to perceive and quantify the transmission effect of upstream process parameter changes on downstream processes. Cross-process coupling relationships cannot be represented at the feature level, resulting in the model only learning the superficial relationships of single processes and failing to capture the overall risk evolution chain of the process system. Therefore, a method for identifying and classifying hazardous chemical risks and hazards is needed. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides a method for identifying and classifying the risks and hazards of hazardous chemicals, thereby resolving the technical problems existing in the prior art.
[0005] The above-mentioned technical objective of the present invention is achieved through the following technical solution: A method for identifying and classifying the risks and hazards of hazardous chemicals includes the following steps: Multimodal data generated during the coal-based syngas process is collected. The multimodal data includes high-frequency time-series data, unstructured text reports, and structured process parameters. The power spectral density of the high-frequency time-series data is calculated using a spectrum analysis module, and transient features are extracted based on the energy ratio of the high-frequency band. At the same time, a large language model with fine-tuned instructions is used to analyze key indicators of the unstructured text reports to output structured data. A knowledge graph for the safety of hazardous chemicals is constructed, which includes mechanistic entities built based on process mechanism equations, as well as key process entities actively discovered and supplemented from external knowledge bases through a large language model, and attribute relationships between entities are established. Based on the hazardous chemicals safety knowledge graph, semantic mapping is performed on the multimodal data after treatment. The semantic mapping includes dynamic entity disambiguation and alignment using a large language model combined with the metadata context of the data, and multi-dimensional data quality assessment is performed on the mapped data to obtain a quality score for each data item. Using the fault tree subgraph pre-constructed in the hazardous chemicals safety knowledge graph, the data that has completed semantic mapping is subjected to correlation reasoning to identify the derived sensitive data that is indirectly related to the core sensitive events. The safety level of each data is determined by combining the process risk characteristics of the data with the quality score. Then, the data is partitioned and isolated based on the safety level and the quality score. For the partitioned data, the upstream and downstream processes are automatically traced back using the causal path relationships in the hazardous chemicals safety knowledge graph to construct a cross-process composite feature vector, and a training strategy enhanced by a large language model is used to train the risk identification model. The trained risk identification model is used to identify potential hazards in real-time data, and the large language model is triggered to generate a graded control audit report based on the identification results and the grading criteria.
[0006] Preferably, the process of constructing the mechanistic entity includes: The reaction kinetic equations and energy conservation equations corresponding to key equipment in the coal-based syngas process are encapsulated into computable mechanism function entities; The mechanism function entity receives real-time input process parameters and calculates and outputs yield or efficiency indicators through a built-in physical information neural network. The process parameters and output indicators are treated as dynamic attribute relationships and connected to the corresponding equipment entities in the hazardous chemicals safety knowledge graph.
[0007] Preferably, the process of actively discovering and completing key process entities through a large language model includes: When encountering an unregistered field name during semantic mapping, an entity discovery agent driven by a large language model is automatically triggered. The entity discovery agent parses the semantics of the unlogged-in fields and retrieves concept definitions from process manuals and papers to generate suggested information containing candidate entity names, attribute lists and their definitions; After manual verification, the candidate entities and their attributes are added as new process key entities to the hazardous chemical safety knowledge graph.
[0008] Preferably, the process of calculating the power spectral density of the high-frequency time series data using the spectrum analysis module and extracting transient features based on the proportion of high-frequency energy includes: calculating the power spectral density of the high-frequency time series data and determining whether the proportion of high-frequency energy in the total energy exceeds a preset transient determination threshold. If it exceeds the threshold, then simultaneously performing sliding window statistical calculation in the time domain and wavelet transform in the frequency domain on the time series data, and concatenating the obtained time domain statistical features with the frequency domain transform coefficients to form a feature representation that fuses transient information.
[0009] Preferably, the process of using a finely tuned large language model to analyze key indicators of the unstructured text report to output structured data includes: pre-constructing an instruction prompt template for the field of hazardous chemicals, wherein the instruction prompt template clearly lists the specific key parameters to be extracted and their expected data format; inputting the manual inspection record or accident investigation report text together with the instruction prompt template into the finely tuned large language model, so that the large language model outputs structured data containing the extracted key parameter values or states.
[0010] Preferably, the process of using a large language model in conjunction with the metadata context of the data for dynamic entity disambiguation and alignment includes: when the name of a certain numerical field is consistent with the attribute name of multiple candidate entities in the hazardous chemicals safety knowledge graph, resulting in matching ambiguity, the metadata of the device segment to which the data source belongs, the location of the sampling point, and the statistical distribution characteristics of the field value are packaged into contextual hint information, input into the large language model, and the large language model infers and outputs the unique matching target entity.
[0011] Preferably, the process of using a fault tree subgraph for correlation reasoning and identifying derived sensitive data includes: pre-constructing a fault tree subgraph in the hazardous chemical safety knowledge graph with preset risk events as core events; when a new data item is mapped to an entity in the graph, traversing the attribute relationship paths from the entity to each top event node; if there is a reachable path and the entity attribute on the path is marked as a risk factor, then the safety level of the data item is upgraded to the sensitive level.
[0012] Preferably, the process of automatically tracing back upstream and downstream processes using the causal path relationships in the hazardous chemical safety knowledge graph to construct a cross-process composite feature vector includes: Determine the target variable to be predicted by the risk identification model, and retrieve all causal attribute relationship paths ending with the target variable from the hazardous chemicals safety knowledge graph; Tracing back upstream along the causal attribute relationship path, identify and extract the time-series data associated with each relevant entity along the path; Window statistical features are calculated on the extracted upstream process time series data, and the calculated window statistical features are combined with the real-time data features of the process in which the target variable is located to form a composite feature vector characterizing the cross-process coupling effect.
[0013] A hazardous chemical risk identification and classification control system includes: Multimodal data acquisition and fusion management module: Collects multimodal data from the production process of hazardous chemicals, is equipped with a spectrum analysis unit to extract transient features from the high-frequency time series data, and integrates a large language model finely tuned by instructions to perform structured analysis of key indicators in the unstructured text report; Safety Knowledge Graph Module: Constructs and dynamically maintains a safety knowledge graph for hazardous chemicals. The knowledge graph includes mechanism entities encapsulated based on process mechanism equations, key process entities actively discovered and supplemented from multi-source heterogeneous information by a large language model, and attribute relationships between the entities used to characterize the coupling links of process parameters. Data semantic mapping and quality assessment module: Based on the knowledge graph, semantic mapping is performed on the managed multimodal data, and a large language model disambiguation unit is built in. During the mapping process, dynamic entity disambiguation and alignment are performed using the metadata context of the data. Multi-dimensional data quality assessment is performed on the mapped data, and a corresponding quality score is generated for each data item. Data grading and partitioning module: Using the fault tree subgraph pre-constructed in the knowledge graph with the core risk event as the top event, the module performs correlation reasoning on the data that has completed semantic mapping, identifies and prioritizes the processing of derived sensitive data that are indirectly related to the core sensitive event, and determines the security level of each data by combining the process risk characteristics of the data with the quality score. Then, it performs partitioning and isolation operations on the data based on the security level and the quality score. Risk identification model training module: For the partitioned data, the causal path relationship in the knowledge graph is used to automatically trace back the upstream and downstream processes, construct a cross-process composite feature vector, and train the risk identification model using a training strategy enhanced by a large language model. Risk identification and closed-loop management module: The risk identification model trained by the application identifies potential hazards in real-time data and triggers the large language model to generate a hierarchical management and audit report containing decision-making basis and control measure suggestions based on the identification results and hierarchical criteria. At the same time, the prediction residuals and attention weight analysis results generated during model training and verification are fed back to the knowledge graph module to correct entity attributes or relationship paths.
[0014] In summary, the present invention has the following main beneficial effects: This invention utilizes the causal path relationships in knowledge graphs to automatically trace back upstream processes along attribute relationship paths, extract window statistical features of time-series data from upstream processes, and combine them with real-time data features of the process where the target variable is located to form a composite feature vector representing the cross-process coupling effect. This solves the problem that the traditional sliding window method only focuses on single-process data and ignores the cross-process coupling effect, making feature construction driven by domain knowledge rather than blind search. Attached Figure Description
[0015] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a system block diagram of a hazardous chemical risk identification and graded control system according to the present invention. Detailed Implementation
[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0017] refer to Figure 1 - Figure 2 A method for identifying and classifying the risks and hazards of hazardous chemicals, comprising the following steps: Multimodal data generated during the coal-based syngas process is collected. The multimodal data includes high-frequency time-series data, unstructured text reports, and structured process parameters. The power spectral density of the high-frequency time-series data is calculated using a spectrum analysis module, and transient features are extracted based on the energy ratio of the high-frequency band. At the same time, a large language model with fine-tuned instructions is used to analyze key indicators of the unstructured text reports to output structured data, thereby realizing the fusion and governance of the multimodal data. More specifically, the specific analysis process of using a finely tuned large language model to analyze key indicators of the unstructured text report to output structured data is as follows: A command fine-tuning dataset specifically designed for information extraction tasks in the field of hazardous chemical safety was constructed, and the underlying large language model was then used for supervised fine-tuning. A three-element instruction template was designed, and each piece of training data used for fine-tuning consists of the following three parts: System role setting: Define the model as a hazardous chemical safety production process expert and data analyst; Input text: Contains numerous fragments of real and data-enhanced unstructured reports; Expected output: A predefined structured JSON object, wherein the structured JSON object consists of an unordered set of key-value pairs, where each key is a semantically clear string used to uniquely identify a data field; each value can be a number, string, boolean, array, or another nested JSON object, and the type and range of values are constrained by a preset data pattern; More specifically, the base large language model is preferably an autoregressive Transformer model with strong semantic understanding and instruction following capabilities; The dataset used for instruction fine-tuning contains at least 10,000 high-quality instruction-output pairs. Approximately 30% of the data comes from expert annotations of more than 3 years of real HAZOP reports, accident drill records, and inspection logs from production enterprises. Approximately 40% of the data is generated through an automated generation method based on preset safety event templates to cover low-frequency but high-risk scenarios. The remaining approximately 30% of the data is obtained through data augmentation techniques such as rewriting, back-translation, and synonym replacement of the aforementioned real data to improve the model's robustness to colloquial and non-standard language. After fine-tuning with this dataset, the model achieves an F1 score of over 95% on the closed test set.
[0018] A knowledge graph for the safety of hazardous chemicals is constructed, which includes mechanistic entities built based on process mechanism equations, as well as key process entities actively discovered and supplemented from external knowledge bases through a large language model, and attribute relationships between entities are established. Based on the hazardous chemicals safety knowledge graph, semantic mapping is performed on the multimodal data after treatment. The semantic mapping includes dynamic entity disambiguation and alignment using a large language model combined with the metadata context of the data, and multi-dimensional data quality assessment is performed on the mapped data to obtain a quality score for each data item. Using the fault tree subgraph pre-constructed in the hazardous chemicals safety knowledge graph, the data that has completed semantic mapping is subjected to correlation reasoning to identify the derived sensitive data that is indirectly related to the core sensitive events. The safety level of each data is determined by combining the process risk characteristics of the data with the quality score. Then, the data is partitioned and isolated based on the safety level and the quality score. For the partitioned data, the upstream and downstream processes are automatically traced back using the causal path relationships in the hazardous chemicals safety knowledge graph to construct a cross-process composite feature vector. The risk identification model is trained using a large language model enhancement training strategy. The loss function used in the training process includes a semantic consistency regularization term, which is used to constrain the consistency between the model prediction results and the logical rules in the hazardous chemicals safety knowledge graph. The process of training the risk identification model using the training strategy enhanced by the large language model includes: for data classified into high-safety-level data partitions, a federated learning framework is used to train the risk identification model, and the large language model generates synthetic data for enhancement based on the causal logic in the hazardous chemicals safety knowledge graph to expand the local training sets of each participant. At the same time, in the model gradient aggregation stage, the large language model is used to detect and explain anomalies in the model updates uploaded by each participant. The risk identification model trained by the application identifies potential hazards in real-time data and triggers the big language model to generate a graded control audit report based on the identification results and grading criteria. At the same time, the prediction residuals and attention weight analysis results generated during the model training process are fed back to the hazardous chemical safety knowledge graph to correct entity attributes or relationship paths and form a knowledge closed loop. The process of feeding back the prediction residuals and attention weight analysis results generated during model training to the hazardous chemical safety knowledge graph includes: in the model validation stage, calculating the prediction residuals of the risk identification model, and using the attention mechanism to analyze the several attribute relationship paths that contribute the most to the prediction residuals. A large language model is used to generate correction suggestions for attribute coefficients or relationship types on the attribute relationship paths. After experts review and confirm the correction suggestions, the hazardous chemical safety knowledge graph is updated according to the correction suggestions, thus completing the knowledge closed-loop evolution.
[0019] It should be noted that the specific analytical process for the identification and graded control of hazardous chemical risks and hazards is as follows: Multimodal data acquisition and fusion governance: First, multimodal data is collected, specifically including: High-frequency time-series data: Real-time fluctuation signals of key process parameters such as gasifier temperature, pressure, and oxygen-to-coal ratio, acquired at a high sampling rate through a distributed control system. This type of data contains transient and dynamic behavioral characteristics of the process; Unstructured text reports: including but not limited to manual inspection records, equipment maintenance reports, catalyst deactivation diagnosis reports, and accident debriefing summaries; Structured process parameters: Production operation data recorded through relational databases or real-time databases, such as shift output, material flow rate, and parameters characterizing catalyst activity; Secondly, we will carry out fusion and governance of multimodal data: For high-frequency time-series data, spectral analysis is used to extract its transient characteristics; For unstructured text reports, a large language model fine-tuned with domain-specific instructions is used to perform structured parsing of key indicators and transform them into structured data. Constructing a safety knowledge graph for hazardous chemicals: The hazardous chemicals safety knowledge graph contains two core entities: Mechanism Entities: The core process mechanism is directly encapsulated as a graphical entity; Key process entities: When an unregistered field name appears during semantic mapping, the system automatically triggers a large language model driven by specific domain instructions for entity discovery. This agent parses the field name, retrieves external process documents, generates suggestions, and after expert confirmation, automatically completes the knowledge graph as a new entity and attribute relationship. Multimodal data semantic mapping and quality assessment: The semantic mapping process introduces a large language model fine-tuned by domain-specific instructions for dynamic entity disambiguation. When multiple matching entities exist for a numerical field name in the knowledge graph, the comparison is no longer based solely on field name. Instead, the metadata context of the data source and the statistical characteristics of the data value are packaged into a prompt message, which is then given to the large language model fine-tuned by domain-specific instructions for reasoning and judgment. Finally, a unique target entity is determined, achieving a precise semantic link between data and knowledge entities. After mapping is completed, a multi-dimensional data quality assessment is performed on each data point to obtain a comprehensive quality score; Risk correlation reasoning and data hierarchical isolation based on fault tree: In the knowledge graph, a fault tree subgraph of the top event is pre-built. When a new data item is mapped, the path from the data entity to each top event is traversed. If there is a path and its upstream node contains a risk factor, the system will automatically identify the data item as derived sensitive data. Next, by combining the process risk characteristics and overall quality score of the comprehensive data, the final safety level of each data point is determined; Causal-guided feature engineering and model training enhanced by large language models fine-tuned with domain-specific instructions: For the training objective, the system automatically retrieves all causal attribute relationship paths with the objective as the endpoint in the knowledge graph. Then, it extracts historical data of each upstream process node along the path, calculates its sliding window statistical features, and combines them with real-time data of the downstream process to form a cross-process composite feature vector. This solves the problem of the sliding window method ignoring cross-process coupling by being driven by causal logic. During the model training phase, different training strategies are adopted based on the partition where the data is located: Closed-loop deployment and knowledge feedback of the model: After training, the risk identification model is deployed on the real-time data stream. Once a high-risk hazard is identified, the system not only outputs an alarm, but also triggers a large language model fine-tuned by specific domain instructions to generate a hierarchical control audit report. The large language model fine-tuned by specific domain instructions reads all decision logs that led to the conclusion and automatically generates a detailed natural language audit report containing risk description, decision logic chain, and suggested control measures for compliance review. Meanwhile, the system feeds back the prediction residuals and attention weight analysis results generated during model training to the knowledge graph, forming a knowledge loop.
[0020] In this embodiment, the process of constructing the mechanism entity includes: The reaction kinetic equations and energy conservation equations of key equipment in the gasifier and purification unit of the coal-based syngas process are encapsulated into computable mechanism function entities. The mechanism function entity receives real-time input process parameters and calculates and outputs yield or efficiency indicators through a built-in physical information neural network. The process parameters and output indicators are treated as dynamic attribute relationships and connected to the corresponding equipment entities in the hazardous chemicals safety knowledge graph.
[0021] It should be noted that the specific analytical process for constructing the mechanism entity is as follows: Taking the gasifier as an example, its core mechanism can be expressed as the kinetic equation of the gasification reaction and the energy conservation equation of the internal heat balance. In order to balance computational efficiency and accuracy, a lumped parameter model is adopted. The yields of key components in the syngas exiting the gasifier can be described by an Arrhenius-type kinetic equation, and its reaction rate constant is... Represented as: ,in, Pre-exponential factor, The activation energy of the reaction. This is the universal gas constant. This refers to the reaction temperature in the gasifier. The equation will determine the reaction temperature. With reaction rate Establish contact; Furthermore, the instantaneous formation rate of key components, such as the instantaneous formation rate of carbon monoxide. Expressed as: ,in, It concerns the conversion rate of raw coal. partial pressure of oxygen Gas-coal ratio The kinetic function, the specific form of which depends on the gasification technology employed; Meanwhile, the energy conservation equation for the gasifier is: ,in, For material mass flow rate, For enthalpy, The heat of reaction, This equation represents the heat dissipation of the furnace body, ensuring the dynamic balance of heat within the furnace. After constructing the above mathematical equations, they are encapsulated into a differentiable physical information neural network model, forming a mechanism function entity; Specifically, a feedforward neural network is constructed, which takes real-time acquired process parameters as input and outputs the yield or efficiency index to be predicted. The loss function of this neural network is expressed as: ,in, The data fitting loss is used to measure the difference between the neural network's predicted values and the actual measured values. Mean squared error can be used. , As a loss constrained by physical laws, it encodes the mechanistic equation as a loss term to penalize predictions that contradict physical laws. For example, the residuals of the gasifier energy conservation equation are constructed as a loss term: ( Here and These are all functions of the neural network output or intermediate variables, thus enabling physical laws to guide network training. It is an adjustable hyperparameter used to balance the two objectives of data fitting and physical constraints; By minimizing The trained neural network constitutes a mechanism function entity, which receives arbitrary real-time input process parameters and calculates the output yield or efficiency index through the forward propagation of the network. The trained mechanism function entity is injected into the hazardous chemicals safety knowledge graph as a special function-type entity node, and its dynamic attribute relationship with related equipment entities is established. The specific connection method is as follows: Create a physical device entity node for the critical device in the knowledge graph; Define one or more dynamic properties for this device entity; Define the semantic mapping of input parameters, and bind each input port of the mechanism function entity to the entity attribute node representing the corresponding real-time process parameter in the graph through the relational path of the graph; Define the semantic mapping of output indicators, and connect each output port of the mechanism function entity to the corresponding device performance indicator entity node in the graph through the relation path; When a user or upper-level application queries the gasifier's yield, the knowledge graph system will find the referenced mechanism function entity through its attributes, obtain the current process parameters of the equipment in real time as input, perform a forward calculation of the trained neural network, and dynamically return the calculation result as an attribute value.
[0022] In this embodiment, the process of actively discovering and completing key process entities through a large language model includes: When encountering an unregistered field name during semantic mapping, an entity discovery agent driven by a large language model is automatically triggered. The entity discovery agent parses the semantics of the unlogged-in fields and retrieves concept definitions from process manuals and papers to generate suggested information containing candidate entity names, attribute lists and their definitions; After manual verification, the candidate entities and their attributes are added as new process key entities to the hazardous chemical safety knowledge graph.
[0023] It should be noted that the specific analysis process for proactively discovering and completing key process entities through a large language model is as follows: First, entity alignment is performed on the structured data fields after governance. The alignment process combines string matching and semantic similarity calculation. When the matching score of a field name is lower than the preset threshold, or when the unique target entity cannot be determined after disambiguation by the large language model, the field is marked as an unregistered field name. At this point, the system automatically triggers an entity discovery agent driven by a large language model. This agent is an autonomous software module that encapsulates specific task instructions and external knowledge retrieval capabilities. The names of unregistered fields and their context information are packaged into a semantic parsing request and sent to this agent. Once the activated entity discovery agent receives the request, it executes two core tasks in parallel. Task 1: Semantic parsing of fields for users who are not logged in.
[0024] The agent leverages the powerful semantic understanding capabilities of the large language model to perform deep analysis on the names of unregistered fields, guiding the large language model to infer from its parameterized world knowledge the possible process concept, equipment type, and position in the process flow diagram that the field might correspond to. Task 2: Retrieval and comparison of external process knowledge.
[0025] The agent uses the parsed core concept terms as query terms to search in a pre-set external trusted knowledge base. The search process can adopt a hybrid search strategy that combines dense vector search with keyword matching. The entity discovery agent integrates and aligns the results of semantic parsing with the results of knowledge retrieval to generate a set of candidate new entities and attribute suggestions, which are then pushed to domain experts for review through the user interface. After receiving the suggestion package generated by the entity discovery agent, the domain expert reviews the attribute suggestions; Experts can confirm, modify, or reject the suggestions. Once an expert confirms, the system will execute a dynamic update procedure for the knowledge graph. The update procedure specifically performs the following operations: Create a new entity node in the graph database of the hazardous chemicals safety knowledge graph, with the type being process critical entity, and set its unique identifier URI; Store the entity name and definition description confirmed by the experts as the attribute value of this node; Create semantic relationships between this entity node and existing entity nodes; For each confirmed attribute, create a new attribute relationship under that entity node and set its data type and unit constraints; Update the version number and change log of the knowledge graph, and record this graph expansion operation driven by the entity discovery agent and confirmed by humans.
[0026] In this embodiment, the process of using the spectrum analysis module to calculate the power spectral density of the high-frequency time series data and extracting transient features based on the proportion of high-frequency energy includes: calculating the power spectral density of the high-frequency time series data and determining whether the proportion of high-frequency energy in the total energy exceeds a preset transient determination threshold. If it exceeds the threshold, then simultaneously performing sliding window statistical calculation in the time domain and wavelet transform in the frequency domain on the time series data, and concatenating the obtained time domain statistical features with the frequency domain transform coefficients to form a feature representation that fuses transient information.
[0027] It should be noted that the specific analysis process of the spectrum analysis module is as follows: The time series signal of the process parameters of the target equipment is acquired by a distributed control system or a dedicated high-frequency data acquisition device at a preset high sampling rate (e.g., 100Hz or higher). This embodiment takes the temperature signal x(t) at a key temperature measurement point inside the gasifier furnace as an example, and obtains a discrete sampling sequence of length N. ,in ; For this discrete sequence To estimate the power spectral density and reveal the power distribution characteristics of a signal in the frequency domain, the Welch method can be used. This involves segmenting the data, windowing it, and averaging the results, which can effectively reduce the estimation variance. Specifically, the signal of length N is divided into K overlapping data segments, each segment having a length of... Apply a window function to each data segment. Then, its periodogram is calculated, and the final power spectral density is obtained. The estimation formula is: in, The imaginary unit, For frequency, For the k-th segment of data, The normalization factor for the window function is defined as follows: The obtained power spectral density It reflects the power distribution of different frequency components in the signal; Determine the power spectral density. Then, the proportion of the signal energy in the preset high-frequency band in the total energy is calculated, which is used as the basis for determining whether it contains significant transient characteristics. First, define a frequency threshold. The frequency axis is divided into low-frequency bands ( ) and high frequency band ( This threshold can be determined based on process knowledge or the spectral characteristics of normal operating conditions in historical data; For example, under normal operating conditions, the power of the gasifier temperature signal is mainly concentrated in the low-frequency region, with extremely low high-frequency fluctuation energy; however, when transient events such as local hot spots or nozzle malfunctions occur, the high-frequency energy will increase significantly. Then, the proportion of high-frequency energy is calculated. Its formula is defined as follows: in, The Nyquist frequency is half the sampling frequency. The numerator represents the power integral over the high-frequency band, and the denominator represents the total power integral over the entire frequency band. The calculated... With a preset transient determination threshold Based on the comparison, make the following decisions: like ≥ If the time series data segment is determined to contain significant transient information, the parallel feature extraction process in step three is executed. like < If the time series data segment is determined to mainly contain steady-state or slowly varying information, then only conventional time-domain sliding window statistical calculations are required. Through this judgment mechanism, the system can adaptively differentiate working conditions and perform enhanced processing on data containing transient impacts, thus avoiding the waste of computing resources; Parallel extraction and fusion of time-domain and frequency-domain features: For data determined to contain significant transient information, feature extraction of both time-domain and frequency-domain channels is performed simultaneously. Time-domain channel: Sliding window statistical calculation for time-series signals Apply a width of A sliding window can be used to calculate various statistical characteristics of the data within the window. For example, for the window corresponding to time t, the following can be extracted: Mean: ; variance: ; Maximum value: ; Minimum value: ; Peak-to-peak value: ; These statistics are combined into a time-domain feature vector .
[0028] Frequency domain channel: Wavelet transform. Discrete wavelet transform is performed on the same time-series signal to extract its time-frequency localization information. A mother wavelet basis function suitable for capturing transient impulses is selected, and the signal is decomposed into multiple layers. Let the number of decomposition layers be L, then the detail coefficient vector of each layer is obtained. and the approximation coefficient vector of the last layer For each layer's detail coefficient vector, its energy characteristics are calculated and used as a frequency domain feature representation: Detail factor energy: ,in, For the k-th detail coefficient of the l-th layer, combine the energy values of each layer into a frequency domain feature vector. This vector directly represents the energy distribution of transient disturbances in various frequency bands, which is information that cannot be captured by simple time-domain statistics. Feature fusion combines temporal feature vectors With frequency domain eigenvectors The data is spliced together to form a feature representation that integrates transient information. : This fused feature vector not only describes the overall statistical trend of the signal, but also captures the energy distribution characteristics of abrupt events in each frequency subband in a fine-grained manner.
[0029] In this embodiment, the process of using a finely tuned large language model to analyze key indicators of the unstructured text report to output structured data includes: pre-constructing an instruction prompt template for the field of hazardous chemicals, wherein the instruction prompt template clearly lists the specific key parameters to be extracted and their expected data format; inputting the manual inspection record or accident investigation report text together with the instruction prompt template into the finely tuned large language model, so that the large language model outputs structured data containing the extracted key parameter values or states.
[0030] In this embodiment, the process of using a large language model to perform dynamic entity disambiguation and alignment in conjunction with the metadata context of the data includes: when the name of a certain numerical field is consistent with the attribute name of multiple candidate entities in the hazardous chemicals safety knowledge graph, resulting in matching ambiguity, the metadata of the device segment to which the data source belongs, the sampling point location, and the statistical distribution characteristics of the field value are packaged into contextual hint information, input into the large language model, and the large language model infers and outputs the unique matching target entity.
[0031] It should be noted that the specific analysis process for dynamic entity disambiguation and alignment is as follows: When semantically mapping the processed multimodal data to a hazardous chemicals safety knowledge graph, the system first employs basic string matching and synonym expansion methods. It compares the numerical field names of the data to be mapped with the attribute name list of all entities in the graph. For a numerical field name F to be mapped, the system retrieves all entity attributes in the graph that either exactly match F or match it after synonym mapping, forming a candidate entity set. ,in As candidate entities, This refers to the attribute name in the candidate entity that matches F. When the candidate set C contains more than one element (i.e., n≥2), the system determines that this field has matching ambiguity and triggers the dynamic entity disambiguation process; For example, if the field to be mapped is named "temperature", the possible candidate entities and attributes that could match it include: (Gasifier A, furnace temperature); (Gasifier A, outlet syngas temperature); (Low-temperature methanol washing absorption tower, tower top temperature); (Methanol synthesis reactor, catalyst bed hot spot temperature); These candidate entities are distributed across completely different process units. Blindly matching them based solely on the field name "temperature" will lead to serious data linking errors. Packaging and Prompt Construction of Multidimensional Contextual Information: After the matching ambiguity is identified, the system automatically collects multidimensional contextual information associated with the data to be mapped and packages it into a structured contextual prompt information package, which is then provided as input to the large language model for reasoning. The contextual hint message package contains the following three types of key information: First, the metadata of the data source, which is the most direct clue for disambiguation, including but not limited to: the device section to which the data source belongs, the physical location label of the sampling point, the instrument tag number of the data point, and the path identifier of the data point in the distributed control system; Secondly, the statistical distribution characteristics of the field's values can serve as an important auxiliary basis for judgment when metadata information is missing or incomplete. The system calculates the basic statistics of the field to be mapped in the current data segment or historical data, including the mean, standard deviation, minimum value, and maximum value. These statistical characteristics can reflect the physical magnitude and fluctuation range of the measurement point, thereby helping to distinguish similar measurements in different work sections. Third, the system further collects other related field information reported from the same data source within the same time window to form a multi-dimensional data snapshot, which assists the large language model in joint reasoning. The system organizes the above information according to the preset instruction prompt template to form the final model input. The reasoning and target entity determination of the large language model involves inputting the constructed contextual cue information package into the large language model. The large language model, relying on its extensive knowledge of chemical engineering fields acquired during pre-training and its deep understanding of the input context, performs the semantic reasoning process. After obtaining a uniquely matched target entity and target attribute, the system performs the final semantic linking operation. Utilizing the attribute relationships preset in the knowledge graph, the numerical field data to be mapped is treated as an attribute value node and connected to the target entity node, completing the graph-based mounting of the data. At the same time, all information about this disambiguation decision process, including the original ambiguity, the provided multi-dimensional contextual information, the target entity output by the large language model, and the reasoning basis, is recorded in the system's operation log.
[0032] In this embodiment, the process of using a fault tree subgraph for correlation reasoning and identifying derived sensitive data includes: first constructing a fault tree subgraph in the hazardous chemical safety knowledge graph with preset risk events as core events; when a new data item is mapped to an entity in the graph, traversing the attribute relationship paths from the entity to each top event node; if there is a reachable path and the entity attribute on the path is marked as a risk factor, then the safety level of the data item is upgraded to the sensitive level.
[0033] It should be noted that the specific analytical process for correlational reasoning and identifying derived sensitive data is as follows: During the construction phase of the hazardous chemical safety knowledge graph or the system initialization phase, domain experts and safety engineers collaborate to pre-construct fault tree subgraphs for preset risk events and store them as part of the knowledge graph. For each pre-defined risk event, analyze the necessary conditions, intermediate events, and basic events that lead to the occurrence of the event, and construct a tree-like causal relationship diagram that unfolds from top to bottom; After constructing the fault tree subgraph, risk factors are labeled on the knowledge graph entity attributes corresponding to all intermediate event nodes and basic event nodes in the graph. Once a new data item is successfully attached to an entity attribute in the hazardous chemicals safety knowledge graph through a semantic mapping process, the system automatically triggers the derived sensitive data identification process. Suppose that the newly mapped data item d is linked to attribute a of entity e in the knowledge graph; First, check whether attribute 'a' itself has been marked as a risk factor. If it has been marked, it means that the data item itself is known core sensitive data. Directly upgrade its security level to the sensitive level to complete the judgment. If attribute a is not directly marked, the path reachability traversal process is initiated. This process takes the current entity e as the starting node and performs a breadth-first search or depth-first search in the directed relation graph of the knowledge graph. The goal is to find a reachable path from the starting node e to any preset risk event. When the result of the path reachability traversal is true, that is, there exists a reachable path from the current data associated attribute node to a certain preset risk event top node, and all intermediate nodes on the path have been marked as risk factors, the system determines that the newly mapped data item d is derived sensitive data. At this time, the system automatically performs an upgrade operation on the security level of the data item d. For example, if the initial security level of the data item d is level 3 non-sensitive or level 2 sensitive, its security level will be dynamically adjusted to the corresponding sensitive level according to the severity of the preset risk events associated with the reachable path. For data associated with high-risk events, its security level can be directly upgraded to level 1 sensitive. Among them, Level 1 Sensitive refers to the highest security level where the data itself or, after fault tree association reasoning, is identified as being directly or indirectly related to a pre-set core risk event, and unauthorized access, disclosure, or tampering of the data may cause serious damage to personnel safety, critical equipment and facilities, or the company's core business secrets. Level 2 Sensitive refers to data that does not directly pose a significant security or confidentiality risk, but contains restricted information within the enterprise. Unauthorized access to such data may lead to inaccurate process performance assessments, leakage of operational experience, or minor violations. It is an intermediate security level that must be circulated and used within a controlled scope within the enterprise. Level 3 non-sensitive data refers to data that, after assessment, is determined to not pose a security risk when used alone or in conjunction with other information, and can be circulated relatively freely within the enterprise or used for routine analysis; At the same time, the system records the entire decision-making process for identifying this derived sensitive data in the log. The log content includes: the identifier of the new mapped data item, the starting entity and attributes, the description of the reachable path traversed, the name of the final associated preset risk event, and the operation details of the security level upgrade. This log will serve as an important component of the subsequent hierarchical control audit report, ensuring that every automatic decision in the security classification is traceable and explainable.
[0034] In this embodiment, the process of automatically tracing back upstream and downstream processes using the causal path relationships in the hazardous chemical safety knowledge graph to construct a cross-process composite feature vector includes: Determine the target variable to be predicted by the risk identification model, and retrieve all causal attribute relationship paths ending with the target variable from the hazardous chemicals safety knowledge graph; Tracing back upstream along the causal attribute relationship path, identify and extract the time-series data associated with each relevant entity along the path; Window statistical features are calculated on the extracted upstream process time series data, and the calculated window statistical features are combined with the real-time data features of the process in which the target variable is located to form a composite feature vector characterizing the cross-process coupling effect.
[0035] A hazardous chemical risk identification and classification control system includes: Multimodal data acquisition and fusion management module: Collects multimodal data from the production process of hazardous chemicals, is equipped with a spectrum analysis unit to extract transient features from the high-frequency time series data, and integrates a large language model finely tuned by instructions to perform structured analysis of key indicators in the unstructured text report; Safety Knowledge Graph Module: Constructs and dynamically maintains a safety knowledge graph for hazardous chemicals. The knowledge graph includes mechanism entities encapsulated based on process mechanism equations, key process entities actively discovered and supplemented from multi-source heterogeneous information by a large language model, and attribute relationships between the entities used to characterize the coupling links of process parameters. Data semantic mapping and quality assessment module: Based on the knowledge graph, semantic mapping is performed on the managed multimodal data, and a large language model disambiguation unit is built in. During the mapping process, dynamic entity disambiguation and alignment are performed using the metadata context of the data. Multi-dimensional data quality assessment is performed on the mapped data, and a corresponding quality score is generated for each data item. Data grading and partitioning module: Using the fault tree subgraph pre-constructed in the knowledge graph with the core risk event as the top event, the module performs correlation reasoning on the data that has completed semantic mapping, identifies and prioritizes the processing of derived sensitive data that are indirectly related to the core sensitive event, and determines the security level of each data by combining the process risk characteristics of the data with the quality score. Then, it performs partitioning and isolation operations on the data based on the security level and the quality score. Risk identification model training module: For the partitioned data, the causal path relationship in the knowledge graph is used to automatically trace back the upstream and downstream processes, construct a cross-process composite feature vector, and train the risk identification model using a training strategy enhanced by a large language model. Risk identification and closed-loop management module: The risk identification model trained by the application identifies potential hazards in real-time data and triggers the large language model to generate a hierarchical management and audit report containing decision-making basis and control measure suggestions based on the identification results and hierarchical criteria. At the same time, the prediction residuals and attention weight analysis results generated during model training and verification are fed back to the knowledge graph module to correct entity attributes or relationship paths.
[0036] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for identifying and classifying the risks and hazards of hazardous chemicals, characterized in that, Includes the following steps: Multimodal data generated during the coal-based syngas process is collected. The multimodal data includes high-frequency time-series data, unstructured text reports, and structured process parameters. The power spectral density of the high-frequency time-series data is calculated using a spectrum analysis module, and transient features are extracted based on the energy ratio of the high-frequency band. At the same time, a large language model with fine-tuned instructions is used to analyze key indicators of the unstructured text reports to output structured data. A knowledge graph for the safety of hazardous chemicals is constructed, which includes mechanistic entities built based on process mechanism equations, as well as key process entities actively discovered and supplemented from external knowledge bases through a large language model, and attribute relationships between entities are established. Based on the hazardous chemicals safety knowledge graph, semantic mapping is performed on the multimodal data after treatment. The semantic mapping includes dynamic entity disambiguation and alignment using a large language model combined with the metadata context of the data, and multi-dimensional data quality assessment is performed on the mapped data to obtain a quality score for each data item. Using the fault tree subgraph pre-constructed in the hazardous chemicals safety knowledge graph, the data that has completed semantic mapping is subjected to correlation reasoning to identify the derived sensitive data that is indirectly related to the core sensitive events. The safety level of each data is determined by combining the process risk characteristics of the data with the quality score. Then, the data is partitioned and isolated based on the safety level and the quality score. For the partitioned data, the upstream and downstream processes are automatically traced back using the causal path relationships in the hazardous chemicals safety knowledge graph to construct a cross-process composite feature vector, and a training strategy enhanced by a large language model is used to train the risk identification model. The risk identification model trained by the application identifies potential hazards in real-time data and triggers the large language model to generate a graded control audit report based on the identification results and grading criteria. At the same time, the prediction residuals and attention weight analysis results generated during the model training process are fed back to the hazardous chemical safety knowledge graph to correct entity attributes or relationship paths.
2. The method for identifying and classifying the risks and hazards of hazardous chemicals according to claim 1, characterized in that, The process of constructing the mechanistic entity includes: The reaction kinetic equations and energy conservation equations corresponding to key equipment in the coal-based syngas process are encapsulated into computable mechanism function entities; The mechanism function entity receives real-time input process parameters and calculates and outputs yield or efficiency indicators through a built-in physical information neural network. The process parameters and output indicators are treated as dynamic attribute relationships and connected to the corresponding equipment entities in the hazardous chemicals safety knowledge graph.
3. The method for identifying and classifying the risks and hazards of hazardous chemicals according to claim 1, characterized in that, The process of proactively discovering and completing key process entities through a large language model includes: When encountering an unregistered field name during semantic mapping, an entity discovery agent driven by a large language model is automatically triggered. The entity discovery agent parses the semantics of the unlogged-in fields and retrieves concept definitions from process manuals and papers to generate suggested information containing candidate entity names, attribute lists and their definitions; After manual verification, the candidate entities and their attributes are added as new process key entities to the hazardous chemical safety knowledge graph.
4. The method for identifying and classifying the risks and hazards of hazardous chemicals according to claim 1, characterized in that, The process of calculating the power spectral density of the high-frequency time series data using the spectrum analysis module and extracting transient features based on the proportion of high-frequency energy includes: calculating the power spectral density of the high-frequency time series data and determining whether the proportion of high-frequency energy in the total energy exceeds a preset transient determination threshold. If it exceeds the threshold, then simultaneously performing sliding window statistical calculation in the time domain and wavelet transform in the frequency domain on the time series data, and concatenating the obtained time domain statistical features with the frequency domain transform coefficients to form a feature representation that fuses transient information.
5. The method for identifying and classifying the risks and hazards of hazardous chemicals according to claim 1, characterized in that, The process of using a fine-tuned large language model to analyze key indicators of the unstructured text report to output structured data includes: pre-constructing an instruction prompt template for the field of hazardous chemicals, wherein the instruction prompt template clearly lists the specific key parameters to be extracted and their expected data format; inputting the manual inspection record or accident investigation report text together with the instruction prompt template into the fine-tuned large language model, so that the large language model outputs structured data containing the extracted key parameter values or states.
6. The method for identifying and classifying the risks and hazards of hazardous chemicals according to claim 1, characterized in that, The process of using a large language model combined with the metadata context of the data for dynamic entity disambiguation and alignment includes: when the name of a certain numerical field is consistent with the attribute name of multiple candidate entities in the hazardous chemicals safety knowledge graph, resulting in matching ambiguity, the metadata of the device segment to which the data source belongs, the sampling point location, and the statistical distribution characteristics of the field value are packaged into contextual hint information, input into the large language model, and the large language model infers and outputs the unique matching target entity.
7. The method for identifying and classifying the risks and hazards of hazardous chemicals according to claim 1, characterized in that, The process of using fault tree subgraphs for correlation reasoning and identifying derived sensitive data includes: first constructing a fault tree subgraph in the hazardous chemical safety knowledge graph with preset risk events as core events; when a new data item is mapped to an entity in the graph, traversing the attribute relationship paths from the entity to each top event node; if there is a reachable path and the entity attribute on the path is marked as a risk factor, then the safety level of the data item is upgraded to the sensitive level.
8. The method for identifying and classifying the risks and hazards of hazardous chemicals according to claim 1, characterized in that, The process of automatically tracing back upstream and downstream processes using the causal path relationships in the hazardous chemical safety knowledge graph to construct a cross-process composite feature vector includes: Determine the target variable to be predicted by the risk identification model, and retrieve all causal attribute relationship paths ending with the target variable from the hazardous chemicals safety knowledge graph; Tracing back upstream along the causal attribute relationship path, identify and extract the time-series data associated with each relevant entity along the path; Window statistical features are calculated on the extracted upstream process time series data, and the calculated window statistical features are combined with the real-time data features of the process in which the target variable is located to form a composite feature vector characterizing the cross-process coupling effect.
9. A system for identifying and classifying the risks and hazards of hazardous chemicals, characterized in that, include: Multimodal data acquisition and fusion management module: Collects multimodal data from the production process of hazardous chemicals, is equipped with a spectrum analysis unit to extract transient features from the high-frequency time series data, and integrates a large language model finely tuned by instructions to perform structured analysis of key indicators in the unstructured text report; Safety Knowledge Graph Module: Constructs and dynamically maintains a safety knowledge graph for hazardous chemicals. The knowledge graph includes mechanism entities encapsulated based on process mechanism equations, key process entities actively discovered and supplemented from multi-source heterogeneous information by a large language model, and attribute relationships between the entities used to characterize the coupling links of process parameters. Data semantic mapping and quality assessment module: Based on the knowledge graph, semantic mapping is performed on the managed multimodal data, and a large language model disambiguation unit is built in. During the mapping process, dynamic entity disambiguation and alignment are performed using the metadata context of the data. Multi-dimensional data quality assessment is performed on the mapped data, and a corresponding quality score is generated for each data item. Data grading and partitioning module: Using the fault tree subgraph pre-constructed in the knowledge graph with the core risk event as the top event, the module performs correlation reasoning on the data that has completed semantic mapping, identifies and prioritizes the processing of derived sensitive data that are indirectly related to the core sensitive event, and determines the security level of each data by combining the process risk characteristics of the data with the quality score. Then, it performs partitioning and isolation operations on the data based on the security level and the quality score. Risk identification model training module: For the partitioned data, the causal path relationship in the knowledge graph is used to automatically trace back the upstream and downstream processes, construct a cross-process composite feature vector, and train the risk identification model using a training strategy enhanced by a large language model. Risk identification and closed-loop management module: The risk identification model trained by the application identifies potential hazards in real-time data and triggers the large language model to generate a hierarchical management and audit report containing decision-making basis and control measure suggestions based on the identification results and hierarchical criteria. At the same time, the prediction residuals and attention weight analysis results generated during model training and verification are fed back to the knowledge graph module to correct entity attributes or relationship paths.
