Hybrid prediction method of safety production risk combining physical mechanism and expert experience

By combining multi-source monitoring data and expert experience in safety production risk prediction, a set of differential equations and a structured rule set are established, and the weights are dynamically adjusted. This solves the problem of coordination between physical mechanism models and expert experience systems, and achieves high-precision and robust risk prediction.

CN123180709APending Publication Date: 2026-11-27ZHEJIANG YUFAN INTELLIGENT TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611027524.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, physical mechanism models and expert experience systems lack effective synergy in predicting safety production risks, and the fusion of prediction results lacks adaptability, resulting in insufficient prediction accuracy and robustness.

Method used

By acquiring multi-source monitoring data of the safe production process, a set of differential equations is established and expert experience knowledge is transformed into a structured rule set. An adaptive weighted fusion mechanism is constructed by combining deviation magnitude and reasoning path credibility, and physical and experience weights are dynamically adjusted to generate comprehensive risk prediction results.

Benefits of technology

It significantly improves the accuracy and reliability of risk prediction, and can maintain robust prediction results when the process changes, avoiding misjudgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180709A_ABST
    Figure CN123180709A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of safety production risk prediction, and particularly relates to a safety production risk hybrid prediction method fusing physical mechanism and expert experience. By acquiring multi-source monitoring data, a differential equation set describing process physical variables is established, and a structured rule set is extracted from historical accident cases and operation procedures; the monitoring data is substituted into the differential equation set for time domain deduction to generate a physically driven risk prediction result; the working condition characteristics are matched with the rule set to activate the reasoning chain deduction to a risk conclusion to generate an experience driven risk prediction result; an adaptive weighted fusion mechanism with deviation amplitude and reasoning path credibility as dual-dimensional input is constructed to dynamically adjust the physical weight and the experience weight, and output a comprehensive risk prediction result. The present application improves the accuracy and robustness of risk prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of safety production risk prediction technology, and in particular to a hybrid prediction method for safety production risks that integrates physical mechanisms and expert experience. Background Technology

[0002] In the field of safety production risk prediction technology, existing conventional practices are mainly divided into physical mechanism-based modeling methods and expert experience-based reasoning methods. Physical mechanism methods typically rely on establishing accurate mathematical models of the production process, such as describing the dynamic evolution of process variables like temperature, pressure, and flow rate through differential equations, and using numerical solution techniques to predict risk trends. Expert experience-based methods focus on transforming knowledge from historical accident cases, operating procedures, and safety regulations into a rule base, generating risk level assessments through rule matching and logical reasoning. These two methods are independently applied to different scenarios, such as high-risk industries like chemical, mining, or power.

[0003] One drawback of conventional approaches is the lack of effective coordination between physical mechanism models and expert experience systems. While physical models can accurately reflect the dynamic changes of process variables, they struggle to handle sudden, nonlinear, and complex operating conditions, and are highly sensitive to model parameters. If actual operating conditions deviate from the assumptions, the prediction results may be significantly biased. Expert experience systems, on the other hand, rely on static rule bases and lack the ability to respond to real-time trends in process variables. When the rule base does not cover new risk patterns, the inference results may become invalid or misjudged.

[0004] Another drawback is the lack of adaptability when fusing the prediction results of the two methods. Existing technologies typically use fixed weights or simple averaging to merge results, failing to dynamically adjust the contribution ratio of physical models and empirical inference based on the stage of risk evolution or the credibility of inference. For example, in the early stages of an accident, physical trends may be more reliable, while expert experience should dominate when data is missing or the model is mismatched. However, existing fusion mechanisms struggle to achieve this dynamic trade-off, resulting in insufficient overall prediction accuracy and robustness. Summary of the Invention

[0005] This invention provides a hybrid prediction method for safety production risks that integrates physical mechanisms and expert experience, which can solve the problems in the prior art.

[0006] A first aspect of this invention provides a hybrid prediction method for safety production risks that integrates physical mechanisms and expert experience, comprising: Acquire multi-source monitoring data of the safe production process, establish a set of differential equations describing the evolution of physical variables over time based on the process flow, and extract expert experience knowledge from historical accident cases and operating procedures, transforming it into a structured rule set consisting of a set of preconditions, intermediate reasoning chains, and risk conclusions. The multi-source monitoring data is used as the boundary and initial conditions to perform forward time-domain deduction of the differential equation system, calculate the deviation magnitude and deviation rate of each process physical variable relative to the safety threshold, and generate physical-driven risk prediction results containing deviation values ​​and risk evolution trends. The working condition features in the multi-source monitoring data are matched one by one with the precondition groups in the structured rule set. The corresponding intermediate inference chain is activated for the matched rules, and the inference chain is deduced step by step to the risk conclusion node to generate an experience-driven risk prediction result containing risk level and inference path credibility. An adaptive weighted fusion mechanism with deviation magnitude and inference path credibility as two-dimensional inputs is constructed to fuse the physical-driven risk prediction results and the experience-driven risk prediction results. The physical weights are dynamically adjusted according to the deviation rate, and the experience weights are dynamically adjusted according to the inference path credibility, so as to output a comprehensive safety production risk prediction result.

[0007] Acquire multi-source monitoring data of the safe production process and establish a set of differential equations based on the process flow, including: The multi-source monitoring data includes real-time monitoring data of process parameters, monitoring data of equipment operating status, and monitoring data of the on-site environment. The three types of monitoring data are aligned with a unified timestamp to form a multi-dimensional time-series data matrix. Each column of the multi-dimensional time-series data matrix corresponds to a process physical variable, and each row corresponds to a sampling time. Data with missing sampling times are filled with the interpolation results of adjacent sampling times. For each process node involving material input and output in the process flow, based on the material balance relationship that the total amount of material entering the node is equal to the sum of the total amount of material leaving the node and the cumulative amount of material within the node, a material balance relationship with the mass flow rate of each component as the variable is established. For each process node involving heat transfer in the process flow, based on the heat balance relationship that the total amount of heat entering the node is equal to the sum of the total amount of heat leaving the node and the cumulative amount of heat within the node, a heat balance relationship with the temperature of each node as the variable is established. By combining the material balance and heat balance equations for all process nodes, and taking time as the independent variable and each process physical variable as the dependent variable, a set of differential equations is formed to describe the coupling relationship between the process physical variables. The coefficients of each equation in the set of differential equations are determined based on the process design parameters and material property data.

[0008] Transforming expert experience and knowledge into a structured rule set consisting of a set of preconditions, intermediate reasoning chains, and risk conclusions, including: The precondition group consists of at least two conditional predicates combined with logical AND or logical OR relations. Each conditional predicate describes the magnitude relationship between a process physical variable or its derived feature and a corresponding conditional threshold. The derived feature is the mean, variance, or rate of change of the process physical variable within a specified time window. The intermediate reasoning chain is composed of multiple reasoning steps connected sequentially with directed edges. Each reasoning step includes a reasoning premise and a reasoning conclusion. The reasoning conclusion of the previous reasoning step serves as the reasoning premise of the next reasoning step. The reasoning premise of the first reasoning step is associated with the premise condition group, and the reasoning conclusion of the last reasoning step is associated with the risk conclusion. The risk conclusion includes a risk type identifier, a risk level, and recommended treatment measures. The same risk type identifier corresponds to multiple risk levels, and each risk level corresponds to different recommended treatment measures. The risk level scales of different risk type identifiers are independent of each other. Redundancy checks are performed on the structured rules obtained from the transformation. When two rules have the same set of preconditions and the same risk conclusion, only one rule is retained and the other rule is deleted. When two rules have the same set of preconditions but different risk conclusions, they are marked as conflicting rules.

[0009] The multi-source monitoring data is used as boundary and initial conditions to perform a forward time-domain derivation of the differential equations, including: Using the measured values ​​of process physical variables at the current sampling time as initial conditions and the material flow rate and temperature at the process inlet as boundary conditions, the differential equation system is solved by recursively solving along the time axis using a fixed-step numerical integration method, and the predicted values ​​of each process physical variable are output at each integration step. The predicted values ​​of each process physical variable are compared with the preset upper and lower safety thresholds. When the predicted value exceeds the upper safety threshold, it is recorded as a positive deviation. When the predicted value is lower than the lower safety threshold, it is recorded as a negative deviation. The ratio of the difference between the predicted value and the nearest safety threshold to the width of the safety threshold interval is calculated as the deviation magnitude. The deviation rate is obtained by dividing the change in deviation between adjacent integration steps by the integration step size. The risk evolution trend is determined as an aggravating trend, a convergent trend, or a stable trend based on the monotonic change direction of the deviation amplitude in multiple consecutive integration steps. When the deviation amplitude increases monotonically within a preset number of consecutive integration steps, it is determined as an aggravating trend. When the deviation amplitude decreases monotonically within a preset number of consecutive integration steps, it is determined as a convergent trend. All other cases are determined as a stable trend. The predicted values, deviation magnitudes, deviation rates, and risk evolution trends of the process physical variables at each integration step are organized into physical-driven risk prediction results by time series and then output.

[0010] In the forward time-domain extrapolation process, abnormal operating condition steps are identified and corrected, including: After each integration step is completed, the predicted values ​​of the process physical variables of the current integration step are substituted back into the system of differential equations, and the difference between the left-hand side and the right-hand side of the equations is calculated as the numerical solution residual. The numerical solution residual is compared with the residual tolerance value. When the numerical solution residual exceeds the residual tolerance value, the current integration step is marked as an abnormal working condition step. For the abnormal operating step, physical constraint equations are constructed based on the material balance and thermodynamic balance relationships between the physical variables of each process in the process flow. The physical constraint equations take the constraint form of satisfying the material balance and thermal balance between the corrected values ​​of each process physical variable in the abnormal operating step and the predicted values ​​of the adjacent normal integration step. The physical constraint equation is used as the constraint condition and the objective function is to minimize the correction amount of the predicted value of the abnormal working condition step. The correction value obtained by the optimization solution is used to replace the original predicted value. The correction value is used as the starting point of the next integration step to continue the forward time domain deduction. The timestamp of the abnormal working condition step and the difference between the predicted values ​​before and after the correction are recorded in the deduction log. Based on the revised predicted values, the deviation magnitude and deviation rate of the abnormal operating condition step and its subsequent integral steps are recalculated, and the corresponding risk evolution trend judgment results are updated.

[0011] The operating condition features in the multi-source monitoring data are matched one by one with the precondition groups in the structured rule set, including: The operating condition characteristics are decomposed into several feature dimensions. Each feature dimension corresponds to the current monitoring value of a process physical variable or the statistical derivative of the current monitoring value within a specified backtracking window. The statistical derivative includes the moving average, moving standard deviation, or moving rate of change. The length of the specified backtracking window is determined based on the dynamic response time constant of the corresponding process physical variable. For each rule in the structured rule set, the normalized deviation between the feature value and the condition threshold is calculated on each feature dimension. The normalized deviation is then input into a preset mapping function to obtain the satisfaction value. The preset mapping function is a continuous function that monotonically decreases over the range of normalized deviation values. For the satisfaction values ​​of all feature dimensions in the precondition group of a rule, the minimum value of the satisfaction value of each feature dimension is taken as the comprehensive satisfaction value by combining them in a logical AND manner, or the maximum value of the satisfaction value of each feature dimension is taken as the comprehensive satisfaction value by combining them in a logical OR manner. The overall satisfaction level is compared with the overall satisfaction threshold. When the overall satisfaction level reaches the overall satisfaction threshold, the rule is determined to be a match. The intermediate inference chain corresponding to the rule is activated, and the identifiers of all matched rules and their corresponding overall satisfaction levels are recorded.

[0012] When the same working condition feature simultaneously triggers the conditions of multiple rules, conflict resolution and conclusion fusion are performed on the multiple inference chains that are activated in parallel, including: For each rule that is matched, its corresponding intermediate reasoning chain is activated. The reasoning chain is independently deduced step by step along the directed edge direction to its respective risk conclusion node, and the risk level and recommended handling measures are obtained for each reasoning chain. Calculate the activation intensity of each inference chain. The activation intensity is the result of normalizing the sum of the satisfaction values ​​of each feature dimension in the premise group of the corresponding rule with the preset importance weight of each feature dimension. The normalization process makes the sum of the activation intensities of all matching hit rules equal to one. The fusion risk level is obtained by weighting the risk levels output by each inference chain by using the activation intensity of each inference chain as the weight. The suggested measures output by each inference chain are sorted from high to low according to their activation intensity. The suggested measures with the highest activation intensity are selected as the fusion suggested measures. The fusion risk level is combined with the fusion suggested measures to generate the fusion experience-driven risk prediction result. When the difference in activation intensity between the inference chain with the highest activation intensity and the inference chain with the second highest activation intensity is less than a preset difference threshold, the suggested handling measures corresponding to the two inference chains are simultaneously included in the fused experience-driven risk prediction results and a conflict indicator is added.

[0013] A second aspect of the present invention provides a hybrid prediction system for safety production risks that integrates physical mechanisms and expert experience, comprising: The physical modeling unit is used to acquire multi-source monitoring data of the safe production process, establish a set of differential equations describing the evolution of physical variables in the process over time based on the process flow, and extract expert experience knowledge from historical accident cases and operating procedures, and transform it into a structured rule set consisting of a set of preconditions, intermediate reasoning chains and risk conclusions. The rule matching unit is used to substitute the multi-source monitoring data as boundaries and initial conditions into the system of differential equations to perform forward time-domain deduction, calculate the deviation magnitude and deviation rate of each process physical variable relative to the safety threshold, and generate a physical-driven risk prediction result containing the deviation value and risk evolution trend. The fusion prediction unit is used to match the working condition features in the multi-source monitoring data with the precondition group in the structured rule set one by one, activate the corresponding intermediate inference chain for the matched rules, and deduce the risk conclusion node step by step along the inference chain to generate an experience-driven risk prediction result containing risk level and inference path credibility. The processing unit is used to construct an adaptive weighted fusion mechanism with deviation magnitude and inference path credibility as two-dimensional inputs, to fuse the physical-driven risk prediction results and the experience-driven risk prediction results, dynamically adjust the physical weights according to the deviation rate, dynamically adjust the experience weights according to the inference path credibility, and output a comprehensive safety production risk prediction result.

[0014] A third aspect of the present invention provides an electronic device, comprising: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.

[0015] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.

[0016] The organic integration of differential equation derivation based on physical mechanisms and expert empirical rule reasoning significantly improves the accuracy and reliability of risk prediction. The physics-driven component, through forward time-domain derivation, accurately calculates the magnitude and rate of deviation of each process's physical variables from safety thresholds, capturing the continuous dynamic trend of risk evolution with the process flow and avoiding prediction inaccuracies in purely data-driven methods when operating conditions change. The empirically-driven component utilizes a structured rule set for hierarchical reasoning, directly linking historical accident cases and logical chains in operating procedures, outputting results that include risk level and the credibility of the reasoning path, effectively compensating for the limitations of physical models in complex nonlinear or unknown scenarios.

[0017] The adaptive weighted fusion mechanism addresses the limitations of single-model predictions by dynamically adjusting both the deviation rate and the credibility of the inference path. When the deviation rate of physical variables accelerates, the physical weights automatically increase to enhance the response to evolutionary trends; conversely, when the credibility of the empirical rule inference path is high, the empirical weights are correspondingly increased to highlight the guiding role of prior knowledge. This dynamic balance ensures robust fusion results even under conditions of drastic process fluctuations or incomplete rule coverage, avoiding the risk of misjudgment caused by fixed weights. Attached Figure Description

[0018] Figure 1 A flowchart illustrating a hybrid prediction method for safety production risks that integrates physical mechanisms and expert experience. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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.

[0020] The technical solution of the present invention will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0021] Figure 1 This is a flowchart illustrating the hybrid prediction method for safety production risks that integrates physical mechanisms and expert experience, as described in an embodiment of the present invention. Acquire multi-source monitoring data of the safe production process, establish a set of differential equations describing the evolution of physical variables over time based on the process flow, and extract expert experience knowledge from historical accident cases and operating procedures, transforming it into a structured rule set consisting of a set of preconditions, intermediate reasoning chains, and risk conclusions. The multi-source monitoring data is used as the boundary and initial conditions to perform forward time-domain deduction of the differential equation system, calculate the deviation magnitude and deviation rate of each process physical variable relative to the safety threshold, and generate physical-driven risk prediction results containing deviation values ​​and risk evolution trends. The working condition features in the multi-source monitoring data are matched one by one with the precondition groups in the structured rule set. The corresponding intermediate inference chain is activated for the matched rules, and the inference chain is deduced step by step to the risk conclusion node to generate an experience-driven risk prediction result containing risk level and inference path credibility. An adaptive weighted fusion mechanism with deviation magnitude and inference path credibility as two-dimensional inputs is constructed to fuse the physical-driven risk prediction results and the experience-driven risk prediction results. The physical weights are dynamically adjusted according to the deviation rate, and the experience weights are dynamically adjusted according to the inference path credibility, so as to output a comprehensive safety production risk prediction result.

[0022] Acquire multi-source monitoring data of the safe production process and establish a set of differential equations based on the process flow, including: The multi-source monitoring data includes real-time monitoring data of process parameters, monitoring data of equipment operating status, and monitoring data of the on-site environment. The three types of monitoring data are aligned with a unified timestamp to form a multi-dimensional time-series data matrix. Each column of the multi-dimensional time-series data matrix corresponds to a process physical variable, and each row corresponds to a sampling time. Data with missing sampling times are filled with the interpolation results of adjacent sampling times. For each process node involving material input and output in the process flow, based on the material balance relationship that the total amount of material entering the node is equal to the sum of the total amount of material leaving the node and the cumulative amount of material within the node, a material balance relationship with the mass flow rate of each component as the variable is established. For each process node involving heat transfer in the process flow, based on the heat balance relationship that the total amount of heat entering the node is equal to the sum of the total amount of heat leaving the node and the cumulative amount of heat within the node, a heat balance relationship with the temperature of each node as the variable is established. By combining the material balance and heat balance equations for all process nodes, and taking time as the independent variable and each process physical variable as the dependent variable, a set of differential equations is formed to describe the coupling relationship between the process physical variables. The coefficients of each equation in the set of differential equations are determined based on the process design parameters and material property data.

[0023] The collection of multi-source monitoring data covers three levels of information sources in the safe production process. Real-time monitoring data of process parameters includes continuous measurements that directly reflect the process operating status, such as reactor pressure, pipeline flow rate, material concentration, and liquid level. These are continuously reported by sensors distributed at key nodes in the process flow at a fixed sampling frequency. Equipment operating status monitoring data includes parameters reflecting the mechanical and electrical health status of equipment, such as pump vibration amplitude, motor current, valve opening, and bearing temperature rise. These are acquired through embedded sensors or external acquisition units. On-site environmental monitoring data includes environmental parameters affecting risk diffusion and personnel safety, such as combustible gas concentration, toxic gas concentration, ambient temperature and humidity, and wind speed and direction. These are provided by fixed gas detectors and weather stations. The sampling frequencies of the above three types of data differ due to different sensor types. To achieve data fusion under a unified time reference, time alignment of each data stream is performed using a unified timestamp with millisecond-level precision. The sampled values ​​of all variables are mapped onto a common time axis, forming a multi-dimensional time-series data matrix.

[0024] The structure of a multidimensional time-series data matrix specifies that each column corresponds to a process physical variable, and each row corresponds to a sampling time. Let the matrix have a total of... Physical variables of each process If there are sampling times, then the matrix dimension is Due to inconsistent sampling periods of different sensors, or due to communication failures, temporary sensor malfunctions, or other reasons, some variables at certain sampling moments may have missing values. For data at missing sampling moments, interpolation results from adjacent sampling moments are used to fill in the missing values. Specifically, for the first... The process physical variable in the th... Missing values ​​at the nth sampling time, with the variable at the nth sampling time as the first value. The sampling time and the first The observations at each sampling time point are used as endpoints. Linear interpolation is performed proportionally to the time interval, and the interpolation result is... ,in For the first The sampling time of the first sampling moment The interpolation results of each variable, , , The first , , The time value corresponding to each sampling moment. When the number of consecutive missing moments exceeds a preset threshold, a data quality alarm is triggered, and the average value of the variable at several moments before and after the missing segment is used as the basis for filling, so as to avoid excessive interpolation error caused by long missing segments.

[0025] Each process node involving material input and output in the technological process establishes a material balance equation based on the principle of material conservation. For the first... For each process node, the sum of the mass flow rates of all components entering that node equals the sum of the mass flow rates of all components leaving that node and the time derivative of the accumulated material within that node. This satisfies the material balance relationship: Total incoming mass flow rate = Total outgoing mass flow rate. Material accumulation rate within the node. Conservation equations are written for each component, using its mass flow rate as the variable. For example, for nodes involving chemical reactions, reaction consumption and production terms need to be introduced on the right-hand side of the equation. The reaction rate is described using the Arrhenius equation with node temperature and component concentration as parameters. Parameters such as pipe flow coefficients and valve resistance coefficients in the material balance equations are determined based on pipe specifications, valve models, and installation locations from the process design documents. Material properties (such as density and viscosity) are obtained from a property database based on the material composition and current temperature and pressure conditions.

[0026] For each process node involving heat transfer in the process flow, a heat balance equation is established based on the principle of energy conservation. The total heat entering the node includes: sensible and latent heat carried by the material flow, heat input from external heat exchangers or heating media, and heat of reaction released by exothermic reactions. The total heat leaving the node includes: sensible and latent heat carried by the material flow, heat lost through heat exchange surfaces, and heat of reaction consumed by endothermic reactions. The rate of change of the accumulated heat within the node is equal to the difference between the total heat entering and the total heat leaving. Using the node temperature as the state variable, the above heat items are expressed using parameters such as node temperature, material mass flow rate, specific heat capacity, heat transfer coefficient, and heat transfer area, resulting in a heat balance differential equation with the node temperature as the time derivative on the left-hand side. The heat transfer coefficient is determined based on the heat exchanger design specifications and fouling thermal resistance data of the process equipment, while the specific heat capacity is obtained from a physical property database based on the material composition and temperature.

[0027] By combining the material balance and heat balance equations for all process nodes, and using time *t* as the independent variable and the physical variables of each process (including component mass flow rate, node temperature, and node pressure) as the dependent variable, a set of differential equations describing the coupling relationships between process physical variables is formed. In this set of equations, different nodes are coupled through material flow and heat transfer. A temperature change at one node affects the heat balance of downstream nodes through material flow, and a pressure change at one node affects the material balance of adjacent nodes through the flow equation, thus reflecting the global coupling characteristics of the process flow at the equation set level. The coefficients of each equation in the set of equations are determined by two types of data: process design parameters, including pipe diameter, equipment volume, heat exchange area, and rated flow rate, derived from process design drawings and equipment ledgers; and material property data, including density, specific heat capacity, thermal conductivity, viscosity, and heat of reaction, derived from property databases or laboratory test reports. For physical properties that vary significantly with temperature or pressure, piecewise linearization or polynomial fitting is used to express them as functions of state variables and embed them in the equation coefficients, so that the equation system can maintain high descriptive accuracy over a wide range of operating conditions.

[0028] After establishing the system of differential equations, its numerical solution capability needs to be verified. Multi-source monitoring data under historical normal operating conditions are selected as initial and boundary conditions, substituted into the equation system, and numerical integration is performed. The calculated time trajectories of each process physical variable are compared with the measured values ​​during the same period. If the root mean square deviation between the calculated trajectory and the measured trajectory of a variable exceeds a preset proportion of the variable's range, the coefficients of the corresponding equations are corrected. The correction method involves re-identifying the coefficients using least squares estimation with reference to the measured data. After coefficient correction, the system of differential equations possesses the ability to reliably describe the evolution of process physical variables under current technological conditions. It can serve as the computational basis for subsequent time-domain forward extrapolation, providing accurate physical model support for the generation of physical-driven risk prediction results.

[0029] Transforming expert experience and knowledge into a structured rule set consisting of a set of preconditions, intermediate reasoning chains, and risk conclusions, including: The precondition group consists of at least two conditional predicates combined with logical AND or logical OR relations. Each conditional predicate describes the magnitude relationship between a process physical variable or its derived feature and a corresponding conditional threshold. The derived feature is the mean, variance, or rate of change of the process physical variable within a specified time window. The intermediate reasoning chain is composed of multiple reasoning steps connected sequentially with directed edges. Each reasoning step includes a reasoning premise and a reasoning conclusion. The reasoning conclusion of the previous reasoning step serves as the reasoning premise of the next reasoning step. The reasoning premise of the first reasoning step is associated with the premise condition group, and the reasoning conclusion of the last reasoning step is associated with the risk conclusion. The risk conclusion includes a risk type identifier, a risk level, and recommended treatment measures. The same risk type identifier corresponds to multiple risk levels, and each risk level corresponds to different recommended treatment measures. The risk level scales of different risk type identifiers are independent of each other. Redundancy checks are performed on the structured rules obtained from the transformation. When two rules have the same set of preconditions and the same risk conclusion, only one rule is retained and the other rule is deleted. When two rules have the same set of preconditions but different risk conclusions, they are marked as conflicting rules.

[0030] When transforming expert experience and knowledge into a structured rule set, the construction of precondition groups serves as the logical entry point for the entire rule system. Each precondition group consists of at least two conditional predicates, which can be connected using either logical AND or logical OR relationships. Logical AND requires all participating conditional predicates to be true simultaneously for the rule to be activated; logical OR, on the other hand, only requires any one of the conditional predicates to be true to trigger rule activation. This design allows precondition groups to flexibly describe various operating condition combinations, such as multi-variable joint exceedances and single-variable arbitrary exceedances, closely reflecting the objective laws that accident precursors in actual production processes often exhibit a complex interplay of multiple factors.

[0031] Each conditional predicate targets a specific process physical variable or its derived features, describing the relationship between that variable and the corresponding conditional threshold, including comparison operations such as greater than, greater than or equal to, less than, less than or equal to, and equal to. Derived features cover three categories: mean, variance, and rate of change of the process physical variable within a specified time window. Mean derived features are used to capture persistently high or low states of the variable over a period of time, filtering out false alarms caused by short-term fluctuations. Variance derived features characterize the severity of variable fluctuations; when a physical quantity exhibits abnormal oscillations within a short period, the variance index increases significantly, triggering the corresponding conditional predicate. Rate of change derived features reflect the dynamic trend of the variable, enabling the early detection of rapidly deteriorating trends before the variable exceeds its absolute threshold. The length of the time window is set according to the response characteristics of the specific process; different variables can be configured with different window widths to accommodate the time scale differences of various physical quantities.

[0032] The intermediate inference chain is the core inference structure connecting the precondition set and the risk conclusion. It consists of multiple inference steps linked together by directed edges. Each inference step contains an inference premise and an inference conclusion. The inference conclusion output by the previous inference step directly serves as the inference premise for the next inference step, forming a progressively advancing causal deduction chain. The inference premise of the first inference step is associated with the precondition set; that is, when the precondition set is satisfied, the first inference step receives an activation signal. The inference conclusion of the last inference step is associated with the risk conclusion node. After the entire chain is deduced, the risk conclusion node outputs the final judgment. This directed chain structure can completely reproduce the step-by-step inference process of experts analyzing potential accident hazards, making the inference process interpretable and auditable. Each inference step can carry a confidence parameter to measure the hit rate and reliability of the inference in historical cases. The credibility of the entire inference chain is calculated by comprehensively calculating the confidence of each inference step according to certain rules, providing a quantitative basis for subsequent adaptive weighted fusion.

[0033] The risk conclusion node comprises three core fields: risk type identifier, risk level, and recommended handling measures. The risk type identifier distinguishes different types of safety risks, such as over-temperature risk, over-pressure risk, leakage risk, and equipment fatigue risk. Each risk type has an independent rating scale system, and the rating values ​​of different risk types are not compared horizontally to avoid misjudgment due to inconsistent dimensions. Multiple risk levels are set under the same risk type identifier, with levels corresponding to increasing risk severity. Each risk level corresponds to a set of recommended handling measures, including operational intervention suggestions, equipment shutdown conditions, and emergency response procedures. The specific content is derived from operating procedures and historical accident handling records. This three-field design allows the risk conclusion to not only output a judgment result but also directly guide on-site operators to take targeted actions, shortening the time from risk identification to response.

[0034] After rule transformation, redundancy detection and conflict marking are required for all structured rules. The redundancy detection criteria are: two rules must have identical precondition sets and identical risk conclusions. When this condition is met, the two rules are logically equivalent; retaining one and deleting the other eliminates redundancy. To determine if precondition sets are identical, the variable identifiers, derived feature types, comparison operators, and condition thresholds of each condition predicate must be compared one by one. Simultaneously, the logical connections between condition predicates must be examined. Only when all four elements and connections are completely matched are the two precondition sets considered identical.

[0035] The criteria for identifying conflicting rules are: two rules have the same set of preconditions but different risk conclusions. Different risk conclusions include two scenarios: first, the risk type identifiers are the same but the risk levels are different, indicating that the two rules give different severity judgments under the same operating condition; second, the risk type identifiers themselves are different, indicating that the two rules point to different types of risks under the same operating condition. Upon detecting a conflicting rule, both rules are marked as conflicting. Neither rule is directly deleted; instead, the conflict information is recorded in the conflict log of the rule base for manual review and adjudication by domain experts. Before manual confirmation, conflicting rules can be set to a reduced-weight activation mode, that is, assigned a lower confidence weight during the inference process, to avoid conflicting rules directly outputting high-confidence risk conclusions, thereby ensuring the robustness of the overall prediction results.

[0036] After redundancy detection and conflict marking are completed, the rule base becomes usable. The rule base supports an incremental update mechanism. When new historical incident cases or revised operating procedures are incorporated into the knowledge source, newly extracted rules must undergo the redundancy detection and conflict marking process again before being added to the rule base, ensuring the rule base always maintains logical consistency. For rules marked as conflicting, after a final decision is made through manual review, the rule's activation status and credibility parameters are updated based on the decision, enabling the rule base to continuously optimize with knowledge accumulation and constantly improve the accuracy and reliability of experience-driven risk prediction results.

[0037] The entire process of constructing the structured rule set transforms the implicit experience of experts into a computable, verifiable, and maintainable explicit knowledge representation, providing a standardized input interface for subsequent working condition feature matching and inference chain deduction. At the same time, the quality of the rule base is guaranteed through redundancy detection and conflict marking mechanisms, fundamentally supporting the credibility of the experience-driven branch in the fusion prediction method.

[0038] The multi-source monitoring data is used as boundary and initial conditions to perform a forward time-domain derivation of the differential equations, including: Using the measured values ​​of process physical variables at the current sampling time as initial conditions and the material flow rate and temperature at the process inlet as boundary conditions, the differential equation system is solved by recursively solving along the time axis using a fixed-step numerical integration method, and the predicted values ​​of each process physical variable are output at each integration step. The predicted values ​​of each process physical variable are compared with the preset upper and lower safety thresholds. When the predicted value exceeds the upper safety threshold, it is recorded as a positive deviation. When the predicted value is lower than the lower safety threshold, it is recorded as a negative deviation. The ratio of the difference between the predicted value and the nearest safety threshold to the width of the safety threshold interval is calculated as the deviation magnitude. The deviation rate is obtained by dividing the change in deviation between adjacent integration steps by the integration step size. The risk evolution trend is determined as an aggravating trend, a convergent trend, or a stable trend based on the monotonic change direction of the deviation amplitude in multiple consecutive integration steps. When the deviation amplitude increases monotonically within a preset number of consecutive integration steps, it is determined as an aggravating trend. When the deviation amplitude decreases monotonically within a preset number of consecutive integration steps, it is determined as a convergent trend. All other cases are determined as a stable trend. The predicted values, deviation magnitudes, deviation rates, and risk evolution trends of the process physical variables at each integration step are organized into physical-driven risk prediction results by time series and then output.

[0039] During forward time-domain simulation, the measured values ​​of process physical variables at the current sampling moment are used as initial conditions input into the differential equation system. Specifically, the collected values ​​of various process physical variables such as temperature, pressure, flow rate, and liquid level at the current moment are directly assigned to the state vector of the differential equation system. At the same time, the material flow rate and temperature at the process inlet are applied as boundary conditions to the boundary terms of the equation system. This setting ensures that the simulation starting point is strictly aligned with the actual operating conditions, avoiding systematic drift of subsequent predicted values ​​due to deviations in initial conditions. For complex process scenarios with multiple feed points or multiple stream confluences, the inlet boundary conditions can be assigned separately for each stream, and then merged at the nodes using mass conservation and energy conservation equations to ensure the physical integrity of the boundary conditions.

[0040] A fixed-step numerical integration method is used to recursively solve the system of differential equations along the time axis. The advantage of the fixed-step method is that the computational cost of each integration step is fixed, time alignment is simple, and it is convenient to subsequently organize the outputs of each integration step into a time series at uniform time intervals. In the specific implementation, the integration step size... The selection of the step size needs to balance computational accuracy and real-time requirements: too large a step size can lead to numerical instability in rigid equation systems, while too small a step size increases computational overhead. The step size is usually determined based on the time constant of the physical variable with the fastest response in the process, typically ranging from 1 / 10 to 1 / 5 of that time constant. At the end of each integration step, the predicted values ​​of each process physical variable at the current time are output, forming a discrete-time series for subsequent deviation analysis. For rigid equation systems containing both fast and slow dynamic characteristics, implicit numerical integration schemes (such as the implicit trapezoidal rule or the BDF method) can be used to ensure numerical stability at larger step sizes, thus achieving a balance between accuracy and efficiency.

[0041] After obtaining the predicted values ​​of the process physical variables at each integration step, each predicted value is compared one by one with the preset upper and lower safety thresholds. The upper and lower limits of the safety thresholds are determined by the process design specifications and equipment rated parameters, and are fixed in the system configuration after expert review. When the predicted value of a process physical variable exceeds the upper safety threshold, this state is recorded as a positive deviation; when the predicted value is below the lower safety threshold, it is recorded as a negative deviation; when the predicted value is between the upper and lower limits, no deviation record is generated. Deviation magnitude. The calculation method is as follows: take the absolute value of the difference between the predicted value and the nearest safe threshold boundary, and then divide it by the width of the safe threshold interval of the variable. ,Right now ,in This is the predicted value for the current integration step. It is the safe threshold boundary (upper or lower limit) closest to the predicted value. This represents the difference between the upper and lower limits of the safety threshold. This normalization process ensures that the deviations of process physical variables of different dimensions and magnitudes are comparable, all falling within the dimensionless range of 0 to positive infinity, facilitating unified processing in subsequent fusion stages. When the deviation is 0, it indicates that the predicted value is still within the safe range; the larger the deviation, the more severe the deviation.

[0042] Deviation rate Divide the difference in deviation between two adjacent integration steps by the integration step size. To obtain, that is ,in This represents the deviation at the current integration step. This represents the deviation from the previous integration step. The integral step size is denoted as . A positive deviation rate indicates that the deviation is increasing, a negative value indicates that the deviation is converging, and zero or close to zero indicates that the deviation remains relatively stable. The introduction of the deviation rate allows risk prediction to not only reflect the degree of deviation at the current moment but also capture the dynamic trend of risk changes, providing a quantitative basis for the dynamic adjustment of physical weights in subsequent adaptive weighted fusion.

[0043] The risk evolution trend is determined based on the monotonicity of the deviation magnitude sequence over multiple consecutive integration steps. Let the preset determination window length be... In each integration step, if the deviation from the magnitude sequence satisfies the strictly monotonically increasing condition within the window, the current risk evolution trend is determined to be an escalating trend; if the deviation from the magnitude sequence satisfies the strictly monotonically decreasing condition, it is determined to be a converging trend; if it satisfies neither strictly monotonically increasing nor strictly monotonically decreasing conditions, it is determined to be a stable trend. The determination window length is as follows: This is a configurable parameter, and its value affects the sensitivity and noise resistance of trend determination: the shorter the window, the more sensitive the trend determination is to short-term fluctuations; the longer the window, the more robust the trend determination but the greater the response delay. In practical engineering, The value is typically determined based on the dynamic response characteristics of the process and the allowable early warning response time, with a typical range of 3 to 10 integral steps. For processes with periodic fluctuations, a moving average smoothing process can be applied to the deviation amplitude sequence before trend determination to reduce the interference of periodic disturbances on monotonicity assessment.

[0044] The physical meanings of the three trends are clear: an escalating trend indicates that the current operating condition is continuously deteriorating at the physical mechanism level, requiring immediate early warning and intervention; a converging trend indicates that the applied control actions or the operating condition's own recovery mechanism are working, and the risk is gradually decreasing; and a stabilizing trend indicates that the current deviation is in a relatively balanced state, requiring continuous monitoring but not yet requiring an upgrade of the early warning level. These three trend labels, along with the deviation magnitude and deviation rate, constitute the core elements of the physical-driven risk prediction results.

[0045] After each integration step completes the above calculations, the predicted values ​​of the process physical variables corresponding to that integration step, the deviation magnitude, the deviation rate, and the risk evolution trend labels are appended to the output buffer in chronological order, forming a physical-driven risk prediction time series with the integration step as the time resolution. This time series is organized in a structured array format, with each record containing the integration step number, the corresponding timestamp, the predicted value vector for each process physical variable, the deviation magnitude vector for each variable, the deviation rate vector for each variable, and the trend label vector for each variable. When the extrapolation time span reaches the preset prediction time domain, the complete time series is output as the physical-driven risk prediction result to the fusion stage for comprehensive processing by the adaptive weighted fusion mechanism and the experience-driven risk prediction results. This time-series-organized output format preserves complete dynamic evolution information and facilitates the alignment of the two types of prediction results at specific times during the fusion stage, ensuring the temporal consistency of the fusion calculation.

[0046] In the forward time-domain extrapolation process, abnormal operating condition steps are identified and corrected, including: After each integration step is completed, the predicted values ​​of the process physical variables of the current integration step are substituted back into the system of differential equations, and the difference between the left-hand side and the right-hand side of the equations is calculated as the numerical solution residual. The numerical solution residual is compared with the residual tolerance value. When the numerical solution residual exceeds the residual tolerance value, the current integration step is marked as an abnormal working condition step. For the abnormal operating step, physical constraint equations are constructed based on the material balance and thermodynamic balance relationships between the physical variables of each process in the process flow. The physical constraint equations take the constraint form of satisfying the material balance and thermal balance between the corrected values ​​of each process physical variable in the abnormal operating step and the predicted values ​​of the adjacent normal integration step. The physical constraint equation is used as the constraint condition and the objective function is to minimize the correction amount of the predicted value of the abnormal working condition step. The correction value obtained by the optimization solution is used to replace the original predicted value. The correction value is used as the starting point of the next integration step to continue the forward time domain deduction. The timestamp of the abnormal working condition step and the difference between the predicted values ​​before and after the correction are recorded in the deduction log. Based on the revised predicted values, the deviation magnitude and deviation rate of the abnormal operating condition step and its subsequent integral steps are recalculated, and the corresponding risk evolution trend judgment results are updated.

[0047] In the forward time-domain simulation, after each integration step, the quality of the solution needs to be verified. The predicted values ​​of the process physical variables obtained from the current integration step are substituted back into the system of differential equations. The difference between the left-hand side (approximate derivatives of the variables with respect to time) and the right-hand side (calculated values ​​obtained by substituting the current predicted values ​​into the expression on the right-hand side) is calculated. This difference is the numerical residual. The physical meaning of the residual is: if the predicted values ​​of the current integration step completely satisfy the physical laws described by the system of differential equations, then the left-hand and right-hand sides should be strictly equal, and the residual is zero. When the operating conditions change abruptly, the equipment experiences abnormal disturbances, or the numerical integration method itself becomes unstable in a severely nonlinear region, the residual will deviate significantly from zero. Therefore, the residual can serve as an intrinsic measure of the quality of the integration step solution.

[0048] The numerical residuals calculated at each integration step are compared step-by-step with a pre-set residual tolerance value. The residual tolerance value is set by comprehensively considering the integration step size. The dimensional ranges of each variable in the equation system and the allowable numerical error levels for the process are typically determined through a combination of engineering experience and simulation verification. Corresponding allowable thresholds are set for different types of process physical variables (such as temperature, pressure, flow rate, and concentration). When the numerical solution residual of an integration step exceeds the allowable residual value, that integration step is marked as an abnormal operating step, and its timestamp is recorded for later traceability in the simulation log. The marking process checks each residual component of all process physical variables one by one; any component exceeding the corresponding allowable value triggers an abnormality marker, ensuring that no abnormal state of local variables is overlooked.

[0049] For the marked abnormal operating steps, physical constraint equations are constructed based on the material balance and thermodynamic balance relationships between the physical variables of each process in the process flow. The material balance relationship requires that at any process node, the difference between the total mass flow rate of the inflow material and the total mass flow rate of the outflow material equals the accumulation rate of the material within that node. The thermodynamic balance relationship requires that the enthalpy changes, heat exchange, and heat of reaction carried by each stream satisfy energy conservation. The physical constraint equations are constrained by the above balance relationships between the corrected values ​​of the abnormal operating step and the predicted values ​​of the adjacent normal integration step. That is, the corrected variable values ​​must maintain continuity and consistency with the predicted values ​​of the preceding and following normal steps, while satisfying material and thermodynamic conservation. When constructing the constraint equations, the predicted values ​​of the adjacent normal integration steps are used as known quantities for constraint, and the corrected values ​​of the physical variables of each process in the abnormal operating step are used as unknown quantities. The number of constraint equations is determined by the number of process nodes and the type of conservation equations.

[0050] Using the physical constraint equations as constraints and minimizing the correction amount of the predicted value in the abnormal operating condition step as the objective function, a constraint optimization solution is performed. The objective function means: under the premise of satisfying the physical conservation constraints, apply the smallest possible correction amount to the original predicted value to preserve the existing physical information in the numerical integration results and avoid over-correction that introduces new biases. Let the abnormal operating condition step be... The original predicted values ​​of the physical variables of the process are The corrected value is The objective function is to minimize the weighted sum of squares of the modifications to all variables. ,in For the first The weight coefficients of each variable are set according to the sensitivity of the variable to process safety. Safety-critical variables such as temperature and pressure are assigned smaller weights to allow for greater adjustment space, while secondary auxiliary variables are assigned larger weights to limit the adjustment range. Constrained optimization problems are typically quadratic programming problems with equality or inequality constraints, which can be solved numerically using sequential quadratic programming methods or the Lagrange multiplier method.

[0051] After the optimization solution is completed, the corrected values ​​are used. The original predicted value from the abnormal operating condition step is used as the starting point for the next integration step, continuing the forward time-domain extrapolation. This replacement operation ensures that the initial conditions of subsequent integration steps satisfy physical conservation constraints, preventing the residual error from the abnormal operating condition step from propagating backward along the extrapolation time axis. Simultaneously, the timestamp of the abnormal operating condition step, the original predicted values ​​of each variable before correction, and the differences (i.e., correction amounts) between the corrected values ​​of each variable after correction are all recorded in the extrapolation log. The extrapolation log is stored in a structured format, containing fields such as integration step number, corresponding timestamp, residual values ​​of each variable, whether an anomaly flag was triggered, the predicted value before correction, the predicted value after correction, and the correction amount, providing traceable data for subsequent risk tracing analysis and method evaluation.

[0052] After correcting for the abnormal operating condition step, the deviation of that step and all subsequent integration steps is recalculated based on the corrected predicted value. With deviation rate The deviation magnitude was recalculated to correct the predicted values ​​of process physical variables. Substitute the original deviation calculation logic, and combine it with the safety threshold boundary. With threshold interval width The updated normalized deviation value is obtained. The deviation rate is recalculated based on the updated deviation magnitude sequence, within the risk evolution trend determination window. The slope of the amplitude change with the integration step is re-estimated to obtain the corrected deviation rate. Based on the updated deviation magnitude and rate, the risk evolution trend determination results for the abnormal operating condition step and its subsequent integration steps are comprehensively updated, including the re-determination of trend category (rising, stable, falling) and the re-quantification of trend strength. This ensures that the temporal consistency and accuracy of the physical-driven risk prediction results are not compromised by the existence of the abnormal operating condition step. The entire discrimination and correction process is embedded in the step-by-step iterative process of the time-domain forward extrapolation, and is executed in real time for each integration step, ensuring the numerical stability and physical rationality of the entire extrapolation process.

[0053] The operating condition features in the multi-source monitoring data are matched one by one with the precondition groups in the structured rule set, including: The operating condition characteristics are decomposed into several feature dimensions. Each feature dimension corresponds to the current monitoring value of a process physical variable or the statistical derivative of the current monitoring value within a specified backtracking window. The statistical derivative includes the moving average, moving standard deviation, or moving rate of change. The length of the specified backtracking window is determined based on the dynamic response time constant of the corresponding process physical variable. For each rule in the structured rule set, the normalized deviation between the feature value and the condition threshold is calculated on each feature dimension. The normalized deviation is then input into a preset mapping function to obtain the satisfaction value. The preset mapping function is a continuous function that monotonically decreases over the range of normalized deviation values. For the satisfaction values ​​of all feature dimensions in the precondition group of a rule, the minimum value of the satisfaction value of each feature dimension is taken as the comprehensive satisfaction value by combining them in a logical AND manner, or the maximum value of the satisfaction value of each feature dimension is taken as the comprehensive satisfaction value by combining them in a logical OR manner. The overall satisfaction level is compared with the overall satisfaction threshold. When the overall satisfaction level reaches the overall satisfaction threshold, the rule is determined to be a match. The intermediate inference chain corresponding to the rule is activated, and the identifiers of all matched rules and their corresponding overall satisfaction levels are recorded.

[0054] Decomposition of operating condition features is a fundamental step in rule matching. Operating condition features extracted from multi-source monitoring data are broken down according to the categories of process physical variables. Each feature dimension corresponds to the current monitored value of a specific process physical variable, or a statistically derived quantity calculated within a specified backtesting window for that monitored value. Statistically derived quantities encompass three forms: the moving average, used to reflect the overall level of a variable over a period of time, smoothing out disturbances caused by short-term fluctuations; the moving standard deviation, used to characterize the volatility of a variable within the backtesting window, particularly sensitive to process variables with small fluctuations during steady-state operation but significantly increased fluctuations during anomalies; and the moving rate of change, used to capture the trend of variable changes over time, facilitating the identification of dangerous situations involving rapid increases or decreases. The length of the specified backtesting window is not a fixed value but is determined based on the dynamic response time constant of the corresponding process physical variable. Variables with larger response time constants (such as temperature field variables with large heat capacity) correspond to longer backtesting windows to ensure that the statistically derived quantities fully reflect their slow-dynamic characteristics; variables with smaller response time constants (such as fast-dynamic variables like pressure and flow rate) correspond to shorter backtesting windows to ensure the timeliness of the statistically derived quantities. This design, which differentiates the backtracking window based on the dynamic characteristics of variables, ensures that the information quality of each feature dimension matches its physical meaning.

[0055] After completing the feature dimension decomposition, for each rule's precondition group in the structured rule set, the normalized deviation between the feature value and the condition threshold is calculated for each feature dimension. Let the current feature value on a certain feature dimension be... The condition threshold corresponding to this dimension is The normalization bias is calculated based on the width of the interval containing the conditional threshold. As a normalization benchmark, normalization bias The calculation method is as follows ,in This represents the allowable range width corresponding to the conditional threshold on this feature dimension. Normalization bias. The smaller the value, the closer the current feature value is to the satisfied region defined by the condition threshold; the larger the value, the farther it deviates.

[0056] Normalization bias Input a preset mapping function to obtain the satisfaction value of that feature dimension. The preset mapping function is required to be monotonically decreasing and continuous over the range of normalized bias values, that is, as... Increase The continuous reduction ensures that the intuitive physical meaning of lower satisfaction as the eigenvalue deviates from the condition threshold is accurately reflected mathematically. The satisfaction function can take the form of a piecewise linear function, a Gaussian function, or a sigmoid function, etc., with its core constraint being... hour Take the maximum value (usually normalized to 1), in After exceeding a certain cutoff value Approaching 0. This continuous mapping method has a significant advantage over hard threshold judgment: when the feature value is at the fuzzy boundary near the condition threshold, the matching result will not jump drastically between hit and miss due to small fluctuations, thereby improving the robustness of the rule matching process.

[0057] For a set of preconditions for a rule, there are logical relationships between the various feature dimensions within it, and it is necessary to calculate the satisfaction value of each dimension. Aggregated into a comprehensive satisfaction level There are two aggregation methods: When the given condition group uses a logical AND combination, it means that the conditions of all feature dimensions must be satisfied simultaneously. In this case, the minimum value of the satisfaction score of each feature dimension is taken as the overall satisfaction score. ,in For the index number of the feature dimension, For the first The satisfaction value of each feature dimension; when the premise condition group adopts a logical OR combination, it means that as long as the condition of any feature dimension is satisfied, the rule will be triggered. In this case, the maximum value of the satisfaction value of each feature dimension is taken as the comprehensive satisfaction. The AND and OR operations are suitable for scenarios where multiple conditions must occur concurrently to constitute a risk, such as high temperature and high pressure triggering an overpressure risk rule. The OR operations are suitable for scenarios where a single condition is sufficient for an alert, such as high temperature or excessive flammable gas concentration triggering a fire risk rule. In actual rule bases, the preconditions of the same rule may also be nested structures of AND and OR operations. In this case, they are aggregated layer by layer in a hierarchical manner, first processing the inner logical relationships, then participating the inner aggregation results in the outer logical aggregation, ultimately obtaining the overall satisfaction level of the entire rule. .

[0058] The calculated overall satisfaction level Compared with the pre-set comprehensive satisfaction threshold Comparison. When When the rule is determined to be a match, the intermediate inference chain corresponding to the rule is activated, and the unique identifier of the rule and its corresponding comprehensive satisfaction are set. Record it in the hit rule set. When When the threshold is met, the rule is not activated. The value of has a direct impact on matching sensitivity: a value that is too high can lead to missed activation of risk rules in boundary states, reducing warning coverage; a value that is too low can lead to the activation of a large number of weakly correlated rules, increasing the redundant computation of subsequent inference chains and potentially introducing false alarms. In engineering practice, The settings can be calibrated by backtesting historical accident cases, so that key rules can be reliably hit in known risk scenarios, while keeping the false activation rate within an acceptable range.

[0059] Record the identifier of the hit rule and the overall satisfaction level. The purpose is to provide input for calculating the credibility of subsequent reasoning chains. Overall satisfaction level. This directly reflects the degree to which the current operating conditions conform to the preconditions of the rule. A higher value indicates a more sufficient degree to which the preconditions are met, resulting in a stronger foundation of credibility for the path when deducing along the reasoning chain to the risk conclusion node. The identifiers of all hit rules are then matched with their corresponding... The values ​​are uniformly summarized to form a list of activation rules for the current moment, which is used in the experience-driven risk prediction result generation process. This design, which transmits continuous satisfaction values ​​along with rule identifiers, ensures that fuzziness information is not lost throughout the entire process from rule matching to inference chain activation and risk level output, thereby supporting the final adaptive weighted fusion mechanism to perform a refined evaluation of the credibility of experience-driven prediction results.

[0060] When the same working condition feature simultaneously triggers the conditions of multiple rules, conflict resolution and conclusion fusion are performed on the multiple inference chains that are activated in parallel, including: For each rule that is matched, its corresponding intermediate reasoning chain is activated. The reasoning chain is independently deduced step by step along the directed edge direction to its respective risk conclusion node, and the risk level and recommended handling measures are obtained for each reasoning chain. Calculate the activation intensity of each inference chain. The activation intensity is the result of normalizing the sum of the satisfaction values ​​of each feature dimension in the premise group of the corresponding rule with the preset importance weight of each feature dimension. The normalization process makes the sum of the activation intensities of all matching hit rules equal to one. The fusion risk level is obtained by weighting the risk levels output by each inference chain by using the activation intensity of each inference chain as the weight. The suggested measures output by each inference chain are sorted from high to low according to their activation intensity. The suggested measures with the highest activation intensity are selected as the fusion suggested measures. The fusion risk level is combined with the fusion suggested measures to generate the fusion experience-driven risk prediction result. When the difference in activation intensity between the inference chain with the highest activation intensity and the inference chain with the second highest activation intensity is less than a preset difference threshold, the suggested handling measures corresponding to the two inference chains are simultaneously included in the fused experience-driven risk prediction results and a conflict indicator is added.

[0061] In real-world safety production scenarios, the same operating condition often simultaneously satisfies the triggering conditions of multiple rules. For example, when the temperature of a reactor rises abnormally and is accompanied by pressure exceeding limits, the temperature exceeding limit rule and the pressure-temperature coupling rule may be activated simultaneously. If the conclusion of only one rule is directly taken as the output, the risk information carried by other rules will be lost, leading to a one-sided prediction result. Therefore, for the case where multiple inference chains are activated in parallel, it is necessary to perform conflict resolution and conclusion fusion processes to ensure that the final experience-driven risk prediction result comprehensively reflects the judgments of all hit rules.

[0062] When a condition feature matches multiple rules, its corresponding intermediate inference chain is activated independently for each matching rule. Each inference chain is internally organized as a directed acyclic graph, with directed edges representing causal relationships between inference nodes. Starting from the premise node, the inference proceeds down through the intermediate inference nodes along the directed edges of each inference chain until it reaches its respective risk conclusion node. Each inference chain completes its deduction independently, without interference, and outputs its corresponding risk level and recommended remedial measures. The risk level is represented by discrete levels (e.g., low, medium, high, extremely high) or corresponding numerical codes, while the recommended remedial measures are recorded in structured text, including information such as the target object, action, and priority.

[0063] After each inference chain is independently deduced, the activation strength of each inference chain is calculated. The activation strength reflects the degree of fit between the rule corresponding to that inference chain and the current working condition; its calculation depends on the satisfaction values ​​of each feature dimension in the precondition set and the preset importance weights of each feature dimension. Let the first... The precondition set of the rule contains a total of The feature dimension, the first Rule No. The satisfaction value of each feature dimension (Using the definition in claim 6, representing the satisfaction level of a single feature dimension), the first The preset importance weights corresponding to each feature dimension are: Then the first Weighted satisfaction of the rules for: The pre-defined importance weights for each feature dimension Values ​​are assigned by domain experts during the rule base construction phase, and satisfy the following conditions: This ensures the consistency of the dimensions of the weighted results. Let the total number of hit rules be... For the first rule, the weighted satisfaction degree of each rule is normalized to obtain the result. Activation strength of the rule : Normalization ensures that the sum of the activation intensities of all hit rules equals 1, thus giving the activation intensities a semantic sense of probability distribution, which can be directly used for subsequent weighted fusion calculations.

[0064] The calculation of the fusion risk level uses the activation intensity of each inference chain as a weight, and performs a weighted average of the numerical risk levels output by each inference chain. Let the first... The numerical risk level of the output of the inference chain is Then integrate risk levels for: Weighted average Since the values ​​are continuous, they need to be mapped back to discrete risk level ranges. The mapping rules are executed based on pre-defined level boundaries, for example, […]. Mapped to low risk Mapped to medium risk Mapped as high risk The risk level is mapped to extremely high risk. By using a weighted average instead of simply taking the highest risk level, the problem of inflated fusion results caused by a single rule with weak activation strength outputting an extremely high risk level can be avoided, making the fused risk level more objectively reflect the overall danger level of the current working condition.

[0065] The fusion of recommended actions employs a ranking strategy rather than a weighted average because the actions are discrete operational texts, unsuitable for numerical averaging. Recommended actions from each inference chain are ranked from highest to lowest activation intensity, with the action from the inference chain with the highest activation intensity being included as the primary fused action in the final result. The rationale for this strategy is that the inference chain with the highest activation intensity best matches the current situation, and its actions are most relevant to the current context; prioritizing its adoption ensures that operators receive the most appropriate guidance.

[0066] However, when the inference chain with the highest activation strength (activation strength denoted as...) The second-ranked reasoning chain (activation strength denoted as) The difference between Less than the preset difference threshold This indicates that the two inference chains have similar explanatory power for the current situation, and it is impossible to clearly determine which rule is more dominant. In this case, if only the action with the highest activation intensity is output, there is a risk of missing important operational suggestions. Therefore, when... At that time, the suggested remedial measures corresponding to the two inference chains with the highest and second highest activation intensities are simultaneously incorporated into the fused experience-driven risk prediction results, and a conflict identifier is added to the results. The conflict identifier includes the numbers of the two inference chains, their respective activation intensity values, and the text of their respective output remedial measures. Operators can use this to understand the current rule competition situation and make a comprehensive judgment based on the actual situation on site. A preset difference threshold is set. The value is set by experts based on the overall activation intensity distribution characteristics of the rule base, with a typical range of 0.05 to 0.15, and can be adjusted during the system deployment phase.

[0067] Ultimately, risk levels will be integrated. The (mapped discrete levels) are combined with the fusion suggested remedial measures (including conflict identifiers, if present) to generate a fused experience-driven risk prediction result. This result also carries inference path credibility information, which is determined by the inference chain with the highest activation strength. The value represents the overall confidence level of the current experience-driven prediction, which is used by the subsequent adaptive weighted fusion mechanism when calculating the experience weights. A higher value indicates that a certain rule has strong explanatory power for the current working condition, and the experience weight is increased accordingly; when multiple rules have similar activation strengths (i.e., when conflict indicators appear), The weighting is relatively low, the empirical weighting is moderately reduced, and the proportion of physics-driven prediction results is increased accordingly, thereby maintaining the robustness of the overall prediction results under rule-based competition.

[0068] A second aspect of this invention provides a safety production risk hybrid-driven prediction system that integrates physical mechanisms and expert experience, comprising: The physical modeling unit is used to acquire multi-source monitoring data of the safe production process, establish a set of differential equations describing the evolution of physical variables in the process over time based on the process flow, and extract expert experience knowledge from historical accident cases and operating procedures, and transform it into a structured rule set consisting of a set of preconditions, intermediate reasoning chains and risk conclusions. The rule matching unit is used to substitute the multi-source monitoring data as boundaries and initial conditions into the system of differential equations to perform forward time-domain deduction, calculate the deviation magnitude and deviation rate of each process physical variable relative to the safety threshold, and generate a physical-driven risk prediction result containing the deviation value and risk evolution trend. The fusion prediction unit is used to match the working condition features in the multi-source monitoring data with the precondition group in the structured rule set one by one, activate the corresponding intermediate inference chain for the matched rules, and deduce the risk conclusion node step by step along the inference chain to generate an experience-driven risk prediction result containing risk level and inference path credibility. The processing unit is used to construct an adaptive weighted fusion mechanism with deviation magnitude and inference path credibility as two-dimensional inputs, to fuse the physical-driven risk prediction results and the experience-driven risk prediction results, dynamically adjust the physical weights according to the deviation rate, dynamically adjust the experience weights according to the inference path credibility, and output a comprehensive safety production risk prediction result.

[0069] A third aspect of the present invention provides an electronic device, comprising: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.

[0070] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.

[0071] This invention can be a method, apparatus, system, and / or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for performing various aspects of the invention.

[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A hybrid prediction method for safety production risks that integrates physical mechanisms and expert experience, characterized in that: include: Acquire multi-source monitoring data of the safe production process, establish a set of differential equations describing the evolution of physical variables over time based on the process flow, and extract expert experience knowledge from historical accident cases and operating procedures, transforming it into a structured rule set consisting of a set of preconditions, intermediate reasoning chains, and risk conclusions. The multi-source monitoring data is used as the boundary and initial conditions to perform forward time-domain deduction of the differential equation system. The deviation magnitude and deviation rate of each process physical variable relative to the safety threshold are calculated to generate a physical-driven risk prediction result containing the deviation value and risk evolution trend. The working condition features in the multi-source monitoring data are matched one by one with the precondition groups in the structured rule set. The corresponding intermediate inference chain is activated for the matched rules, and the inference chain is deduced step by step to the risk conclusion node to generate an experience-driven risk prediction result containing risk level and inference path credibility. An adaptive weighted fusion mechanism with deviation magnitude and inference path credibility as two-dimensional inputs is constructed to fuse the physical-driven risk prediction results and the experience-driven risk prediction results. The physical weights are dynamically adjusted according to the deviation rate, and the experience weights are dynamically adjusted according to the inference path credibility, so as to output a comprehensive safety production risk prediction result.

2. The method according to claim 1, characterized in that, Acquire multi-source monitoring data of the safe production process and establish a set of differential equations based on the process flow, including: The multi-source monitoring data includes real-time monitoring data of process parameters, monitoring data of equipment operating status, and monitoring data of the on-site environment. The three types of monitoring data are aligned with a unified timestamp to form a multi-dimensional time-series data matrix. Each column of the multi-dimensional time-series data matrix corresponds to a process physical variable, and each row corresponds to a sampling time. Data with missing sampling times are filled with the interpolation results of adjacent sampling times. For each process node involving material input and output in the process flow, based on the material balance relationship that the total amount of material entering the node is equal to the sum of the total amount of material leaving the node and the cumulative amount of material within the node, a material balance relationship with the mass flow rate of each component as the variable is established. For each process node involving heat transfer in the process flow, based on the heat balance relationship that the total amount of heat entering the node is equal to the sum of the total amount of heat leaving the node and the cumulative amount of heat within the node, a heat balance relationship with the temperature of each node as the variable is established. By combining the material balance and heat balance equations for all process nodes, and taking time as the independent variable and each process physical variable as the dependent variable, a set of differential equations is formed to describe the coupling relationship between the process physical variables. The coefficients of each equation in the set of differential equations are determined based on the process design parameters and material property data.

3. The method according to claim 1, characterized in that, Transforming expert experience and knowledge into a structured rule set consisting of a set of preconditions, intermediate reasoning chains, and risk conclusions, including: The precondition group consists of at least two conditional predicates combined with logical AND or logical OR relations. Each conditional predicate describes the magnitude relationship between a process physical variable or its derived feature and a corresponding conditional threshold. The derived feature is the mean, variance, or rate of change of the process physical variable within a specified time window. The intermediate reasoning chain consists of multiple reasoning steps connected sequentially with directed edges. Each reasoning step includes a reasoning premise and a reasoning conclusion. The reasoning conclusion of the previous reasoning step serves as the reasoning premise of the next reasoning step. The reasoning premise of the first reasoning step is associated with the premise condition group, and the reasoning conclusion of the last reasoning step is associated with the risk conclusion. The risk conclusion includes a risk type identifier, a risk level, and recommended treatment measures. The same risk type identifier corresponds to multiple risk levels, and each risk level corresponds to different recommended treatment measures. The risk level scales of different risk type identifiers are independent of each other. Redundancy checks are performed on the structured rules obtained from the transformation. When two rules have the same set of preconditions and the same risk conclusion, only one rule is retained and the other rule is deleted. When two rules have the same set of preconditions but different risk conclusions, they are marked as conflicting rules.

4. The method according to claim 1, characterized in that, The multi-source monitoring data is used as boundary and initial conditions to perform a forward time-domain derivation of the differential equations, including: Using the measured values ​​of process physical variables at the current sampling time as initial conditions and the material flow rate and temperature at the process inlet as boundary conditions, the differential equation system is solved by recursively solving along the time axis using a fixed-step numerical integration method, and the predicted values ​​of each process physical variable are output at each integration step. The predicted values ​​of each process physical variable are compared with the preset upper and lower safety thresholds. When the predicted value exceeds the upper safety threshold, it is recorded as a positive deviation. When the predicted value is lower than the lower safety threshold, it is recorded as a negative deviation. The ratio of the difference between the predicted value and the nearest safety threshold to the width of the safety threshold interval is calculated as the deviation magnitude. The deviation rate is obtained by dividing the change in deviation between adjacent integration steps by the integration step size. The risk evolution trend is determined as an aggravating trend, a convergent trend, or a stable trend based on the monotonic change direction of the deviation amplitude in multiple consecutive integration steps. When the deviation amplitude increases monotonically within a preset number of consecutive integration steps, it is determined as an aggravating trend. When the deviation amplitude decreases monotonically within a preset number of consecutive integration steps, it is determined as a convergent trend. All other cases are determined as a stable trend. The predicted values, deviation magnitudes, deviation rates, and risk evolution trends of the process physical variables at each integration step are organized into physical-driven risk prediction results by time series and then output.

5. The method according to claim 4, characterized in that, In the forward time-domain extrapolation process, abnormal operating condition steps are identified and corrected, including: After each integration step is completed, the predicted values ​​of the process physical variables of the current integration step are substituted back into the system of differential equations, and the difference between the left-hand side and the right-hand side of the equations is calculated as the numerical solution residual. The numerical solution residual is compared with the residual tolerance value. When the numerical solution residual exceeds the residual tolerance value, the current integration step is marked as an abnormal working condition step. For the abnormal operating step, physical constraint equations are constructed based on the material balance and thermodynamic balance relationships between the physical variables of each process in the process flow. The physical constraint equations take the constraint form of satisfying the material balance and thermal balance between the corrected value of each process physical variable in the abnormal operating step and the predicted value of the adjacent normal integration step. The physical constraint equation is used as the constraint condition and the objective function is to minimize the correction amount of the predicted value of the abnormal working condition step. The correction value obtained by the optimization solution is used to replace the original predicted value. The correction value is used as the starting point of the next integration step to continue the forward time domain deduction. The timestamp of the abnormal working condition step and the difference between the predicted values ​​before and after the correction are recorded in the deduction log. Based on the revised predicted values, the deviation magnitude and deviation rate of the abnormal operating condition step and its subsequent integral steps are recalculated, and the corresponding risk evolution trend judgment results are updated.

6. The method according to claim 1, characterized in that, The operating condition features in the multi-source monitoring data are matched one by one with the precondition groups in the structured rule set, including: The operating condition characteristics are decomposed into several feature dimensions. Each feature dimension corresponds to the current monitoring value of a process physical variable or the statistical derivative of the current monitoring value within a specified backtracking window. The statistical derivative includes the moving average, moving standard deviation, or moving rate of change. The length of the specified backtracking window is determined based on the dynamic response time constant of the corresponding process physical variable. For each rule in the structured rule set, the normalized deviation between the feature value and the condition threshold is calculated on each feature dimension. The normalized deviation is then input into a preset mapping function to obtain the satisfaction value. The preset mapping function is a continuous function that monotonically decreases over the range of normalized deviation values. For the satisfaction values ​​of all feature dimensions in the precondition group of a rule, the minimum value of the satisfaction value of each feature dimension is taken as the comprehensive satisfaction value by combining them in a logical AND manner, or the maximum value of the satisfaction value of each feature dimension is taken as the comprehensive satisfaction value by combining them in a logical OR manner. The overall satisfaction level is compared with the overall satisfaction threshold. When the overall satisfaction level reaches the overall satisfaction threshold, the rule is determined to be a match. The intermediate inference chain corresponding to the rule is activated, and the identifiers of all matched rules and their corresponding overall satisfaction levels are recorded.

7. The method according to claim 6, characterized in that, When the same working condition feature simultaneously triggers the conditions of multiple rules, conflict resolution and conclusion fusion are performed on the multiple inference chains that are activated in parallel, including: For each rule that is matched, its corresponding intermediate reasoning chain is activated. The reasoning chain is independently deduced step by step along the directed edge direction to its respective risk conclusion node, and the risk level and recommended handling measures corresponding to each reasoning chain are obtained. Calculate the activation intensity of each inference chain. The activation intensity is the result of normalizing the sum of the satisfaction values ​​of each feature dimension in the premise group of the corresponding rule with the preset importance weight of each feature dimension. The normalization process makes the sum of the activation intensities of all matching hit rules equal to one. The fusion risk level is obtained by weighting the risk levels output by each inference chain by using the activation intensity of each inference chain as the weight. The suggested measures output by each inference chain are sorted from high to low activation intensity. The suggested measures with the highest activation intensity are selected as the fusion suggested measures. The fusion risk level is combined with the fusion suggested measures to generate the fusion experience-driven risk prediction result. When the difference in activation intensity between the inference chain with the highest activation intensity and the inference chain with the second highest activation intensity is less than a preset difference threshold, the suggested handling measures corresponding to the two inference chains are simultaneously included in the fused experience-driven risk prediction results and a conflict indicator is added.

8. A hybrid prediction system for safety production risks that integrates physical mechanisms and expert experience, used to implement the method as described in any one of claims 1-7, characterized in that, include: The physical modeling unit is used to acquire multi-source monitoring data of the safe production process, establish a set of differential equations describing the evolution of physical variables in the process over time based on the process flow, and extract expert experience knowledge from historical accident cases and operating procedures, and transform it into a structured rule set consisting of a set of preconditions, intermediate reasoning chains and risk conclusions. The rule matching unit is used to substitute the multi-source monitoring data as boundaries and initial conditions into the differential equation system to perform forward time-domain deduction, calculate the deviation magnitude and deviation rate of each process physical variable relative to the safety threshold, and generate a physical-driven risk prediction result containing the deviation value and risk evolution trend. The fusion prediction unit is used to match the working condition features in the multi-source monitoring data with the precondition groups in the structured rule set one by one, activate the corresponding intermediate inference chain for the matched rules, and deduce the risk conclusion node step by step along the inference chain to generate an experience-driven risk prediction result containing risk level and inference path credibility. The processing unit is used to construct an adaptive weighted fusion mechanism with deviation magnitude and inference path credibility as two-dimensional inputs, to fuse the physical-driven risk prediction results and the experience-driven risk prediction results, dynamically adjust the physical weights according to the deviation rate, dynamically adjust the experience weights according to the inference path credibility, and output a comprehensive safety production risk prediction result.

9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 7.